Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local passcheck = fs.exists(312)
- if passcheck == false then
- print("TiinLock Server Setup.")
- print("Please enter the password desired. Then, save and reboot the computer.")
- shell.run("rename","tiinlockserver","startup")
- shell.run("edit","312")
- print("Don't forget to set the client program as startup on all door computers!")
- local red = rednet.open
- red("left")
- red("right")
- red("top")
- red("back")
- red("bottom")
- red("front")
- print("Server receiving on all sides.")
- local scrap, msg = rednet.receive()
- local tiin = fs.open("312", "r")
- local tiinr = tiin.readAll()
- if msg == tiinr then
- rednet.broadcast("tiingood")
- os.reboot()
- else
- rednet.broadcast("x")
- os.reboot()
Add Comment
Please, Sign In to add comment