Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. rednet.open("top")
  2. local side = "back"
  3. local password = "fgt"
  4. local opentime = 5
  5. while true do
  6. x,y,z = rednet.receive()
  7.  
  8. if y == "o3" then
  9. sleep(8)
  10. rs.setOutput(side,true)
  11. rednet.send(24,"o2")
  12. rednet.send(23,"u1")
  13. sleep(opentime)
  14. rs.setOutput(side,false)
  15. end
  16. if y == "o4" then
  17. sleep(2.5)
  18. rs.setOutput(side,true)
  19. rednet.send(24,"o2")
  20. rednet.send(23,"u1")
  21. sleep(opentime)
  22. rs.setOutput(side,false)
  23. end
  24.  
  25. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement