Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.40 KB | None | 0 0
  1. while true do
  2.  
  3. -- gui hud
  4. gui.opacity(0.70)
  5. gui.drawbox(60,3,210,36,"#00008b", "#dcdcdc")
  6.  
  7. -- Weapon
  8. --- Weapon memory address is variable!!
  9. weapon = memory.readbyte(0x0200e7f2)
  10. if weapon == 0 then gui.text(65,21, "[Standard gun]")
  11. elseif weapon == 1 then gui.text(65,21, "[Slime gun]", "#7fff00")
  12. elseif weapon == 2 then gui.text(65,21, "[Flame thrower]", "#ffa500")
  13. elseif weapon == 3 then gui.text(65,21, "[Ice gun]", "#00ffff")
  14. elseif weapon == 4 then gui.text(65,21, "[Laser shotgun]", "#ff00ff")
  15. elseif weapon == 5 then gui.text(65,21, "[Laser beam]", "#ff4500")
  16. elseif weapon == 6 then gui.text(65,21, "[Multi gun]", "#ffff00")
  17. elseif weapon == 7 then gui.text(65,21, "[Light ball]", "yellow")
  18. else gui.text(64,21, "unknown weapon") end
  19.  
  20. -- Ammo
  21. gui.opacity(0.80)
  22. if weapon == 0 then gui.text(64,5, "Ammo: -")
  23. else gui.text(64,5, "Ammo: " ..memory.readbyte(0x03000472) + 256*memory.readbyte(0x03000473)) end
  24. gui.text(64,13, "Grenades: " ..memory.readbyte(0x03000474))
  25.  
  26. -- Position, Speed, Boss HP
  27. --- Boss HP and X-Position addresses are variable!!
  28. --- TODO: Implement X-Pos display
  29. --- TODO: Implement Boss HP display
  30.  
  31. gui.text(130,5, "X-Speed: " ..memory.readbytesigned(0x03000449))
  32. gui.text(130,13, "Enemies to kill: "..memory.readbyte(0x03000328))
  33.  
  34.  
  35. ---- LEVEL2
  36. -- Heli 30 HP
  37. -- Tank 50 HP
  38. -- FBI agent 50 HP
  39. -- Statue ~54 HP
  40. -- Building 65 HP
  41. -- boss ?? HP
  42.  
  43. vba.frameadvance()
  44. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement