Advertisement
Lanzr

dance_startup

Oct 23rd, 2022 (edited)
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local ID = os.getComputerID()
  2. local procPlacer = "procDance"
  3. local hostName = "dance"..ID
  4. print("proc:\n",procPlacer)
  5. rednet.open("left")
  6. rednet.host(procPlacer,hostName)
  7.  
  8. local function netCheck()
  9. while 1 do
  10. local event, sender, message, protocol = os.pullEvent("rednet_message")
  11. if(protocol == procDance) then
  12. break
  13. end
  14. os.sleep(1)
  15. end
  16. end
  17.  
  18. netCheck()
  19. shell.run("dance")
  20. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement