IronClaymore

Pyrolock system for Rhonyn's containment dome, entrance

Feb 5th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. local pullEvent = os.pullEvent
  2. os.pullEvent = os.pullEventRaw
  3. while true do
  4. term.clear()
  5. term.setCursorPos(1, 1)
  6. print("DANGER! The interior of this facility is infected with taint.")
  7. term.setCursorPos(1, 2)
  8. print("Authorised personnel only!")
  9. term.setCursorPos(1, 3)
  10. print("Please enter password to begin door opening procedure: ")
  11. input = read()
  12. if input == "password" then
  13. term.clear()
  14. term.setCursorPos(1, 1)
  15. print("Password correct, please stand by. Pyrotheum purging in progress...")
  16. redstone.setBundledOutput("back", 3)
  17. sleep(2)
  18. term.clear()
  19. term.setCursorPos(1, 1)
  20. print("Each door will remain open for 10 seconds. After second door closes, chamber will be flooded with pyrotheum.")
  21. redstone.setBundledOutput("back", 5)
  22. sleep(10)
  23. redstone.setBundledOutput("back", 9)
  24. sleep(10)
  25. redstone.setBundledOutput("back", 0)
  26. end
  27. if input == "debug" then
  28. os.pullEvent = pullEvent
  29. end
  30. if input ~= "password" and input ~= "debug" then
  31. term.clear()
  32. term.setCursorPos(1, 1)
  33. print("Password correct, please stand by. Pyrotheum purging in progress...")
  34. redstone.setBundledOutput("back", 3)
  35. sleep(2)
  36. term.clear()
  37. term.setCursorPos(1, 1)
  38. print("Each door will remain open for 10 seconds. After second door closes, chamber will be flooded with pyrotheum.")
  39. redstone.setBundledOutput("back", 5)
  40. sleep(10)
  41. redstone.setBundledOutput("back", 0)
  42. end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment