View difference between Paste ID: Qug1MRPv and Jwk1YgUx
SHOW: | | - or go back to the newest paste.
1
os.pullEvent = os.pullEventRaw
2
3
term.clear()
4
term.setCursorPos(1, 1)
5
6
username = {"12345"}
7
8
write("Password: ")
9
pass = read('*')
10
11
for i=1, #username do
12
 if pass == username[i] then
13
   access = true
14
 end
15
end
16
17
if access == true then
18
print("Logging in...")
19
sleep(1)
20
print("Welcome")
21
sleep(1)
22
23
term.clear() -- Clears the screen
24
term.setCursorPos(1, 1) 
25
26
shell.run("redpulse left 1 10")
27
28
term.clear() -- Clears the screen
29
term.setCursorPos(1, 1) 
30-
peripheral.wrap("TOP").write("Closing in.. 10")
30+
peripheral.wrap("top").write("Closing in.. 10")
31
sleep(1)
32-
peripheral.wrap("TOP").clear()    -- Clears the screen
32+
peripheral.wrap("top").clear()    -- Clears the screen
33-
peripheral.wrap("TOP").setCursorPos(1, 1) 
33+
peripheral.wrap("top").setCursorPos(1, 1) 
34-
peripheral.wrap("TOP").write("Closing in.. 9")
34+
peripheral.wrap("top").write("Closing in.. 9")
35
sleep(1)
36-
peripheral.wrap("TOP").clear()    -- Clears the screen
36+
peripheral.wrap("top").clear()    -- Clears the screen
37-
peripheral.wrap("TOP").setCursorPos(1, 1) 
37+
peripheral.wrap("top").setCursorPos(1, 1) 
38-
peripheral.wrap("TOP").write("Closing in.. 8")
38+
peripheral.wrap("top").write("Closing in.. 8")
39
sleep(1)
40-
peripheral.wrap("TOP").clear()    -- Clears the screen
40+
peripheral.wrap("top").clear()    -- Clears the screen
41-
peripheral.wrap("TOP").setCursorPos(1, 1) 
41+
peripheral.wrap("top").setCursorPos(1, 1) 
42-
peripheral.wrap("TOP").write("Closing in.. 7")
42+
peripheral.wrap("top").write("Closing in.. 7")
43
sleep(1)
44-
peripheral.wrap("TOP").clear()    -- Clears the screen
44+
peripheral.wrap("top").clear()    -- Clears the screen
45-
peripheral.wrap("TOP").setCursorPos(1, 1) 
45+
peripheral.wrap("top").setCursorPos(1, 1) 
46-
peripheral.wrap("TOP").write("Closing in.. 6")
46+
peripheral.wrap("top").write("Closing in.. 6")
47
sleep(1)
48-
peripheral.wrap("TOP").clear()    -- Clears the screen
48+
peripheral.wrap("top").clear()    -- Clears the screen
49-
peripheral.wrap("TOP").setCursorPos(1, 1) 
49+
peripheral.wrap("top").setCursorPos(1, 1) 
50-
peripheral.wrap("TOP").write("Closing in.. 5")
50+
peripheral.wrap("top").write("Closing in.. 5")
51
sleep(1)
52-
peripheral.wrap("TOP").clear()    -- Clears the screen
52+
peripheral.wrap("top").clear()    -- Clears the screen
53-
peripheral.wrap("TOP").setCursorPos(1, 1) 
53+
peripheral.wrap("top").setCursorPos(1, 1) 
54-
peripheral.wrap("TOP").write("Closing in.. 4")
54+
peripheral.wrap("top").write("Closing in.. 4")
55
sleep(1)
56-
peripheral.wrap("TOP").clear()    -- Clears the screen
56+
peripheral.wrap("top").clear()    -- Clears the screen
57-
peripheral.wrap("TOP").setCursorPos(1, 1) 
57+
peripheral.wrap("top").setCursorPos(1, 1) 
58-
peripheral.wrap("TOP").write("Closing in.. 3")
58+
peripheral.wrap("top").write("Closing in.. 3")
59
sleep(1)
60-
peripheral.wrap("TOP").clear()    -- Clears the screen
60+
peripheral.wrap("top").clear()    -- Clears the screen
61-
peripheral.wrap("TOP").setCursorPos(1, 1) 
61+
peripheral.wrap("top").setCursorPos(1, 1) 
62-
peripheral.wrap("TOP").write("Closing in.. 2")
62+
peripheral.wrap("top").write("Closing in.. 2")
63
sleep(1)
64-
peripheral.wrap("TOP").clear()    -- Clears the screen
64+
peripheral.wrap("top").clear()    -- Clears the screen
65-
peripheral.wrap("TOP").setCursorPos(1, 1) 
65+
peripheral.wrap("top").setCursorPos(1, 1) 
66-
peripheral.wrap("TOP").write("Closing in.. 1")
66+
peripheral.wrap("top").write("Closing in.. 1")
67-
peripheral.wrap("TOP").setCursorPos(1, 1) 
67+
peripheral.wrap("top").setCursorPos(1, 1) 
68
sleep(1)
69-
peripheral.wrap("TOP").write("Closed please wait.")
69+
peripheral.wrap("top").write("Closed please wait.")
70-
peripheral.wrap("TOP").setCursorPos(1, 1) 
70+
peripheral.wrap("top").setCursorPos(1, 1) 
71
sleep(1)
72-
peripheral.wrap("TOP").write("Closed please wait..")
72+
peripheral.wrap("top").write("Closed please wait..")
73-
peripheral.wrap("TOP").setCursorPos(1, 1) 
73+
peripheral.wrap("top").setCursorPos(1, 1) 
74
sleep(1)
75-
peripheral.wrap("TOP").write("Closed please wait...")
75+
peripheral.wrap("top").write("Closed please wait...")
76-
peripheral.wrap("TOP").setCursorPos(1, 1) 
76+
peripheral.wrap("top").setCursorPos(1, 1) 
77
78
else
79
print("Incorrect password")
80
sleep(2)
81
os.reboot()
82
end