Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- php = 0x000970FC
- pinv = 0x00097101
- souls = {0x000CCFA2, 0x000CCFA4}
- charge = {0x0009713E, 0x0009713D}
- dash = 0x00097125
- xpos = 0x000970AA
- xsub = 0x000970A9
- ypos = 0x000970AE
- ysub = 0x000970AD
- xspd = 0x000970C1
- yspd = 0x000970C5
- bhp = 0x0008EFA4
- binv = 0x0008EFCC
- bar = 0x0008EFA5
- bossatk = 0x0008EF4D
- function printchargecolor(charge, idcharge)
- color = "white"
- if charge >= 25 and charge < 90 and idcharge == 1 then
- color = "green"
- elseif charge == 90 then
- color = "blue"
- end
- return color
- end
- while true do
- gui.text(0,80,"HP: " .. memory.readbyte(php))
- gui.text(0,94,"Inv: " .. memory.readbyte(pinv))
- gui.text(0,136,"Souls: ")
- gui.text(64,136,memory.read_s16_le(souls[1]),"Cyan")
- gui.text(64,150,memory.read_s16_le(souls[2]),"Red")
- if memory.readbyte(charge[1]) > 0 or memory.readbyte(charge[2]) > 0 then
- gui.text(0,196,"Charge: ")
- gui.text(72,196,memory.readbyte(charge[1]),printchargecolor(memory.readbyte(charge[1]),1))
- gui.text(96,196,"-")
- gui.text(112,196,memory.readbyte(charge[2]),printchargecolor(memory.readbyte(charge[2]),2))
- end
- gui.text(0,238,"Dash: " .. memory.readbyte(dash))
- gui.text(0,280,"X Spd: " .. memory.read_s16_le(xspd))
- gui.text(0,294,"Y Spd: " .. memory.read_s16_le(yspd))
- gui.text(0,336,"X Pos: " .. memory.read_s16_le(xpos) .. " - " .. memory.readbyte(xsub))
- gui.text(0,350,"Y Pos: " .. memory.read_s16_le(ypos) .. " - " .. memory.readbyte(ysub))
- if memory.readbyte(bar) > 0 then
- gui.text(0,420,"HP: " .. memory.readbyte(bhp) .. " - " .. memory.readbyte(binv))
- gui.text(0,434,"Current Atk: " .. memory.readbyte(bossatk))
- end
- emu.frameadvance();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement