1 . Your C++ code doesn't handle any game logics such { Ingame mode , If player is alive etc.. }
this would crash the game surly
2 . Your ASM region ain't complete , might some registers missed { it also crash the app }
3 . Make sure that pointers you got are static not dynamic ones
dynamic ones need to be updated every single log-in
if 0x005A8BD0 is a return to the old original memory
try this
Code:
void DoPickUp()
{
DWORD Arg1 = 0x01842824;
DWORD Arg2 = 0x004A4FF0;
// DWORD Arg3 = 0x005A8BD0;
__asm
{
mov ecx, Arg1 // Arg 1
call Arg2 // Arg 2
jmp DONE
DONE:
}
}
int Main()
{
while (true)
{
if ( GetAsyncKeyState(VK_F11) &&1)
{
DoPickUp();
}
Sleep(200);
}
return 0;
}