SHOW:
|
|
- or go back to the newest paste.
1 | try = 0 | |
2 | os.pullEvent = os.pullEventRaw | |
3 | function screen() | |
4 | term.clear() | |
5 | term.setCursorPos(1,1) | |
6 | print("+-------------------------+") | |
7 | print("| PrinzJuliano's Terminal |") | |
8 | print("+-------------------------+") | |
9 | - | print("| News: Now with 5 trys |") |
9 | + | |
10 | end | |
11 | function pass() | |
12 | screen() | |
13 | if try == 5 then | |
14 | sp = textutils.slowPrint | |
15 | screen() | |
16 | sp("Too many wrong trys!") | |
17 | sp("Shutdown()") | |
18 | sleep(1.5) | |
19 | os.shutdown() | |
20 | else | |
21 | term.write("Password: ") | |
22 | rocs = read("*") | |
23 | if rocs == "<password>" then | |
24 | screen() | |
25 | - | if rocs == "Halt die Klappe" then |
25 | + | print("Right!") |
26 | print("") | |
27 | - | print("Akzeptiert") |
27 | + | |
28 | - | print("logout, exit") |
28 | + | |
29 | print(textutils.slowPrint("Shutdown()")) | |
30 | sleep(2) | |
31 | os.shutdown() | |
32 | else | |
33 | screen() | |
34 | print("Wrong!") | |
35 | sleep(2) | |
36 | try = try +1 | |
37 | pass() | |
38 | end | |
39 | end | |
40 | - | pass(0) |
40 | + | |
41 | pass(0) |