Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ID
- id2 = 288
- id3 = 294
- id4 = 312
- id5 = 313
- id6 = 0
- id7 = 0
- id8 = 0
- -- BTS'y
- bts1 = 297
- bts2 = 0
- bts3 = 0
- bts4 = 0
- rednet.open("top")
- while true do
- event, id, txt, dis = os.pullEvent()
- if event == "rednet_message" then
- if id == bts1 then
- rednet.send(id2, txt)
- rednet.send(id3, txt)
- rednet.send(id4, txt)
- rednet.send(id5, txt)
- rednet.send(id6, txt)
- rednet.send(id7, txt)
- rednet.send(id8, txt)
- print(txt)
- rednet.send(bts2, txt)
- rednet.send(bts3, txt)
- rednet.send(bts4, txt)
- elseif id == bts2 then
- rednet.send(id2, txt)
- rednet.send(id3, txt)
- rednet.send(id4, txt)
- rednet.send(id5, txt)
- rednet.send(id6, txt)
- rednet.send(id7, txt)
- rednet.send(id8, txt)
- print(txt)
- rednet.send(bts1, txt)
- rednet.send(bts3, txt)
- rednet.send(bts4, txt)
- elseif id == bts3 then
- rednet.send(id2, txt)
- rednet.send(id3, txt)
- rednet.send(id4, txt)
- rednet.send(id5, txt)
- rednet.send(id6, txt)
- rednet.send(id7, txt)
- rednet.send(id8, txt)
- print(txt)
- rednet.send(bts2, txt)
- rednet.send(bts1, txt)
- rednet.send(bts4, txt)
- elseif id == bts4 then
- rednet.send(id2, txt)
- rednet.send(id3, txt)
- rednet.send(id4, txt)
- rednet.send(id5, txt)
- rednet.send(id6, txt)
- rednet.send(id7, txt)
- rednet.send(id8, txt)
- print(txt)
- rednet.send(bts2, txt)
- rednet.send(bts3, txt)
- rednet.send(bts1, txt)
- else
- rednet.send(id2, txt)
- rednet.send(id3, txt)
- rednet.send(id4, txt)
- rednet.send(id5, txt)
- rednet.send(id6, txt)
- rednet.send(id7, txt)
- rednet.send(id8, txt)
- print(txt)
- rednet.send(bts1, txt)
- rednet.send(bts2, txt)
- rednet.send(bts3, txt)
- rednet.send(bts4, txt)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement