Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- username = "walterwhite"
- password = "lovesmeth"
- secretuser = "love"
- attempt = 0
- function attemptCheck()
- if attempt > 1 then
- term.clear()
- term.setCursorPos(1,1)
- textutils.slowPrint ("Attempt Limit Reached")
- sleep(60)
- textutils.slowPrint ("Shutting down..")
- sleep(1)
- os.reboot()
- end
- end
- function login()
- attemptCheck()
- term.clear()
- print("Attempt: ", attempt)
- write("Username: ")
- input = read()
- if input == secretuser then
- print("wtf u transgender hacker")
- else
- if input == username then
- write("Password: ")
- input = read("*")
- if input == password then
- textutils.slowPrint ("Welcome my nigga")
- rs.setOutput("bottom", true)
- sleep(2)
- rs.setOutput("bottom", false)
- term.setCursorPos(1,1)
- login()
- else
- textutils.slowPrint ("Incorrect Password")
- sleep(1)
- textutils.slowPrint ("Try again")
- attempt = attempt + 1
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- login()
- end
- else
- textutils.slowPrint ("Invalid Username")
- sleep(1)
- textutils.slowPrint ("Try again")
- attempt = attempt + 1
- sleep(1)
- term.clear()
- term.setCursorPos(1,1)
- login()
- end
- end
- end
- login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement