usmcsnipes

CC 3rd Crash

Jun 2nd, 2013
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. -- declare our channel from boss
  2. bosschannel = 10001 -- updates to boss on this
  3. clientchannel = 1001 -- command to clients on this
  4. local event,modemSide,senderChannel
  5. local replyChannel,msg,dist
  6. local modem = peripheral.wrap("right")
  7. modem.open(bosschannel)
  8. modem.open(clientchannel)
  9. while true do
  10. event,modemSide,senderChannel,replyChannel,msg,dist = os.pullEvent("modem_message")
  11. print("ev:" ..event.." side:" ..modemSide.." chan:" ..senderChannel.." rep@:"..replyChannel.." msg:"..msg.." d:"..dist)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment