Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)os.pullEvent = os.pullEventRaw
- password = "haiichbins"
- masterpassword = "139753"
- print(" |--------------DOOR LOCK SYSTEM---------------| ")
- print(" | __ | ")
- print(" | |_ _ _| _ _. _ | _ _ | ")
- print(" | |__| )(_|(-| ||_|||| || )(_. | ")
- print(" | | ")
- print("--- ---")
- print("\n")
- print(" PASSWORT: ")
- write(" [ ]")
- print("\n\n\n--- ---")
- print(" | Eingangspforte | ")
- print(" | | ")
- print(" | | ")
- print(" | | ")
- print(" --UI_Model 1.0--------------------Version 2.1-- ")
- local curTerm = term.current()
- local input = window.create(curTerm, 21, 10, 11, 1)
- term.redirect(input)
- local input = read("*")
- term.redirect(curTerm)
- if input == (password) then
- print(" Granted")
- redstone.setOutput("back", true)
- sleep(5)
- os.shutdown()
- elseif input == (masterpassword) then
- term.clear()
- sleep(1)
- print("\nDas Terminal ist jetzt freigeschaltet\n")
- print("Bitte speichere alles vor dem verlassen.")
- sleep(2)
- term.clear()
- else
- print(" Wrong")
- sleep(1)
- os.shutdown()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement