I have work diligently for hours now to try to resolve this. I apologize if my error is amateur. I have searched these and many other forums for hours now and I am unable to understand why this is not working.
I am trying to get my character's X coordinate in AutoIt.
I have correctly loaded necessary includes, and I know that the program is working correctly.
As a test, I found a static address with CE that contains my character's X coordinate.
Code:
$x = _MemoryRead("0x0F03A4E0", $wow, "double")
ConsoleWrite("Player X as double: " & $x & @CRLF)
The above code correctly outputs my character's X coordinate.
Code:
$base = _MemoryRead("0x" & hex("0x00CF8C50"), $wow, "dword")
$base_2 = _MemoryRead("0x" & hex($base + "0x34"), $wow, "dword")
$base_3 = _MemoryRead("0x" & hex($base_2 + "0x24"), $wow, "dword")
$x = _MemoryRead("0x" & hex($base_3 + "0x798"), $wow, "float")
ConsoleWrite("Player X as float: " & $x & @CRLF)
$x = _MemoryRead("0x" & hex($base_3 + "0x798"), $wow, "double")
ConsoleWrite("Player X as double: " & $x & @CRLF)
This outputs 9632.7314453125 for float, and 9.81050675578883e+024 for double.
My character's X position is actually 0.35382091999054
I am unable to find a solution, your help is greatly appreciated.