Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function open()
- rs.setOutput("right", true)
- os.sleep(5)
- rs.setOutput("right", false)
- end
- local pullEvent = os.pullEvent
- os.pullEvent = os.pullEventRaw
- while true do
- term.clear()
- local w, h = term.getSize()
- term.setCursorPos(math.floor(w-string.len("Property of IBO"))/2,h/2-1)
- print("Property of IBO")
- term.setCursorPos(math.floor(w-string.len("Login Attempts Are Logged"))/2,h)
- print("Login Attempts Are Logged")
- term.setCursorPos(math.floor(w-string.len("Password"))/2,h/2)
- print("Password")
- term.setCursorPos(w/2-4,h/2+1)
- local input = read("*")
- if input == "pasmal" then
- os.pullEvent = pullEvent
- print("Closing out...")
- os.sleept(1)
- error("Exited")
- end
- if input == "nyancat" then
- term.clear()
- term.setCursorPos(math.floor(w-string.len("Access Granted"))/2,h/2)
- print("Access Granted")
- open()
- os.reboot()
- else
- term.clear()
- term.setCursorPos(math.floor(w-string.len("Access Denied"))/2,h/2)
- print("Acess Denied")
- sleep(1)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement