Advertisement
Bjornir90

antenne.lua

Nov 11th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. rednet.open("right")
  2. shell.run"id"
  3. exit = 0
  4.  
  5. while exit == 0  do
  6.  id, msg = rednet.receive()
  7.  
  8.  if msg == "p" then
  9.   id, msg1 = rednet.receive()
  10.   id, msg2 = rednet.receive()
  11.   shell.run(msg1, msg2)
  12.  
  13.   elseif msg == "f" then
  14.   id, msg1 = rednet.receive()
  15.   loadstring(msg1) ()
  16.  
  17.   elseif msg == "exit" then
  18.  shell.run("clear")
  19.   rednet.close("right")
  20.   return
  21.  
  22.  end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement