Advertisement
Rolanmen1

Megaman Zero 3 Script

Jul 16th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.95 KB | None | 0 0
  1. x = 0x02037FF5
  2. y = 0x02037FF9
  3. hp = 0x02038044
  4. inv = 0x02038034
  5. crystal = 0x0203805A
  6. dash = 0x020380B0
  7. ch = {0x0203807C, 0x0203807D}
  8.  
  9. disk = 0x0203DF9E
  10. --0x020380D1
  11. --0x020380D2
  12.  
  13. bosshp = 0x0203BE44
  14. bossinv = 0x0203BE34
  15.  
  16. while true do
  17.     gui.text(4,0,string.format("X: %d\nY: %d",memory.readword(x),memory.readword(y)))
  18.     if memory.readword(x) == 0 then
  19.         gui.text(4,35,"HP: 16")
  20.     else
  21.         gui.text(4,35,"HP: " .. memory.readbyte(hp))
  22.     end
  23.     gui.text(36,35,"Inv: " .. memory.readbyte(inv))
  24.     gui.text(20,43,"Crystal: " .. memory.readword(crystal))
  25.     gui.text(32,51,"Dash: " .. memory.readbytesigned(dash)+1)
  26.     gui.text(24,59,"Charge: " .. memory.readbyte(ch[1]) .. " : " .. memory.readbyte(ch[2]))
  27.     gui.text(32,67,"Disk: " .. memory.readbyte(disk))
  28.     if memory.readbyte(bosshp) ~= 0 or memory.readbyte(bossinv) ~= 0 then
  29.         gui.text(214,0,"HP: " .. memory.readbyte(bosshp))
  30.         gui.text(210,8,"Inv: " .. memory.readbyte(bossinv))
  31.     end
  32.     emu.frameadvance()
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement