Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function objects()
- for i = 0,12,1 do
- local x, y, hp, base
- base = 0xFFC700 + (0x80 * i)
- if memory.readword(base) ~= 0 then
- x = memory.readword(base + 0x0A)
- y = memory.readword(base + 0x0E) + memory.readwordsigned(base + 0x12)
- hp = memory.readwordsigned(base + 0x58)
- gui.text(x,y,"HP: " .. hp)
- end
- end
- end
- while true do
- objects()
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement