Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Anti CtrlT
- os.pullEvent=os.pullEventRaw
- --Variables
- passcheck=tonumber(469)
- --Modem Detection
- for a,b in pairs(rs.getSides()) do
- if peripheral.getType(b) == 'modem' then
- rednet.open(b)
- break
- end
- end
- --Main Program
- term.clear()
- term.setCursorPos(1,1)
- print("Magpie Security v2|")
- print("------------------'")
- write("Password: ")
- ui=read("*")
- rednet.send(passcheck, ui)
- id,msg=rednet.receive()
- if msg == "yes" then
- term.clear()
- term.setCursorPos(1,1)
- print("Magpie Security|")
- print("---------------'")
- else
- print("wrong")
- end
Advertisement
Add Comment
Please, Sign In to add comment