Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.white)
- function welcome()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.white)
- rednet.open(left)
- local i = 3
- term.setCursorPos(3,1)
- print("Welome, please enter the password")
- end
- function correct()
- term.setCursorPos(5,1)
- term.setTextColor(colors.lime)
- print("Correct! Opening Door!")
- rs.setOutput("back", true)
- sleep(2)
- rs.setOutput("back", false)
- welcome()
- end
- function incorrect()
- term.setCursorPos(5,1)
- term.setTextColor(color.red)
- print(" Incorrect! Try Again!") then
- local i= i-1
- welcome()
- if local i == 0 then
- term.setCursorPos(7,1)
- term.setTextSize(2)
- print("YOU HAVE FAILED! YOU WILL NOW DIE!")
- rednet.broadcast("die")
- os.shutdown()
- end
- welcome()
- input = read()
- if input == "Illuminati" then
- correct() else
- incorrect()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement