Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- declare our channel from boss
- bosschannel = 10001 -- updates to boss on this
- clientchannel = 1001 -- command to clients on this
- local event,modemSide,senderChannel
- local replyChannel,msg,dist
- local modem = peripheral.wrap("right")
- modem.open(bosschannel)
- modem.open(clientchannel)
- while true do
- event,modemSide,senderChannel,replyChannel,msg,dist = os.pullEvent("modem_message")
- print("ev:" ..event.." side:" ..modemSide.." chan:" ..senderChannel.." rep@:"..replyChannel.." msg:"..msg.." d:"..dist)
- end
Advertisement
Add Comment
Please, Sign In to add comment