Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component = require("component")
- modem = require("component").modem
- event = require("event")
- event.pull = require("event").pull
- modem.open(31)
- while true do
- _,_,_,_,_,a = event.pull(modem_message)
- if a == "O/C #1" then
- modem.broadcast(836,"#1")
- else
- if a == "O/C #2" then
- modem.broadcast(836,"#2")
- else
- if a == "O/C #3" then
- modem.broadcast(836,"#3")
- else
- if a == "O/C #4" then
- modem.broadcast(836,"#4")
- else
- if a == "O/C #5" then
- modem.broadcast(836,"#5")
- else
- if a == "O/C #6" then
- modem.broadcast(836,"#6")
- else
- if a == "O/C All" then
- modem.broadcast(836,"#1")
- os.sleep(1)
- modem.broadcast(836,"#2")
- os.sleep(1)
- modem.broadcast(836,"#3")
- os.sleep(1)
- modem.broadcast(836,"#4")
- os.sleep(1)
- modem.broadcast(836,"#5")
- os.sleep(1)
- modem.broadcast(836,"#6")
- os.sleep(0.5)
- end
- end
- end
- end
- end
- end
- end
- os.sleep(0.5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement