SHARE
TWEET

Pet Cur HP Example

a guest Jul 17th, 2010 326 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <NomadMemory.au3>
  2. $vPetBaseAdress = 10437900
  3. $vPetOffset1 = 32
  4. $vPetOffset2 = 4096
  5. $vPetOffset3 = 16
  6. $vPetHPOffset = 56
  7.  
  8. $vOpen = _MemoryOpen(ProcessExists("elementclient.exe"))
  9. $vReadPetBase = _MemoryRead($vPetBaseAdress, $vOpen, "dword") + $vPetOffset1
  10. $vReadPetOffset1 = _MemoryRead($vReadPetBase, $vOpen, "dword") + $vPetOffset2
  11. $vReadPetOffset2 = _MemoryRead($vReadPetOffset1, $vOpen, "dword") + $vPetOffset3
  12. $vReadPetOffset3 = _MemoryRead($vReadPetOffset2, $vOpen, "dword") + $vPetHPOffset
  13. $vReadPetCurHP = _MemoryRead($vReadPetOffset3, $vOpen, "dword")
  14. ConsoleWrite($vReadPetCurHP & @CRLF)
  15. _MemoryClose($vOpen)
RAW Paste Data
Top