zeshan

Untitled

Dec 22nd, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. local pullEvent = os.pullEvent
  3. os.pullEvent = os.pullEventRaw
  4. os.pullEvent = pullEvent
  5. local opentime = 10
  6. os.pullEvent = os.pullEventRaw
  7. local pullEvent = os.pullEvent
  8. os.pullEvent = os.pullEventRaw
  9. os.pullEvent = pullEvent
  10. yn = read()
  11. local yn = "y"
  12. while true do
  13. term.clear()
  14. term.setCursorPos(1,1)
  15. print("Type Y to leave.")
  16. yn = read()
  17. rs.setOutput("back", true)
  18. rs.setOutput("left", true)
  19. sleep(opentime)
  20. rs.setOutput("back", false)
  21. rs.setOutput("left", false)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment