Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Mar 30th, 2020 90 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- AutoScroll Code
  2. local autoscroll = require ("autoscroll")
  3.  
  4. local scrollPattern = {
  5.     {-200000, -200480, -199360, -200000, nil},
  6.     {-196960, -200480, -196320, -200000, 1},
  7.     {-197344, -201120, -196704, -200640, 1.50},
  8.     {-198272, -201120, -197632, -200640, 1.25}
  9. }
  10.  
  11. local scrollIdx = 1
  12.  
  13. function onStart()
  14.     if player.section == 0 then
  15.     local scroll = scrollPattern[scrollIdx]
  16.     autoscroll.scrollToBox(scroll[1], scroll[2], scroll[3], scroll[4], scroll[5])
  17.     scrollIdx = scrollIdx + 1
  18.    
  19.     scroll = scrollPattern[scrollIdx]
  20.     autoscroll.scrollToBox(scroll[1], scroll[2], scroll[3], scroll[4], scroll[5])
  21.     scrollIdx = scrollIdx + 1  
  22.     end
  23. end
  24.  
  25. function onDrawEnd()
  26.     if player.section == 0 and not autoscroll.isSectionScrolling(0) and (scrollPattern[scrollIdx] ~= nil) then
  27.         local scroll = scrollPattern[scrollIdx]
  28.         autoscroll.scrollToBox(scroll[1], scroll[2], scroll[3], scroll[4], scroll[5])
  29.         scrollIdx = scrollIdx + 1
  30.     end
  31. end
  32.  
  33. function onTick()
  34.     if player.deathTimer > 0 then return end
  35.     if player:mem(0x148, FIELD_WORD) > 0
  36.     and player:mem(0x14C, FIELD_WORD) > 0 then
  37.         player.kill()
  38.     end
  39. 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