Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ID = os.getComputerID()
- local procPlacer = "procDance"
- local hostName = "dance"..ID
- print("proc:\n",procPlacer)
- rednet.open("left")
- rednet.host(procPlacer,hostName)
- local function netCheck()
- while 1 do
- local event, sender, message, protocol = os.pullEvent("rednet_message")
- if(protocol == procDance) then
- break
- end
- os.sleep(1)
- end
- end
- netCheck()
- shell.run("dance")
- os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement