Computercraft Password Door 3


SUBMITTED BY: CrushLP

DATE: Sept. 7, 2017, 7:24 p.m.

FORMAT: Text only

SIZE: 626 Bytes

HITS: 1011

  1. term.clear()
  2. term.setCursorPos(1,1)os.pullEvent = os.pullEventRaw
  3. password = "opendoor"
  4. masterpassword = "masteropen"
  5. print("Door Lock Version 1.1")
  6. write "Please Enter Password: "
  7. local input = read("*")
  8. if input == (password) then
  9. print("Password Accepted - Access Granted")
  10. redstone.setOutput("left", true)
  11. sleep(5)
  12. os.shutdown()
  13. elseif input == (masterpassword) then
  14. print("Wilkommen, Mr.Lyon. Das Terminal wurde für sie aktiviert.")
  15. sleep(2)
  16. print("Bitte speichern sie das System, nachdem sie es genutzt haben.")
  17. else
  18. print("Password Incorrect - Rebooting Now.")
  19. sleep(2)
  20. os.shutdown()
  21. end

comments powered by Disqus