PWI HP Script

01/31/2014 10:03 R3D23R0#1
Code:
#include <NomadMemory.au3>
#include <GUIConstants.au3>
#include <GUIListBox.au3>
#include <Misc.au3>
#include <Array.au3>

#RequireAdmin

$vBaseAdress = 13067820
$vBaseOffset = 52
$vCurHP = 1192

$vOpen = _MemoryOpen(ProcessExists("elementclient.exe"))
$vReadBase = _MemoryRead($vBaseAdress, $vOpen, "dword") + $vBaseOffset
$vReadPtr = _MemoryRead($vReadBase, $vOpen, "dword") + $vCurHP
$vReadCurHP = _MemoryRead($vReadPtr, $vOpen, "dword")



While 1 ;loop
Sleep(1000)



		ToolTip("hp: " & $vReadCurHP)
		_MemoryClose($vOpen)

WEnd
I'm stumped. It returns a 1. Am I missing something?
01/31/2014 12:43 alpines#2
First of all, why do you want to display the same amount of hp over and over again and why are you closing its handle more than once?
01/31/2014 19:13 elmarcia#3
You have to use your offsets opposite to cheat engine. Follow this sample and the image :D