Advertisement
MisterErwin

Wireless-repeater

Jun 23rd, 2013
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rednet.open("right")
  2.  
  3. while true do
  4.   type, id, a = os.pullEvent("rednet_message")
  5.   t = a
  6.   x,y = string.find(t, ":")
  7.   if x == nil then
  8.      t = a .. ":" .. id
  9.   end
  10.   print (t)
  11.   rednet.broadcast(t)
  12.   sleep(2)
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement