Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 0x02037FF5
- y = 0x02037FF9
- hp = 0x02038044
- inv = 0x02038034
- crystal = 0x0203805A
- dash = 0x020380B0
- ch = {0x0203807C, 0x0203807D}
- disk = 0x0203DF9E
- --0x020380D1
- --0x020380D2
- bosshp = 0x0203BE44
- bossinv = 0x0203BE34
- while true do
- gui.text(4,0,string.format("X: %d\nY: %d",memory.readword(x),memory.readword(y)))
- if memory.readword(x) == 0 then
- gui.text(4,35,"HP: 16")
- else
- gui.text(4,35,"HP: " .. memory.readbyte(hp))
- end
- gui.text(36,35,"Inv: " .. memory.readbyte(inv))
- gui.text(20,43,"Crystal: " .. memory.readword(crystal))
- gui.text(32,51,"Dash: " .. memory.readbytesigned(dash)+1)
- gui.text(24,59,"Charge: " .. memory.readbyte(ch[1]) .. " : " .. memory.readbyte(ch[2]))
- gui.text(32,67,"Disk: " .. memory.readbyte(disk))
- if memory.readbyte(bosshp) ~= 0 or memory.readbyte(bossinv) ~= 0 then
- gui.text(214,0,"HP: " .. memory.readbyte(bosshp))
- gui.text(210,8,"Inv: " .. memory.readbyte(bossinv))
- end
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement