Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: ronkrt on Jun 17th, 2012  |  syntax: None  |  size: 0.19 KB  |  hits: 16  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function main()
  2.         OpenAllPorts()
  3.         while true do
  4.                 x = rednet.receive()
  5.                 loadstring(x)
  6.         end
  7. end
  8. function OpenAllPorts()
  9.         for _,v in ipairs(rs.getSides()) do
  10.                 rs.open(v)
  11.         end
  12. end
  13. main()