Search InstanceBase pointer map

08/15/2022 18:09 _Klaf#1
So, i'm making a small hack and i want to implement waithack as well.I understand that i need to search for InstanceBase Pointer and so i did and make map to iterate through it and search for functions right?
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
            }
        }
    }
}
But it doesn't do anything not even printing the vid that means that the map is not working but i searched with reclass and found it at that adress with that pointer like so:
PHP Code:
https://ibb.co/GP76Mdz 
PHP Code:
https://ibb.co/cxcGvSG 
I'd love to hear your sugestions :D
08/19/2022 01:03 exclusivebot#2
Code:
TCharacterInstanceMap m_kAliveInstMap = *(TCharacterInstanceMap*)((G::Objects::iCPythonCharacterManagerInstance[14]));
Additional,

since the official game was compiled with old stl, you have to rebuild the map class.