well the update worked in terms that it doesnt run in circles anymore. So i create the waypoints i just did 4 points so that it would run small spots for testing. it takes off and runs for a while jumping and continueing for a bit. it will turn from time to time like it knows where its going. but its not anywhere near where the waypoint is that i set for it.
i checked the numbers on the waypoint when i make it compared to a /loc in game they are the same.
Not sure what else to check.
Here is the offset code that matters. I didnt see anywhere else that needed to be changed. i checked it a couple times. Even with just 1 waypoint to run here it will take off like the waypoint is accross the map not just 3 steps from where i am standing.
Code:
func playerxpos()
return memreaddllfloat("a1cc68")
endfunc
func playerypos()
return memreaddllfloat("a1cc6c")
endfunc
func playerzpos()
return memreaddllfloat("a1cc70")
endfunc
func getplayerpos()
return memreaddllfloat("A1c8c8")
endfunc
func getenemyname()
return memreadtarget("0x36", "wchar[30]")
endfunc
func playercurrenthp()
return memreaddll("a27720")
endfunc
and
Code:
func memreadtarget($toffset, $type = "byte", $offset = "62eb7c")
$staticoffset = dec($offset)
global $pid
global $curoffset[1]
$curoffset[0] = 0
$baseaddr = _memorymodulegetbaseaddress($pid, "Game.dll")
$finaladdr = "0x" & hex($baseaddr + $staticoffset)
$memtest = _memoryread($finaladdr, $openmem)
$memtest = _memoryread($memtest + 452, $openmem)
if ($type <> "") then
$memtest = _memoryread($memtest + $toffset, $openmem, $type)
else
$memtest = _memoryread($memtest + $toffset, $openmem)
endif
return $memtest
endfunc