Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------
- -- Programm für ein Trottel --
- ------------------------------
- pin = "1235"
- puk = "5321"
- opentime = 5
- rsSide = "bottom"
- local pullEvent = os.pullEvent
- --os.pullEvent = os.pullEventRaw
- ------------------------------
- run = true
- door = false
- ------------------------------
- while run do
- shell.run("clear")
- write("Passwort: ")
- rs.setOutput(rsSide, true)
- event,side,x,y = os.pullEvent()
- if event == "terminate" then
- if io.read() == puk then
- write("Richtig! Mache jetzt nochmal STRG + T fuer 4 sec. Du hast 6 sec Zeit.")
- sleep(6)
- end
- end
- if io.read() == pin then
- rs.setOutput(rsSide, false)
- sleep(opentime)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement