Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1,1)
  3. term.setTextColor(colors.white)
  4.  
  5. function welcome()
  6.  
  7. term.clear()
  8. term.setCursorPos(1,1)
  9. term.setTextColor(colors.white)
  10. rednet.open(left)
  11.  
  12. local i = 3
  13.  
  14. term.setCursorPos(3,1)
  15. print("Welome, please enter the password")
  16.  
  17. end
  18.  
  19. function correct()
  20.  
  21. term.setCursorPos(5,1)
  22. term.setTextColor(colors.lime)
  23. print("Correct! Opening Door!")
  24. rs.setOutput("back", true)
  25. sleep(2)
  26. rs.setOutput("back", false)
  27. welcome()
  28. end
  29.  
  30. function incorrect()
  31.  
  32. term.setCursorPos(5,1)
  33. term.setTextColor(color.red)
  34. print(" Incorrect! Try Again!") then
  35. local i= i-1
  36.  
  37. welcome()
  38.  
  39. if local i == 0 then
  40.  
  41. term.setCursorPos(7,1)
  42. term.setTextSize(2)
  43.  
  44. print("YOU HAVE FAILED! YOU WILL NOW DIE!")
  45. rednet.broadcast("die")
  46. os.shutdown()
  47.  
  48. end
  49.  
  50. welcome()
  51.  
  52. input = read()
  53.  
  54. if input == "Illuminati" then
  55.  
  56. correct() else
  57.  
  58. incorrect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement