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 leave a complete image of the context so you can help me.
https://ibb.co/c3LvMsn