Так как в целом новичок, хотелось бы узнать. Нашел поинтер HP, MP(0x00A6486C), теперь нужно перевести его в проценты(для бот, меньше n% => выпить HP,MP банку). Я даже представления не имею, как это сделать. Надеюсь на вашу помощь!
:IL_AutoIt_1:
P.S. - Заранее благодарен :-[
Не хочу усложнять дело, может так будет намного удобнее... Вот поинтер тестер:
:IL_AutoIt_1:
P.S. - Заранее благодарен :-[
Не хочу усложнять дело, может так будет намного удобнее... Вот поинтер тестер:
Код:
#Region ### START Koda GUI section ###
$form1 = GUICreate("GrandFAPer Pointer Tester", 232, 154, 340, 276)
$group1 = GUICtrlCreateGroup("Results", 8, 8, 215, 137)
$hp = GUICtrlCreateLabel("HP", 16, 48, 100)
$mp = GUICtrlCreateLabel("MP", 16, 64, 100)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
WinSetOnTop("GrandFAPer Pointer Tester", "", 1)
TraySetIcon("")
While 1
GUICtrlSetData($hp, "HP: " & $currenthp & "/" & $hpcap)
GUICtrlSetData($mp, "MP: " & $currentmp & "/" & $mpcap)
Sleep(500)
WEnd
Func initstuff()
Global $windowtitle = "Grand Fantasia"
Global $processid = ProcessExists("GrandFantasia.exe")
Global $hppointer = 0x00A6486C
Global $selfpointer = 0x00A6486C
$memopen = _memoryopen($processid)
Global $hpoffset1 = Dec("8")
Global $hpoffset2 = Dec("4")
Global $hpcappointer = 0x00A6486C
Global $hpcapoffset1 = Dec("8")
Global $hpcapoffset2 = Dec("48")
Global $mppointer = 0x00A6486C
Global $mpoffset1 = Dec("8")
Global $mpoffset2 = Dec("8")
Global $mpcappointer = 0x00A6486C
Global $mpcapoffset1 = Dec("8")
Global $mpcapoffset2 = Dec("4c")
Global $sitpointer = 0x00A6486C
Global $sitoffset1 = Dec("1C")
Global $sitoffset2 = Dec("50")
Global $cursedpointer = 0x00A6486C
Global $cursedoffset1 = Dec("8")
Global $cursedoffset2 = Dec("174")
_memoryclose($processid)
EndFunc
Func readmem()
$memopen = _memoryopen($processid)
Global $currenthp = _memoryread($hppointer, $memopen)
Global $hpcur1 = "0x" & Hex($currenthp + $hpoffset1)
Global $currenthp = _memoryread($hpcur1, $memopen)
Global $hpcur2 = "0x" & Hex($currenthp + $hpoffset2)
Global $currenthp = _memoryread($hpcur2, $memopen)
Global $hpcap = _memoryread($hpcappointer, $memopen)
Global $hpcap1 = "0x" & Hex($hpcap + $hpcapoffset1)
Global $hpcap = _memoryread($hpcap1, $memopen)
Global $hpcap2 = "0x" & Hex($hpcap + $hpcapoffset2)
Global $hpcap = _memoryread($hpcap2, $memopen)
Global $currentmp = _memoryread($mppointer, $memopen)
Global $mpcur1 = "0x" & Hex($currentmp + $mpoffset1)
Global $currentmp = _memoryread($mpcur1, $memopen)
Global $mpcur2 = "0x" & Hex($currentmp + $mpoffset2)
Global $currentmp = _memoryread($mpcur2, $memopen)
Global $mpcap = _memoryread($mpcappointer, $memopen)
Global $mpcap1 = "0x" & Hex($mpcap + $mpcapoffset1)
Global $mpcap = _memoryread($mpcap1, $memopen)
Global $mpcap2 = "0x" & Hex($mpcap + $mpcapoffset2)
Global $mpcap = _memoryread($mpcap2, $memopen)
_memoryclose($processid)
EndFunc