Register for your free account! | Forgot your password?

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

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

Advertisement



how to read packet 0x706D

Discussion on how to read packet 0x706D within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2012
Posts: 204
Received Thanks: 100
how to read packet 0x706D

im using supermike source and i need read this packet 0x706d

Code:
0000000000   04 00 00 00 08 00 00 00 17 00 00 00 01 02 00 00   ................
0000000016   02 02 00 00 04 FF 08 00 00 00 03 00 74 73 73 2C   ...........tss,
0000000032   3A 00 00 78 AA 9A 66 81 02 8D FF 4E 07 01 00 01   :..x.f...N....
0000000048   00 00 00 04 01 02 00 00 02 02 00 00               ................
tss is a charname i need parser it.

thank you and sorry my english is bad
concucu is offline  
Old 12/20/2016, 19:14   #2
 
elite*gold: 0
Join Date: Dec 2016
Posts: 72
Received Thanks: 37
Parse the packet in a whole chunks of bytes , while reaching the name use the readascii attribute.
Thats the one of the waysif you dont know the packet structure.
Isoline is offline  
Old 12/22/2016, 13:16   #3
 
elite*gold: 0
Join Date: Sep 2012
Posts: 204
Received Thanks: 100
plz help me
concucu is offline  
Old 12/22/2016, 14:56   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 269
Received Thanks: 553
If you have absolutely no clue how packet reading works, at least try to search though the open source emulators.


Code:
        public static byte[] JoinFormedRequest(character requesting, character owner)
        {
            //Create new packet writer
            PacketWriter Writer = new PacketWriter();
            //Add opcode for packet
            Writer.Create(Core.SERVER_PARTY_JOIN_FORMED);
            //Character model information (Req).
            Writer.DWord(requesting.Information.Model);
            //Leader id
            Writer.DWord(requesting.Information.UniqueID);
            //Party id
            Writer.DWord(owner.Network.Party.ptid);
            //Static
            Writer.DWord(0);
            Writer.DWord(0);
            Writer.Byte(0);
            Writer.Byte(0xFF);
            //Write character unique id
            Writer.DWord(requesting.Information.UniqueID);
            //Write character name
            Writer.Text(requesting.Information.Name);
            //Write model information
            Writer.DWord(requesting.Information.Model);
            //Write level information
            Writer.Byte(requesting.Information.Level);
            //Static
            Writer.Byte(0xAA);
            //X and Y Sector
            Writer.Byte(requesting.Position.xSec);
            Writer.Byte(requesting.Position.ySec);
            //Static
            Writer.Word(0);
            Writer.Word(0);
            Writer.Word(0);
            Writer.Word(1);
            Writer.Word(1);
            //If character is in a guild
            if (requesting.Network.Guild != null)
                //Write guild name
                Writer.Text(requesting.Network.Guild.Name);
            //If character is not in a guild
            else
                //Write word value 0
                Writer.Word(0);
            //Static
            Writer.Byte(0);
            Writer.DWord(0);
            Writer.DWord(0);
            //Return all bytes to send
            return Writer.GetBytes();
        }
DaxterSoul is offline  
Thanks
3 Users
Reply


Similar Threads Similar Threads
How to read packet player open Zerk S>C
10/25/2016 - SRO Coding Corner - 6 Replies
how i can read packet Player open Zerk and how i can get his name? 60 AB 02 00 `............... 9A 99 19 42 ...B............ 01 00 F0 42 ...B............
how to read packet from S>C party
09/20/2016 - SRO Coding Corner - 3 Replies
i want read packet from S>C like packet party . How i can read list char and char creat party . here is packet {S->C} code : 3065] => 0000000000 FF 15 00 00 00 0F 00 00 00 05 03 FF 0F 00 00 00 .............. 0000000016 07 00 5A 5A 5A 5A 5A 5A 5A 22 3A 00 00 78 AA AA ..ZZZZZZZ":..x 0000000032 5F 11 02 EF FF 34 00 01 00 01 00 00 00 04 00 00 _..4.......... 0000000048 00 00 00 00 00 00 FF 0E 00 00 00 03 00 5A 5A 5A ............ZZZ 0000000064 79 07 00 00 78 AA AA 5E...
how to read packet from S>C
09/04/2016 - SRO Coding Corner - 2 Replies
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 }
[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 +2. The time now is 08:34.


Powered by vBulletin®
Copyright ©2000 - 2021, 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.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

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