how to read packet from S>C

09/04/2016 14:10 MrMiroBear#1
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......
09/04/2016 18:00 Bizzyyyyy#2
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"
           }
      }
}
09/04/2016 20:40 MrMiroBear#3
thanks bro :)
Close
##