Hello, I want to create a script that presses F1 when it detects mana below 50. However, the issue is that I don't know how to correctly start the readme sequence of readme. Could help me interpret the data correctly, please? Currently, if I use the final memory value, it finds the maximum mana value, which in this case would be 90. But when I want to use the memory path, it doesn't find it and returns a value of -1.
--lua
local pointer = readmem (0x00000354, "D")
pointer = readmem (pointer + 0x1E8, "D")
pointer = readmem (pointer + 0x4C, "D")
pointer = readmem (pointer + 0x18, "D")
pointer = readmem (pointer + 0x38, "D")
pointer = readmem (pointer + 0x18, "D")
pointer = readmem (pointer + 0x8, "D")
pointer = readmem (pointer + 0x578, "D")
msg(pointer)
i recommend to use
log(pointer)
after each readmem for you can see where it return wrong value.
probably log(dec2hex(pointer)) can be useful too.
The problem is that I don't know which value to use as the first pointer, as you can see in the image there are several, I don't know how they should be correctly interpreted.
--lua
local BASE_ADDRESS = 0x00FF0000 -- here you should type YOUR base address
local pointer = readmem (BASE_ADDRESS, "D")
pointer = readmem (pointer + 0x00000354, "D")
-- ... rest of your offsets go there
--lua
workwindow(findwindow('YOUR WINDOW TITLE GOES HERE')[1][1])
-- ... rest of your code goes after
Русская версия Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)