entourian

startup

Jan 13th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3.  
  4. print("If you are a Guest Press 1.")
  5. visit = io.read()
  6. if visit == "1" then
  7. term.clear()
  8. term.setCursorPos(1, 1)
  9. correctpass = "The Crimson King"
  10. print("I am the angel, I am madness")
  11. print("I am the word, I am the law")
  12. print("I hold truth within your sadness")
  13. print("I am the king, I am the god.")
  14. print("Who am I?")
  15. pass = io.read()
  16. term.clear()
  17. term.setCursorPos(1, 1)
  18. if pass == (correctpass) then
  19. write("You are worthy, you may pass.")
  20. redstone.setOutput("back",true)
  21. sleep(6)
  22. os.shutdown()
  23. else
  24. write("Thou must read more.")
  25. sleep(2)
  26. os.shutdown()
  27. end
  28.  
  29. else
  30. if visit == "Toto" then
  31. term.clear()
  32. term.setCursorPos(1, 1)
  33. print("Username: ")
  34. Username = io.read()
  35. print("Password: ")
  36. Password = io.read()
  37.  
  38. if Username == "Entourian" and Password == "Apotheosis" then
  39. term.clear()
  40. term.setCursorPos(1, 1)
  41. print("Welcome admin.")
  42. redstone.setOutput("back",true)
  43. sleep(6)
  44. os.shutdown()
  45. else
  46. shell.run('startup')
  47. end
  48. else
  49. end
  50. end
Advertisement
Add Comment
Please, Sign In to add comment