Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- os.sleep(0.5)
- term.setCursorPos(1,1)
- term.setTextColor(colors.red)
- print("COMPUTER PRIVATO")
- os.sleep(0.5)
- term.setTextColor(colors.green)
- textutils.slowPrint("Autentificarsi per accedervi:")
- usernameFra = " "
- passwordFra = " "
- usernameTom = " "
- passwordTom = " "
- term.setCursorPos(1,4)
- term.setTextColor(colors.white)
- write("Username: ")
- user = read()
- term.setCursorPos(1,5)
- write("Password: ")
- pass = read("*")
- term.setCursorPos(1,8)
- textutils.slowPrint("Sto Verificando i tuoi dati...")
- os.sleep(2)
- gatto = true
- while gatto do
- if (user == usernameFra and pass == passwordFra) or
- (user == usernameTom and pass == passwordTom) then
- term.setCursorPos(1,9)
- term.setTextColor(colors.green)
- textutils.slowPrint("Login effettuato con successo!")
- sleep(3)
- term.clear()
- term.setCursorPos(1,1)
- term.setTextColor(colors.yellow)
- textutils.slowPrint("CraftOS 1.7")
- gatto = false
- else
- term.setCursorPos(1,9)
- term.setTextColor(colors.red)
- textutils.slowPrint("Username o Password errati. Riprovare.")
- os.sleep(2)
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement