12-09-2012, 01:30 PM
Codice per vedere hp del pg, inserendo offset e pointer.
Codice:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$ProcessID = _MemoryOpen(Processexists("NostaleX.dat")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("NosTale HP Viewer", 262, 105, 995, 492)
$Progress1 = GUICtrlCreateProgress(8, 48, 238, 17)
$Label1 = GUICtrlCreateLabel("NosTale HP viewer - OPEN SOURCE", 8, 16, 183, 17)
$Button1 = GUICtrlCreateButton("Ricevi HP", 8, 72, 91, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
$Button1
AdlibRegister("HPRead",20)
EndSwitch
WEnd
Func HPRead($PID)
$basepointer = Dec(Inputbox("Pointer","Inserisci il pointer","0x")
Dim $minHp[3]
$Hp[0] = Dec("0")
$Hp[1] = Dec(Inputbox("OFF-SET","Inseriscio off-set","")
GuiCtrlSetData($Progress1, $HP[1]/$HP_MAX[1]*100)
Return $valueactualHP
EndFunc