Register for your free account! | Forgot your password?

You last visited: Today at 13:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Chat-Packet

Discussion on Chat-Packet within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Chat-Packet

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
Kraizy​ is offline  
Old 04/17/2011, 20:17   #2
 
Shane¸'s Avatar
 
elite*gold: 100
Join Date: May 2010
Posts: 1,948
Received Thanks: 1,635
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
Shane¸ is offline  
Old 04/17/2011, 20:42   #3
 
Schickl's Avatar
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,064
Received Thanks: 539
The Message must be Unicode
so 2 Bytes
At iSro it looks like thisS->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
Schickl is offline  
Old 04/18/2011, 19:36   #4

 
Haxor's Avatar
 
elite*gold: 0
Join Date: Feb 2008
Posts: 3,777
Received Thanks: 1,455
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
Haxor is offline  
Old 04/18/2011, 20:22   #5
 
GoneUp's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 201
Received Thanks: 73
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.
GoneUp is offline  
Old 04/18/2011, 23:28   #6
 
kevin_owner's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
And what's wrong by changing the blowfish key?
kevin_owner is offline  
Old 04/19/2011, 18:26   #7
 
GoneUp's Avatar
 
elite*gold: 0
Join Date: May 2008
Posts: 201
Received Thanks: 73
Quote:
Originally Posted by kevin_owner View Post
And what's wrong by changing the blowfish key?
Thats the other Way
GoneUp is offline  
Reply


Similar Threads Similar Threads
[CodeSnippet] Send Chat Packet from dll[Aeria]
03/26/2010 - 12Sky2 Hacks, Bots, Cheats & Exploits - 11 Replies
UPDATE NOTE: The same code may be able to be found here... i can not be bothered looking for it again unless i need it. I will post up if i find it again if i actually look for it tho :) C++ Code for a dll you can inject. void __cdecl SendChat( const char* szText ) { UINT_PTR adr = 0x00412F18; //function address __asm
chat packet,little help
11/18/2007 - Conquer Online 2 - 6 Replies
size 00 EC 03 FF FF FF 00 c-TYpe 07 00 00 ?? 05 00 00 00 00 00 00 00 00 00 00 04 0C name 04 41 6C 6C 20 00 ?? message 00 00 00 heres what i got so far...i had all the info before but cant seem to find it,now got to rebuild my damn programs...anyway any help on the chat pack would be nice..just what am i missing...i belive i need -name size and message size?



All times are GMT +1. The time now is 13:09.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.