Advertisement
istwan100

Computercraft - Passwort Tür

Mar 13th, 2015
598
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. -- copyright (c) by gigagames
  2. -- Passwort
  3. passwort = "pantoffel100"                                              
  4. passsymbol = "*"                                                       
  5. -- POWERING
  6. rseite = "left"                                                      
  7. zeit = 5                                                               
  8. Pweingeben = "Bitte gebe das Passwort ein"
  9. Pwrichtig = "Passwort richtig"                                     
  10. Pwfalsch = "Passwort Falsch"
  11.  
  12. while 1 do
  13. print(Pweingeben)
  14. xpasswort = read(passsymbol)
  15. if xpasswort == passwort then
  16. print(Pwrichtig)
  17. rs.setOutput(rseite,true)
  18. sleep(zeit)
  19. rs.setOutput(rseite,false)
  20. term.clear()
  21. else
  22. print(Pwfalsch)
  23. end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement