Hello! I finaly found the Base Pointer, i was looking for, but now i dont know exactly, how i can make my script go tought alle these pointers, to the value i need. :\
So what i need to know exactly is, how can i make AutoIT get the next pointer, using the current pointer + offset? :\
First of all, here is a screenshot of the pointers:
[Only registered and activated users can see links. Click Here To Register...]
The Script should walk the same way, as it is shown in the screenshot, using this code:
I'm sitting here for about 2 days and it makes me crazy. :)
So what i need to know exactly is, how can i make AutoIT get the next pointer, using the current pointer + offset? :\
First of all, here is a screenshot of the pointers:
[Only registered and activated users can see links. Click Here To Register...]
The Script should walk the same way, as it is shown in the screenshot, using this code:
Code:
#include <winapi.au3>
Global Const $PROCESS_VM_OPERATION = (0x0008)
Global Const $PROCESS_VM_READ = (0x0010)
Global $Process="game.exe"
Global $Pointer = 0x0089af60 ; replace of course
$handle=_WinAPI_OpenProcess(BitOR($PROCESS_VM_OPERATION,$PROCESS_VM_READ),False,ProcessExists($Process))
$s=DllStructCreate("int")
Local $read
_WinAPI_ReadProcessMemory($handle,$Pointer,DllStructGetPtr($s),DllStructGetSize($s),$read)
$MobHP = DllStructGetData($s,1)
MsgBox(0, "MobHP", $MobHP)
_WinAPI_CloseHandle($handle)