Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 7th, 2014 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local p = {0,0,0,0,0,0}
  2. local cam = {0,0}
  3.  
  4. local function objects()
  5.  
  6. for i=0,15 do
  7.         gui.box(memory.readbyte(0x379+i)-8,memory.readbyte(0x38f+i)-4,memory.readbyte(0x379+i),memory.readbyte(0x38f+i)+4)
  8. end
  9.  
  10. end
  11.  
  12. local function Stuff()
  13.  
  14. p[1] = memory.readbyteunsigned(0x379) -- x
  15. p[3] = memory.readbyteunsigned(0x38f) -- y,
  16.  
  17. cam[1] = memory.readword(0x50, 0x51) -- camx
  18. cam[2] = memory.readword(0x52, 0x89) -- camy
  19.  
  20. gui.text(1, 48, string.format("X %3d\nY %3d\nPOW: %3d",p[1],p[3],memory.readbyte(0x57d)))
  21. gui.text(1, 77, string.format("Xcam: %4d\nYcam: %4d",cam[1], cam[2]))
  22.  
  23. gui.box(memory.readbyteunsigned(0x207),memory.readbyteunsigned(0x208),memory.readbyteunsigned(0x20B),memory.readbyteunsigned(0x220))
  24. gui.text(p[1]-16,p[3],string.format("X %4d\nY %4d", p[1]+cam[1], p[3]+cam[2]))
  25.  
  26. gui.text(10,10,string.format("Boss hp: %3d or %1d:%1d:%1d--%1d", memory.readbyte(0x5a2),memory.readbyte(0x493)
  27.                                                         ,memory.readbyte(0x494),memory.readbyte(0x495),memory.readbyte(0x496)))
  28.                                                        
  29. gui.text(10,20,string.format("Timer: %3d\nState: %2X\nSpeedometer: %d", memory.readbyte(0x5b9),memory.readbyte(0x300),memory.readbyte(0x3a5)))
  30.  
  31. objects()
  32.  
  33. end
  34.  
  35. emu.registerafter(Stuff)
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