Hello,
I've got problem with my bot IQ. Sometimes he is trying to attack mobs on map that are not visible (used 2nd kal client to check it).
Sometimes he dont see the nearest mob near him. Especially when aggresive mobs attack my bot.
I've filtered the mob list and when X or Y are inproper like:
My function deletes this mobs from SMob structure.
I've also filtered the mob list from same IDs
Its my mob appear code:
My bot also uses this code:
Could you help me with your problem?
If it help, I can make video of my bot attacking.
I've got problem with my bot IQ. Sometimes he is trying to attack mobs on map that are not visible (used 2nd kal client to check it).
Sometimes he dont see the nearest mob near him. Especially when aggresive mobs attack my bot.
I've filtered the mob list and when X or Y are inproper like:
Code:
Mob: ID 19351432 X 233 Y 256555 Z 0 HP 207 Mob: ID 1483628888 X 16805481 Y 260840 Z 0 HP 3 Mob: ID 19298786 X -66 Y 257724 Z 0 HP 243
I've also filtered the mob list from same IDs
Code:
Mob: ID 19302355 X 261352 Y 255760 Z 0 HP 207 Mob: ID 19302355 X 261352 Y 255760 Z 0 HP 207 Mob: ID 19302355 X 261352 Y 255760 Z 0 HP 207 Mob: ID 19724907 X 262477 Y 256524 Z 0 HP 314 Mob: ID 19655734 X 262432 Y 257649 Z 0 HP 168 Mob: ID 19655734 X 262432 Y 257649 Z 0 HP 168
PHP Code:
if (packet[2] == 0x33)
{
for (inti=0;i<500;i++)
{
//check if x =0
if (Mob[i].X == 0)
{
DWORD id;
memcpy((void*)&id,(void*)((DWORD)packet+3+2),4);
Mob[i].MID=id;
memcpy((void*)&(Mob[i].Classe),(void*)((DWORD)packet+3),2);
memcpy((void*)&(Mob[i].X),(void*)((DWORD)packet+3+4+2),4);
memcpy((void*)&(Mob[i].Y),(void*)((DWORD)packet+3+4+2+4),4);
memcpy((void*)&(Mob[i].HP),(void*)((DWORD)packet+3+4+2+4+4+1+1),2);
for (int j=0;j<500;j++)
{
if (Mob[j].MID == Mob[i].MID && j!=i)
{
// Mob[j].MID=0;
Mob[j].X=0; // delete ;O
printf("FAKE ID -> Mob Deleted\n");
printf("Mob[%d].MID: %d x:%d\n",j, Mob[j].MID, Mob[i].X);
printf("Mob[%d].MID: %d x:%d\n\n",i, Mob[i].MID, Mob[i].X);
mobsx-=1;
}
}
}
}
}
PHP Code:
if (Mob[i].X != 0 && Mob[i].X + 1000 > playerx && Mob[i].X-1000 < playerx && Mob[i].Y + 1000 > playery && Mob[i].Y-1000 < playery)
{
// mob is correct
}
If it help, I can make video of my bot attacking.