hey i writing a bot now and i can successfully read mob id and put mobname and unique id in list. When a mob is Dead or disappears(going in safe zone) i get the packet 3016 with the unique id of that mob and delete it from list with that function:
That works good but there are still mobs left because they dont "disappear"...they still exist and i can even attack them packet-based if they are "out of sight" in client.
So guys i aksk you how to remove the other mobs that are far away but still exist?
In the 0x3019 Packet must be some location data but i only know that the first UInt32 is mobID and the second UInt32 is uniqueID...so the rest might be the rotation, speed and location or sth.
Or is it the 0xB021 packet?!?
Can you help me with that?
(and yes i searched everywhere on the internet ;))
greez lukas
Code:
else if (packet.Opcode == 0x3016)
{
int x = 0;
uint unique_id = packet.ReadUInt32();
foreach (Monster m in Globals.currentMonsters)
{
if (m.unique_id == unique_id)
{
Globals.currentMonsters.RemoveAt(x);
log("deleted " + m.unique_id + Environment.NewLine);
refreshMobs();//refresh listbox with mobs
break;//stop foreach because we found the one
}
x++;
}
}
So guys i aksk you how to remove the other mobs that are far away but still exist?
In the 0x3019 Packet must be some location data but i only know that the first UInt32 is mobID and the second UInt32 is uniqueID...so the rest might be the rotation, speed and location or sth.
Or is it the 0xB021 packet?!?
Can you help me with that?
(and yes i searched everywhere on the internet ;))
greez lukas