SHOW:
|
|
- or go back to the newest paste.
1 | --VaultDoorAdmin | |
2 | local DoorSeq = "1" | |
3 | - | local opentime = 5 |
3 | + | local opentime = 10 |
4 | rednet.open("back") | |
5 | ||
6 | while true do | |
7 | - | term.clear() |
7 | + | term.clear(bin) |
8 | term.setCursorPos(1,1) | |
9 | print("1. For å åpne dør: ") | |
10 | pw = read() | |
11 | ||
12 | if pw == DoorSeq then | |
13 | - | term.clear() |
13 | + | term.clear(bin) |
14 | term.setCursorPos(1,1) | |
15 | - | print("Åpner dør..") |
15 | + | print("Apner dør..") |
16 | rednet.broadcast("VAULT_OPEN") | |
17 | - | print("Dør åpen") |
17 | + | print("Ddor åpen") |
18 | sleep(opentime) | |
19 | rednet.broadcast("VAULT_CLOSED") | |
20 | print("Dør lukket") | |
21 | - | sleep(1) |
21 | + | sleep(3) |
22 | ||
23 | else | |
24 | - | term.clear() |
24 | + | term.clear(bin) |
25 | term.setCursorPos(1,1) | |
26 | print("ERROR: Feil input eller lignende. Kontakt tech support :) ") | |
27 | sleep(5) | |
28 | end | |
29 | end | |
30 |