Chat-Packet

04/17/2011 18:10 Kraizy​#1
Hi,
does anyone know how the chat packet (the one to send a message, there is another one which working fine to read out what other people write) is built up?
I want to send a chat message via packets but the client crashes all the time..
I sent 4 messages (manually ingame) and looked in the phAnalyzer, the result:
PHP Code:
(7025010102006869
(702501020300616263
(7025010302006869
(702501040300616263 
1. Message: "hi"
2. Message: "abc"
3. Message: "hi"
4. Message: "abc"
So, the first byte, I think, is the chat-type (normal chat, private, guild...). The second is like a counter which increase after each message. 0200/0300 length (2/3 chars) and the last is the message (6869 = hi)
But when I am trying to send it via a packet the client just crashes (all other packets are working fine)

So, does anyone know what I am doing wrong?
BTW, it's ZSZC Server
04/17/2011 20:17 Shane¸#2
PHP Code:
[-> C][3026]


07                                                ................


06 00                                             ................


61 00 73 00 64 00 61 00 73 00 64 00               a.s.d.a.s.d..... 
you are right but dunno whats wrong :awesome:
04/17/2011 20:42 Schickl#3
The Message must be Unicode
so 2 Bytes
At iSro it looks like this:(S->C)

///Chatpacket---for nuconnector/srProxy only

1100263002000504003657374040065300650073007400

for Type 0x02, 0x04, 0x05 and 0x06:
# of Bytes | Description
-----------|------------------------
2 | Size of the Data in byte
2 | Opcode
2 | Direction 0200 = to client and 0100 = to server
1 | Type of the Message
2 | Size of the Name
-- | As specified before
2 | Length of the Message. Counting every UNICODE char(2 bytes = 1 char)
-- | As specified before, but doubled, since 1 char needs 2 bytes
04/18/2011 19:36 Haxor#4
I sugget to you to use edxloader to parse the packets
to appear like shane post
its will be more understandable to you and more easy
04/18/2011 20:22 GoneUp#5
Quote:
Originally Posted by saif1999 View Post
I sugget to you to use edxloader to parse the packets
to appear like shane post
its will be more understandable to you and more easy


EdxLoader don't work on psro. They got other blowfish key for the Media. So our lovely edxloader cant Read information like Game version or the ips.
04/18/2011 23:28 kevin_owner#6
And what's wrong by changing the blowfish key?:)
04/19/2011 18:26 GoneUp#7
Quote:
Originally Posted by kevin_owner View Post
And what's wrong by changing the blowfish key?:)
Thats the other Way :)