so kinda confused this is the 2nd game I've tried hacking the first one being Rakion and I did pretty good in that field, but trying diablo its a bit different can some one maby point me to the right direction?
heres what I have
Code:
float GetFloatValue(float Value){
float GetFloat = 0x85EB20;
__asm{
//push Value;
mov eax, Value;
call GetFloat;
}
return;
}
DWORD WINAPI MainThread(LPVOID lpReserved)
{
MessageBox(NULL, _T("Injection Successful!"), _T("DiabloIII Bot"), MB_OK | MB_HELP);
bool gamefound = 1;
//while( FindWindow(_T("Diablo III"), _T("Diablo III")) == NULL ) Sleep(500);
while(gamefound = 1){
if( GetAsyncKeyState(VK_NUMPAD1) & 0x8000 ){
DWORD GetInt = 0x8B5220;
DWORD GetFloat = 0x85EB20;
DWORD CharBase = 0x15A0BEC;
float Gold = 0x039;
DWORD gold1 = ReadProcessMemory(hInstance,(void *) CharBase, &Gold,4,NULL);
float GP = GetFloatValue(Gold);
_TCHAR szBuffer[100];
_stprintf_s(szBuffer, _T("%i"), GP);
MessageBox(NULL, (szBuffer), _T("DiabloIII Bot"), MB_OK | MB_HELP);
Sleep(200);
}
}
Thanks