This is with what i came up:
Code:
void mobwait()
{
typedef std::map<DWORD, void*>_map; //define the map
_map map = *(_map*)(void*)*(DWORD*)(*(DWORD*)(vb.networkC0) + 0xC); //InstanceBase map pointer
for (auto i = map.begin(); i != map.end(); i++)
{
DWORD vid = i->first; //Pass DWORD key to vid
cout << vid << endl; //not printing
if (functions.GetInstanceType(vid) == 0) //If key is == monster
{
if (functions.GetCharacterDistance(vid) > 0 && functions.GetCharacterDistance(vid) < 400) //If playerdistance from mob >0 and <400
{
packet.SendAttackPacket((void*)vb.networkA4, 0, vid); //send attack packet to vid
}
}
}
}
PHP Code:
https://ibb.co/GP76Mdz
PHP Code:
https://ibb.co/cxcGvSG







