View difference between Paste ID: cJejUuP4 and r7CjHNLE
SHOW: | | - or go back to the newest paste.
1
--Anti CtrlT
2
os.pullEvent=os.pullEventRaw
3
4
--Variables
5-
--START
5+
6-
rednet.open("bottom")
6+
7
--Modem Detection
8
for a,b in pairs(rs.getSides()) do
9
  if peripheral.getType(b) == 'modem' then
10
   rednet.open(b)
11
   break
12-
write("password: ")
12+
  end
13
end
14
15
--Main Program
16
term.clear()
17
term.setCursorPos(1,1)
18
print("Magpie Security v2|")
19
print("------------------'")
20
write("Password: ")
21
ui=read("*")
22
rednet.send(passcheck, ui)
23
id,msg=rednet.receive()
24
if msg == "yes" then
25
  term.clear()
26
  term.setCursorPos(1,1)
27
  print("Magpie Security|")
28
  print("---------------'")
29
else
30
  print("wrong")
31
end