Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- password = "1337"
- function checkPassword()
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.green)
- print("Enter Your Password")
- term.setTextColor(colors.white)
- input = read("#")
- if input == password then
- return true
- else
- return false
- end
- end
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.blue)
- print("Made By TheProjectAce")
- sleep(1)
- term.setTextColor(colors.white)
- while true do
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.blue)
- print("What Do You Wish To Do:")
- term.setTextColor(colors.green)
- print("1. Open Door")
- print("2. Close Door")
- print("3. Logout")
- term.setTextColor(colors.white)
- input = read("#")
- if input == "1" then
- if checkPassword() == true then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.purple)
- print("Opening Doors...")
- term.setTextColor(colors.white)
- sleep(2)
- rs.setOutput("bottom",true)
- sleep(2)
- rs.setOutput("bottom",false)
- term.setCursorPos(1,1)
- else
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Invalid Password")
- sleep(2)
- term.setTextColor(colors.white)
- end
- elseif input == "2" then
- if checkPassword() == true then
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.purple)
- print("Closing Doors...")
- term.setTextColor(colors.white)
- sleep(2)
- rs.setOutput("bottom",false)
- else
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Invalid Password")
- sleep(2)
- term.setTextColor(colors.white)
- end
- elseif input == "3" then
- term.setTextColor(colors.purple)
- print("Loging Out")
- sleep(1)
- term.setTextColor(colors.white)
- shell.run("LoginSystem")
- elseif input == "OptOut" then
- term.setTextColor(colors.red)
- print("Bypassing Login/Logout System...")
- print("Also Bypassing DoorsAPI...")
- sleep(2)
- term.setTextColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- break
- else
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("Invalid Number Entry")
- sleep(2)
- term.setTextColor(colors.white)
- term.clear()
- term.setCursorPos(1,1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement