HelpOffsets

Posts 1–2 of 2 · Page 1 of 1
Offsets
Hello,

So basically i would like to learn how to fix hacks manually when they get patched.
But i need someone to explain me this part of the code.

Code:
void COffsets::updateLocalPlayer() {
    DWORD lpStart = mem->FindPatternArr(modClient.dwBase, modClient.dwSize, "xxx????xx????xxxxx?", 19, 0x8D, 0x34, 0x85, 0x0, 0x0, 0x0, 0x0, 0x89, 0x15, 0x0, 0x0, 0x0, 0x0, 0x8B, 0x41, 0x8, 0x8B, 0x48, 0x0);
    DWORD lpP1 = mem->Read<DWORD>(lpStart + 3);
    BYTE lpP2 = mem->Read<BYTE>(lpStart + 18);
    dwLocalPlayer = (lpP1 + lpP2) - modClient.dwBase;
}

void COffsets::updateEntityList() {
    DWORD elStart = mem->FindPatternArr(modClient.dwBase, modClient.dwSize, "x????xx?xxx", 11, 0x5, 0x0, 0x0, 0x0, 0x0, 0xC1, 0xE9, 0x0, 0x39, 0x48, 0x4);
    DWORD elP1 = mem->Read<DWORD>(elStart + 1);
    BYTE elP2 = mem->Read<BYTE>(elStart + 7);
    dwEntityList = (elP1 + elP2) - modClient.dwBase;
}

void COffsets::updateAttack() {
    DWORD aStart = mem->FindPatternArr(modClient.dwBase, modClient.dwSize, "xx????xx????xxxxxxxxxxx", 23, 0x89, 0x15, 0x0, 0x0, 0x0, 0x0, 0x8B, 0x15, 0x0, 0x0, 0x0, 0x0, 0xF6, 0xC2, 0x3, 0x74, 0x3, 0x83, 0xCE, 0x4, 0xA8, 0x4, 0xBF);
    DWORD aOff = mem->Read<DWORD>(aStart + 2);
    dwAttack = aOff - modClient.dwBase;
}
This is a part of code from Merccy's Triggerbot & Radar hack.

Now how do i replace offsets?
this kind of stuff is an offset-finder. So you don't actively fill in the offset. Those functions scan for Byte-signatures to get the changed offsets automatically.

If you want to do this on your own: comment out the functions and directly set dwLocalPlayer,dwEntityList and dwAttack , like dwLocalPlayer = <yourOffset>;
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us