Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- objectSlots = bit.arshift(mainmemory.read_s8(0x1443), 1) + 1
- weaponSlots = bit.arshift(mainmemory.read_s8(0x1445), 1) + 1
- magicSlots = mainmemory.read_s8(0x1447)
- upgradeSlots = 0
- offset = 0x10EE
- for i = 1, 3, 1 do
- if mainmemory.read_u8(offset) == 1 then upgradeSlots = upgradeSlots + 1 end
- offset = offset + 0x41
- end
- color1 = 0xFFFFFFFF
- color2 = 0xFFFFFFFF
- color3 = 0xFFFFFFFF
- color4 = 0xFFFFFFFF
- if objectSlots == 0 then color1 = 0xFFFF7777 end
- if weaponSlots == 0 then color2 = 0xFFFF7777 end
- if magicSlots == 0 then color3 = 0xFFFF7777 end
- if upgradeSlots == 3 then color4 = 0xFFFF7777 end
- gui.text(0, 64, "obj " .. 31-objectSlots .. "/31", color1)
- gui.text(0, 79, "wpn " .. 10-weaponSlots .. "/10", color2)
- gui.text(0, 94, "mag " .. 8-magicSlots .. "/8", color3)
- gui.text(0, 109, "upg " .. upgradeSlots .. "/3", color4)
- emu.frameadvance()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement