Quote:
Originally Posted by Normal111
Hi,
i hope, u know the common ways, to find unknown values with debuggers like cheatengine. The player coordinates are 4 byte floats, the same coordinates are shared within the 3D textlayers, like the charname over the player model.
And i hope too, that you will share your source code with the communtiy, so we can all work together on something :>.
|
well not really but i try to find out the values. since i took your idea from the autoit script (which is maybe still working with the updated offsets) and found easily the values from the visible important values.
for example:
Quote:
|
006EDCDB 8991 20070000 MOV DWORD PTR DS:[ECX+720],EDX
|
ups what did we found here ? :D right hp and mp will set here. lets jump here to a codecave. i made simple function for that:
Quote:
|
Codecave(0x006EDCDB, CC_CurrentHPAndMP, 1);
|
And finally write the codecave:
Quote:
DWORD theRetAddr = 0;
DWORD hpPointer = 0;
DWORD currentValue = 0;
__declspec(naked) void CC_CurrentHPAndMP(void)
{
__asm
{
pop theRetAddr
MOV hpPointer, ECX
MOV currentValue, EDX
PUSHAD
PUSHFD
}
SetCurrentHPAndMP();
__asm
{
POPFD
POPAD
MOV DWORD PTR DS:[ECX+720],EDX
push theRetAddr
ret
}
}
|
can i add you on icq to talk about some stuff? :D