Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --VaultDoorAdmin
- local DoorSeq = "1"
- local opentime = 5
- rednet.open("back")
- while true do
- term.clear()
- term.setCursorPos(1,1)
- print("1. For å åpne dør: ")
- pw = read()
- if pw == DoorSeq then
- term.clear()
- term.setCursorPos(1,1)
- print("Åpner dør..")
- rednet.broadcast("VAULT_OPEN")
- print("Dør åpen")
- sleep(opentime)
- rednet.broadcast("VAULT_CLOSED")
- print("Dør lukket")
- sleep(1)
- else
- term.clear()
- term.setCursorPos(1,1)
- print("ERROR: Feil input eller lignende. Kontakt tech support :) ")
- sleep(5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement