Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 19:04

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

Advertisement



how to read packet from S>C

Discussion on how to read packet from S>C within the SRO Coding Corner forum part of the Silkroad Online category.

Closed Thread
 
Old   #1
 
MrMiroBear's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 120
Received Thanks: 13
how to read packet from S>C

i want read packet from S>C
like packet kill Unique
how i can read it and put it in C#
for exmaple
if (packet == packet kill Unique)
{
do something
}


here is packet
Code:
[S -> C][300C]
06 0C                                             ................
F7 57 00 00                                       .W..............
0A 00                                             ................
4D 72 4D 69 72 6F 42 65 61 72                     MrMiroBear......
MrMiroBear is offline  
Old 09/04/2016, 18:00   #2
 
Bizzyyyyy's Avatar
 
elite*gold: 500
Join Date: Jul 2009
Posts: 262
Received Thanks: 543
Code:
else if (packet.Opcode == 0x300C)
{
     int type = packet.ReadInt8(); // 0x05 == spawn, 0x06 == kill
     packet.ReadInt8();
     if (type == 0x05)
     {
           int MOBID = packet.ReadInt32();
           if (MOBID == 0x7A2)   // Tiger Girl
           {
                 // Tiger Girl spawned
           }
            else if (MOBID == 0x7BE)  // Uruchi
            {
                 // Uruchi spawned                  
            }
     else if (type == 0x06)
     {
           int MOBID = packet.ReadInt32();
           string name = packet.ReadAscii();
           if (MOBID == 0x7A2)
           {
                 // name+" has killed Tiger Girl"
           }
      }
}
Bizzyyyyy is offline  
Thanks
3 Users
Old 09/04/2016, 20:40   #3
 
MrMiroBear's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 120
Received Thanks: 13
thanks bro
Close
##
MrMiroBear is offline  
Closed Thread


Similar Threads Similar Threads
[Help] how can I read Sro packet
08/18/2016 - SRO Coding Corner - 3 Replies
Hey ,guys now I have learned c# I need to read the packets of sro know what each packet mean in the game .. there are steps or video or pictures..



All times are GMT +1. The time now is 19:04.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.