hey everyone , i just need to know how can i decrypt opcodes parameters values like this opcode of unique spawn and unique kill ,
Unique Spawn :
Code:
[S -> C][300C]
05 0C ................
F7 57 00 00 .W..............
Unique Kill :
Code:
[S -> C][300C]
06 0C ................
F7 57 00 00 .W..............
04 00 ................
54 65 73 74 Test............
i think this ( F7 57 00 00 ) is RefMonsterID
and this ( 54 65 73 74 ) is killer name
now how can i read these incoming parameters from [S -> C]
i wrote some codes but its not work i read a wrong values
i want to read the correct values MobID = 22519 and Killer = Test
but i cant , i am newbie
Code:
if (current.Opcode == 0x300C)
{
string str6;
uint num3;
switch (current.ReadUInt8())
{
case 5:
num3 = current.ReadUInt32();
this.Meldung("MobID : [" + num3 + "] Spawned", new object[0]);
break;
case 6:
num3 = current.ReadUInt32();
str6 = current.ReadAscii();
this.Meldung("Character Name : [" + str6 + "] killed MobID : [" + num3 + "] Spawned", new object[0]);
break;
}
}
i hope someone correct it for me
#Fixed
Here is the solution :
if (current.Opcode == 0x300C)
{
string str5; string str6; uint num3; uint num4;
switch (current.ReadUInt8())
{
case 5:
num3 = current.ReadUInt8(); num4 = current.ReadUInt16();
this.Meldung("MobID : [" + num4 + "] Spawned", new object[0]);
break;
case 6:
num3 = current.ReadUInt8(); num4 = current.ReadUInt16();
str5 = current.ReadAscii(); str6 = current.ReadAscii();
this.Meldung("Character Name : [" + str6 + "] killed MobID : [" + num4 + "] Spawned", new object[0]);
break;
}
}
#Close