Guest User

Untitled

a guest
Oct 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1.  
  2. local passcheck = fs.exists(312)
  3. if passcheck == false then
  4. print("TiinLock Server Setup.")
  5. print("Please enter the password desired. Then, save and reboot the computer.")
  6. shell.run("rename","tiinlockserver","startup")
  7. shell.run("edit","312")
  8. print("Don't forget to set the client program as startup on all door computers!")
  9. local red = rednet.open
  10. red("left")
  11. red("right")
  12. red("top")
  13. red("back")
  14. red("bottom")
  15. red("front")
  16. print("Server receiving on all sides.")
  17. local scrap, msg = rednet.receive()
  18. local tiin = fs.open("312", "r")
  19. local tiinr = tiin.readAll()
  20. if msg == tiinr then
  21. rednet.broadcast("tiingood")
  22. os.reboot()
  23. else
  24. rednet.broadcast("x")
  25. os.reboot()
Add Comment
Please, Sign In to add comment