SHARE
TWEET

Megaman X6 Script

Rolanmen1 Aug 24th, 2011 (edited) 254 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. php = 0x000970FC
  2. pinv = 0x00097101
  3. souls = {0x000CCFA2, 0x000CCFA4}
  4. charge = {0x0009713E, 0x0009713D}
  5. dash = 0x00097125
  6.  
  7. xpos = 0x000970AA
  8. xsub = 0x000970A9
  9. ypos = 0x000970AE
  10. ysub = 0x000970AD
  11. xspd = 0x000970C1
  12. yspd = 0x000970C5
  13.  
  14. bhp = 0x0008EFA4
  15. binv = 0x0008EFCC
  16. bar = 0x0008EFA5
  17. bossatk = 0x0008EF4D
  18.  
  19. function printchargecolor(charge, idcharge)
  20.     color = "white"
  21.     if charge >= 25 and charge < 90 and idcharge == 1 then
  22.         color = "green"
  23.     elseif charge == 90 then
  24.         color = "blue"
  25.     end
  26.     return color
  27. end
  28.  
  29. while true do
  30.     gui.text(0,80,"HP: " .. memory.readbyte(php))
  31.     gui.text(0,94,"Inv: " .. memory.readbyte(pinv))
  32.    
  33.     gui.text(0,136,"Souls: ")
  34.     gui.text(64,136,memory.read_s16_le(souls[1]),"Cyan")
  35.     gui.text(64,150,memory.read_s16_le(souls[2]),"Red")
  36.    
  37.     if memory.readbyte(charge[1]) > 0 or memory.readbyte(charge[2]) > 0 then
  38.         gui.text(0,196,"Charge: ")
  39.         gui.text(72,196,memory.readbyte(charge[1]),printchargecolor(memory.readbyte(charge[1]),1))
  40.         gui.text(96,196,"-")
  41.         gui.text(112,196,memory.readbyte(charge[2]),printchargecolor(memory.readbyte(charge[2]),2))
  42.     end
  43.    
  44.     gui.text(0,238,"Dash: " .. memory.readbyte(dash))
  45.    
  46.     gui.text(0,280,"X Spd: " .. memory.read_s16_le(xspd))
  47.     gui.text(0,294,"Y Spd: " .. memory.read_s16_le(yspd))
  48.     gui.text(0,336,"X Pos: " .. memory.read_s16_le(xpos) .. " - " .. memory.readbyte(xsub))
  49.     gui.text(0,350,"Y Pos: " .. memory.read_s16_le(ypos) .. " - " .. memory.readbyte(ysub))
  50.  
  51.     if memory.readbyte(bar) > 0 then
  52.         gui.text(0,420,"HP: " .. memory.readbyte(bhp) .. " - " .. memory.readbyte(binv))
  53.         gui.text(0,434,"Current Atk: " .. memory.readbyte(bossatk))
  54.     end
  55.    
  56.     emu.frameadvance();
  57. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top