Bot monster target

04/21/2017 18:21 A.k.A.#1
hey guys what is the best way to get the target to attack in a packet bot so it should be in range and insight my way with mob appear is so messed up any ideas?
04/22/2017 13:01 katze123#2
save the mobs in a list and calc the distance for each?
04/22/2017 17:28 A.k.A.#3
hey thanks for replay iam using
Code:
// monster appear
case 0x93:
	if (M_ID.size()==MaxElements || M_HP.size()==MaxElements){
	M_ID.clear();
	M_HP.clear();
	}else
   M_ID.push_back(*(DWORD*)&packet[5]);
   M_HP.push_back(*(DWORD*)&packet[19]);
   m_type = *(WORD*)&packet[3];
but this doesnt seem to get the accurate monster ids also i dont know how to get mobs coords else my coords ?
04/22/2017 20:26 TheRealPower#4
why not resetting a MID on mob disappear?

but mob coordinates are in mob_move and mob_movestop, plus on appear the current mob coordinates are also in that packet.

player coordinates u could get out memory (i guess that is the easiest way), or if u detour your own send + what the client sends u can also save and edit your coordinates
04/22/2017 21:06 A.k.A.#5
ye iam comparing it with mob disapear also however its still un accurate and crashes usualy no idea why