xXm0dzXx

Untitled

Jul 5th, 2012
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. function a()
  4. shell.run("shell")
  5. end
  6.  
  7. function b()
  8. while true do
  9. id, message = rednet.receive()
  10. events = { textutils.unserialize(message) }
  11. queueEvent(unpack(events))
  12. end
  13. end
  14.  
  15. parallel.waitForAny(a, b)
Advertisement
Add Comment
Please, Sign In to add comment