Advertisement
ferel

Untitled

May 30th, 2016
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.97 KB | None | 0 0
  1. component = require("component")
  2. modem = require("component").modem
  3. event = require("event")
  4. event.pull = require("event").pull
  5.  
  6. modem.open(31)
  7. while true do
  8. _,_,_,_,_,a = event.pull(modem_message)
  9. if a == "O/C #1" then
  10. modem.broadcast(836,"#1")
  11. else
  12.  if a == "O/C #2" then
  13.  modem.broadcast(836,"#2")
  14.  else
  15.   if a == "O/C #3" then
  16.   modem.broadcast(836,"#3")
  17.   else
  18.    if a == "O/C #4" then
  19.    modem.broadcast(836,"#4")
  20.    else
  21.     if a == "O/C #5" then
  22.     modem.broadcast(836,"#5")
  23.     else
  24.      if a == "O/C #6" then
  25.      modem.broadcast(836,"#6")
  26.      else
  27.       if a == "O/C All" then
  28.       modem.broadcast(836,"#1")
  29.       os.sleep(1)
  30.       modem.broadcast(836,"#2")
  31.       os.sleep(1)
  32.       modem.broadcast(836,"#3")
  33.       os.sleep(1)
  34.       modem.broadcast(836,"#4")
  35.       os.sleep(1)
  36.       modem.broadcast(836,"#5")
  37.       os.sleep(1)
  38.       modem.broadcast(836,"#6")
  39.       os.sleep(0.5)
  40.       end
  41.      end
  42.     end
  43.    end
  44.   end
  45.  end
  46. end
  47. os.sleep(0.5)
  48. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement