Originally Posted by
Apoc
4 = move
There are other things that can be put in place instead of 4. Try them out.
I know I have tried them out. I thought 6 was loot, but my code doesn't work. this method works for moving with go as 4 but I can't get it to loot or interact.
C++ code:
Code:
void LootTarget(HANDLE hProcess, float destX, float destY, float destZ, INT64 GUID){
int go = 6;
if(WriteProcessMemory(hProcess, (LPVOID)click_GUID, &GUID, sizeof(GUID), NULL)==0)
std::cout<<"Error setting GUId for click-to-move\n";
WriteProcessMemory(hProcess, (LPVOID)clickset_X, &destX, sizeof(destX), NULL);
WriteProcessMemory(hProcess, (LPVOID)clickset_Y, &destY, sizeof(destY), NULL);
WriteProcessMemory(hProcess, (LPVOID)clickset_Z, &destZ, sizeof(destZ), NULL);
if(WriteProcessMemory(hProcess, (LPVOID)clickset_Go, &go, sizeof(go), NULL) == 0)
std::cout<<"Error looting target!\n";
}
do I need to pass it more parameters?