Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local channelProtocol = wBlazeSpawnerFarm1
- local msg
- for argIndex=1,#arg,1 do
- if(argIndex>1) then
- print("Incorrect number of args")
- print("Valid args are:")
- print("start")
- print("stop")
- else if argIndex==1 then
- if ((arg[1] == "start") or (arg[1] == "stop")) then
- msg = arg[1]
- rednet.open("back")
- rednet.broadcast(msg, channelProtocol)
- rednet.close()
- else
- print("wrong argument, please use \"start\" or \"stop\"")
- end
- else
- print("something went wrong, exiting")
- end
- end
- end
Add Comment
Please, Sign In to add comment