• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Work C1 C2 C3 C4

Experienced Elementalist
Joined
Jan 14, 2013
Messages
276
Reaction score
11
explain which packets server MuOnline is using, and what are they responsible for? Namely, C1 C2 C3 C4 .I want to learn how to work with them
 
Junior Spellweaver
Joined
Aug 7, 2010
Messages
137
Reaction score
138
Packets is the word we use to describe bytes sent from Client to Server and Server to Client.
Mu Online packet format is very simple.
You have 1 byte length packets (C1 & C3) and 2 bytes length packets (C2 & C4).

The main structure of the packet is:
type size code

"type" is C1, C2, C3 or C4
"size" is the length of the packet, being 1 byte for C1 & C3 and 2 bytes for C2 & C4.
"code" is the identifier of the packet that is used on protocol core.

This is an example of a C1 packet:
0xC1 0x04 0xF1 0x01

0xC1 -> packet type.
0x04 -> packet length.
0xF1 -> packet code.
0x01 -> packet data. sometimes this data can be a sub identifier.

This is an example of a C2 packet:
0xC2 0x00 0x05 0xF1 0x01

0xC2 -> packet type.
0x00 -> this is the high byte of the packet length.
0x05 -> this is the low byte of the packet length. A simple explanation of how to get full packet length would be HighByte * 256 + LowByte. In this case is 0x00 * 256 + 0x05 = 0x05
0xF1 -> packet identifier
0x01 -> packet data. sometimes this data can be a sub identifier.

C3 packets are the same than C1 packets but encrypted.
C4 packets are the same than C2 packets but encrypted.

This was a very very basic explanation about mu online packets.
 
Upvote 0
Experienced Elementalist
Joined
Jan 14, 2013
Messages
276
Reaction score
11
Packets is the word we use to describe bytes sent from Client to Server and Server to Client.
Mu Online packet format is very simple.
You have 1 byte length packets (C1 & C3) and 2 bytes length packets (C2 & C4).

The main structure of the packet is:
type size code

"type" is C1, C2, C3 or C4
"size" is the length of the packet, being 1 byte for C1 & C3 and 2 bytes for C2 & C4.
"code" is the identifier of the packet that is used on protocol core.

This is an example of a C1 packet:
0xC1 0x04 0xF1 0x01

0xC1 -> packet type.
0x04 -> packet length.
0xF1 -> packet code.
0x01 -> packet data. sometimes this data can be a sub identifier.

This is an example of a C2 packet:
0xC2 0x00 0x05 0xF1 0x01

0xC2 -> packet type.
0x00 -> this is the high byte of the packet length.
0x05 -> this is the low byte of the packet length. A simple explanation of how to get full packet length would be HighByte * 256 + LowByte. In this case is 0x00 * 256 + 0x05 = 0x05
0xF1 -> packet identifier
0x01 -> packet data. sometimes this data can be a sub identifier.

C3 packets are the same than C1 packets but encrypted.
C4 packets are the same than C2 packets but encrypted.

This was a very very basic explanation about mu online packets.
Thank you! And how long does the 0.97 version of MU use?and what length is higher in seasons, what is the difference between them?
 
Upvote 0
Junior Spellweaver
Joined
Aug 7, 2010
Messages
137
Reaction score
138
The length of the packet depends on the amount of information sent.

For example. Chat packet length is 73 on most cases. That packet is C1
So you have 3 bytes for basic packet information, 10 bytes for name & 60 bytes for message. 0xC1 0x49 0x00 Name(10 bytes) Text(60 bytes).

C2 is used for packets with more than 255 length.
 
Upvote 0
Back
Top