how to read packet 0x706D

12/20/2016 14:18 concucu#1
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
12/20/2016 19:14 Isoline#2
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.
12/22/2016 13:16 concucu#3
plz help me
12/22/2016 14:56 DaxterSoul#4
If you have absolutely no clue how packet reading works, at least try to search though the open source emulators.
[Only registered and activated users can see links. Click Here To Register...]

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();
        }
[Only registered and activated users can see links. Click Here To Register...]