Hey im programing a bot and currently trying to make a good anti-stuck method.
So im removing all the objects near me and well .. fixed!:P
So im using Malu5a´s TerrainManagement to guide me.
And im looking @ the m2 function and the "nextObject" offset seams kinda wrong.
Warning it´s in AutoIt!
$m2LISTCOUNT = 1;OFFS:OFFS:EMPT:OFFS:OFFS
$ExtchoM2pre = "0x" & hex(_MemoryRead($OffsetM2Static, $DllInformation, 'int')) ;Find Base Pointer
;Stack Entry
$M2count = -1
$searchAdressM2 = $ExtchoM2pre
$ExtchoM2 = _MemoryRead("0x" & hex($searchAdressM2), $DllInformation, 'int')
;M2 Gathere
$i = -1
while $ExtchoM2 > 0
$i = $i + 1
$KnownXm2 = ($ExtchoM2pre + 0x110)
$m2data[$i][1] = _MemoryRead($KnownXm2, $DllInformation, 'float')
$m2data[$i][2] = _MemoryRead($KnownXm2 + 0x4, $DllInformation, 'float')
$m2data[$i][3] = _MemoryRead($KnownXm2 + 0x8, $DllInformation, 'float')
$m2data[$i][5] = $ExtchoM2pre + 0xc
$m2data[$i][7] = $KnownXm2
$m2data[$i][8] = $i
$searchAdressM2 = $searchAdressM2 + 0xAC
$m2LISTCOUNT = $m2LISTCOUNT + 1
$ExtchoM2pre = _MemoryRead("0x" & hex($searchAdressM2), $DllInformation, 'int')
$ExtchoM2 = _MemoryRead("0x" & hex($ExtchoM2pre), $DllInformation, 'int')
$searchAdressM2 = "0x" & hex($ExtchoM2pre)
$M2count = $M2count + 1
WEnd
$ExtchoM2 = _MemoryRead("0x" & hex($searchAdressM2), $DllInformation, 'int')
_report("M2 Files Loaded :" & $M2count)
@ $searchAdressM2 = $searchAdressM2 + 0xAC
The 0xAC is usally the fristObject in TLS. Isnt the both very simular? ( In this case maby the offset is wrong, after all it´s from 3,09)