Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- AutoScroll Code
- local autoscroll = require ("autoscroll")
- local scrollPattern = {
- {-200000, -200480, -199360, -200000, nil},
- {-196960, -200480, -196320, -200000, 1},
- {-197344, -201120, -196704, -200640, 1.50},
- {-198272, -201120, -197632, -200640, 1.25}
- }
- local scrollIdx = 1
- function onStart()
- if player.section == 0 then
- local scroll = scrollPattern[scrollIdx]
- autoscroll.scrollToBox(scroll[1], scroll[2], scroll[3], scroll[4], scroll[5])
- scrollIdx = scrollIdx + 1
- scroll = scrollPattern[scrollIdx]
- autoscroll.scrollToBox(scroll[1], scroll[2], scroll[3], scroll[4], scroll[5])
- scrollIdx = scrollIdx + 1
- end
- end
- function onDrawEnd()
- if player.section == 0 and not autoscroll.isSectionScrolling(0) and (scrollPattern[scrollIdx] ~= nil) then
- local scroll = scrollPattern[scrollIdx]
- autoscroll.scrollToBox(scroll[1], scroll[2], scroll[3], scroll[4], scroll[5])
- scrollIdx = scrollIdx + 1
- end
- end
- function onTick()
- if player.deathTimer > 0 then return end
- if player:mem(0x148, FIELD_WORD) > 0
- and player:mem(0x14C, FIELD_WORD) > 0 then
- player.kill()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement