Advertisement
uuunix

Untitled

Oct 19th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2.  
  3. local doorLocation = "bottom"
  4. local user = "2746"
  5. local password = "samsungsony"
  6. local sleepTime = 3
  7.  
  8.  
  9. term.clear()
  10. term.setCursorPos(1,1)
  11. print("Altay's Sicherheitstür BETA")
  12. print("")
  13.  
  14. write("Benutzer-ID: ")
  15. input = read()
  16. if input == user then
  17. print("")
  18. print("ID konnte verifiziert werden. Du wirst nun weitergeleitet!")
  19. print("")
  20. sleep(1)
  21. else
  22. print("ID konnte nicht verifiziert werden. Versuch es erneut!")
  23. sleep(1)
  24. end
  25.  
  26.  
  27.  
  28. write("Passwort verifizierung: ")
  29. input = read("*")
  30. if input == password then
  31. print("")
  32. print("Das Passwort ist korrekt. Du kannst nun weitergehen!")
  33. print("")
  34. redstone.setOutput(doorLocation, true)
  35. sleep(sleepTime)
  36. redstone.setOutput(doorLocation, false)
  37. term.clear()
  38. term.setCursorPos(1,1)
  39. os.shutdown()
  40.  
  41. else
  42. print("")
  43. print("Passwort nicht korrekt! Versuch's erneut!")
  44. print("")
  45. sleep(sleepTime)
  46. term.clear()
  47. term.setCursorPos(1,1)
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement