Advertisement
jared314

Lock

Feb 23rd, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. x = 1
  3. while true do
  4. rs.setOutput("back",true)
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. write("Control Room")
  8. term.setCursorPos(1,2)
  9. write("Password: ")
  10. local input = read("*")
  11. if input == "000000" then
  12. term.clear()
  13. term.setCursorPos(1,1)
  14. print("Password Correct")
  15. rednet.open("back")
  16. rednet.broadcast("000000")
  17. sleep(1)
  18. else if input == "debug" then
  19. term.clear()
  20. term.setCursorPos(1,1)
  21. print("Entering Console Development Mode")
  22. error()
  23. else if x == 4 then
  24. print("Password Entered Incorrect 3 Times")
  25. print("Locked For 1 Minute")
  26. sleep(60)
  27. x = 1
  28. else
  29. print("Password Incorrect")
  30. x = x + 1
  31. sleep(2)
  32. end
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement