Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i = 0
- rs.setOutput("bottom", false)
- function openDoor()
- rs.setOutput("right", true)
- print("Access Granted")
- os.sleep(10)
- rs.setOutput("right", false)
- i = 0
- end
- function emerEvac()
- rs.setOutput("left", true)
- os.sleep(5)
- rs.setOutput("left", false)
- return("Emergency Evacuation Activated... Please Stand By.")
- end
- function wrongPass()
- if i == 0 then
- i = 1
- return "2 Attempts Remaining"
- elseif i == 1 then
- i = 2
- return "1 Attempt Remaining"
- elseif i == 2 then
- i = 0
- rs.setOutput("bottom", true)
- return "INVALID AUTHORIZATION, BEGINNING SECTOR LOCKDOWN"
- end
- end
- while true do
- term.clear()
- term.setCursorPos(1,1)
- rs.setOutput("right", false)
- poweredon = rs.getInput("back")
- if poweredon == true then
- openDoor()
- else
- os.sleep(.5)
- end
- print("Welcome to RFighter15's Server Room!")
- print("Authorized Access Only")
- input = read("-CEN-")
- if input == "serverentry" then
- openDoor()
- elseif input == "emer" then
- print(emerEvac())
- else
- print("Password Incorrect")
- os.sleep(3)
- print(wrongPass())
- os.sleep(5)
- end
- end
Add Comment
Please, Sign In to add comment