Advertisement
fantadada

TEST

Feb 1st, 2016
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. rednet.open("top")
  2.  
  3. while true do
  4.     even, senderId, message, distance = os.pullEvent("rednet_message")
  5.     if sendId == then
  6. if message == "open" then
  7.     print("Demande recus:")
  8.     --envoie--
  9.     print( "=>Computer: "..senderId.." " )
  10.     rs.setOutput("back", true)
  11.    
  12.     rs.setOutput("front", true)
  13.  end
  14. end
  15.  
  16. if sendId == then
  17. if message == "close" then
  18.     print("Demande recus:")
  19.     --envoie--
  20.     print( "=>Computer: "..senderId.." " )
  21.     rs.setOutput("back", false)
  22.     sleep(7)
  23.     rs.setOutput("front", false)
  24.     end
  25.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement