MapleStory Private Server Wiki
Edit Page

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
A '''Packet Structure''' is a structure of a packet, so you can easily see how the packet is 'build'.
 
A '''Packet Structure''' is a structure of a packet, so you can easily see how the packet is 'build'.
  +
   
 
You can structurize a packet with using closing brackets or newlines.
 
You can structurize a packet with using closing brackets or newlines.
 
===Example===
==Packet Structure Datatypes==
 
There are a couple datatypes in packets:
 
*Byte (1 byte)
 
*Short (2 bytes)
 
*Integer (4 bytes)
 
*Long (8 bytes)
 
*String (Fixed lenght) (Size depends on the fixed length, as it can hold only 3 characters but the length is 13 and the remaining bytes are nulled (filled with 00's).
 
*String (Variable length) (Size depends on the short at the beginning of the string, which holds the amount of characters the string holds)
 
*Double/float (8 bytes)
 
 
 
===Datatype examples===
 
====Byte====
 
FF || Byte, -1
 
====Short====
 
0E 01 || Short, 0x10E or 270
 
====Integer====
 
EC 0A 3D 00 || Integer, 4000492 (itemid of item 'Certificate of Great Tester')
 
====Long====
 
00 E5 90 D9 D3 66 01 00 || Long, 394534900000000 (64 bit FILETIME value for time values)
 
====String (fixed length)====
 
6F 68 69 54 68 65 72 65 47 4D 53 00 00 || String (fixed length), 'ohiThereGMS'
 
====String (variable length)====
 
20 00 57 65 6C 63 6F 6d 65 20 74 6F 20 74 68 65 20 4D 61 70 6C 65 53 74 6F 72 79 20 57 69 6B 69 61 21
 
|| String (variable length), amount of characters: 0x0020 | 32, 'Welcome to the MapleStory Wikia!'
 
 
==Example==
 
 
We have these packets:
 
We have these packets:
 
13 00 05 00 33 34 35 36 37 04 00 00 00 01 FF FF FF FF
 
13 00 05 00 33 34 35 36 37 04 00 00 00 01 FF FF FF FF

Please note that all contributions to the MapleStory Private Server Wiki are considered to be released under the CC-BY-SA

Cancel Editing help (opens in new window)