Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1, 1)
- print("If you are a Guest Press 1.")
- visit = io.read()
- if visit == "1" then
- term.clear()
- term.setCursorPos(1, 1)
- correctpass = "The Crimson King"
- print("I am the angel, I am madness")
- print("I am the word, I am the law")
- print("I hold truth within your sadness")
- print("I am the king, I am the god.")
- print("Who am I?")
- pass = io.read()
- term.clear()
- term.setCursorPos(1, 1)
- if pass == (correctpass) then
- write("You are worthy, you may pass.")
- redstone.setOutput("back",true)
- sleep(6)
- os.shutdown()
- else
- write("Thou must read more.")
- sleep(2)
- os.shutdown()
- end
- else
- if visit == "Toto" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Username: ")
- Username = io.read()
- print("Password: ")
- Password = io.read()
- if Username == "Entourian" and Password == "Apotheosis" then
- term.clear()
- term.setCursorPos(1, 1)
- print("Welcome admin.")
- redstone.setOutput("back",true)
- sleep(6)
- os.shutdown()
- else
- shell.run('startup')
- end
- else
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment