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