Is this correct? using a GetAsyncKeyState NUMPAD2
Code:
#define WallMgr 0x0
bool pWallMgr = false;
void Hack()
DWORD CShellBase = (DWORD)GetModuleHandleA("CShell.dll");
DWORD PWallMgre = *(DWORD*)(CShellBase + WallMgr);
if(GetAsyncKeyState(VK_NUMPAD2)!=NULL) pWallMgr=(!pWallMgr);
if(pWallMgr==false)
for(int i = 0; i < 1752; i++)
if (*(DWORD*)((CShellBase)+WallMgr) == NULL)
{
*(bool*)((*(DWORD*)((CShellBase)+PWallMgr))+(i*0x594)+0x468) = false;
*(bool*)((*(DWORD*)((CShellBase)+PWallMgr))+(i*0x474)+0x46C) = false;
*(bool*)((*(DWORD*)((CShellBase)+PWallMgr))+(i*0x474)+0x570) = false;
}
else
{
*(bool*)((*(DWORD*)((CShellBase)+PWallMgr))+(i*0x594)+0x468) = true;
*(bool*)((*(DWORD*)((CShellBase)+PWallMgr))+(i*0x594)+0x46C) = true;
*(bool*)((*(DWORD*)((CShellBase)+PWallMgr))+(i*0x594)+0x570) = true;
}