Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local px, py, pxs, pys
- local lpx = 0
- local lpy = 0
- local function Stuff()
- if (memory.readbyte(0x1b) == 2) then
- px = memory.readbyte(0x423) + memory.readbyte(0x620) + memory.readbyte(0x621) * 256
- else
- px = memory.readbyte(0x423) + memory.readbyte(0x624) + memory.readbyte(0x625) * 256
- end
- -- for level 1, 624 and 625
- py = memory.readbyte(0x425)
- pxs = px - lpx
- pys = py - lpy
- gui.text(120, 24, string.format("X: %3d (%2d)\nY: %3d (%2d)",px, pxs, py, pys))
- gui.text(186, 24, string.format("XP: %3d|%3d", memory.readbyte(0x6dc), memory.readbyte(0x6da)))
- lpx = px
- lpy = py
- end
- emu.registerafter(Stuff)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement