SHARE
TWEET

Read Current HP

a guest Jul 16th, 2010 382 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <NomadMemory.au3>
  2. $vBaseAdress = 10437900
  3. $vBaseOffset = 32
  4. $vCurHP = 1132
  5.  
  6. $vOpen = _MemoryOpen(ProcessExists("elementclient.exe"))
  7. $vReadBase = _MemoryRead($vBaseAdress, $vOpen, "dword") + $vBaseOffset
  8. $vReadPtr = _MemoryRead($vReadBase, $vOpen, "dword") + $vCurHP
  9. $vReadCurHP = _MemoryRead($vReadPtr, $vOpen, "dword")
  10. ConsoleWrite($vReadCurHP & @CRLF)
  11. _MemoryClose($vOpen)
RAW Paste Data
Top