Advertisement
CodeCrafter

Untitled

Mar 7th, 2013
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. local message, id = rednet.recieve(60)
  2. local send = rednet.broadcast()
  3.  
  4. keyCard = peripheral.wrap("top")
  5.  
  6. if disk.getLabel("top","ICTchip") then
  7. rs.setOutput("left",true)
  8. rednet.broadcast("IctOn")
  9. disk.eject("top")
  10. else
  11. sleep(3)
  12. os.reboot()
  13. end
  14.  
  15. end
  16.  
  17. if message == "IctOff" then
  18. rs.setOutput("left",false)
  19. rednet.broadcast("IctisOff")
  20. else
  21. sleep(3)
  22. end
  23.  
  24. sleep(3)
  25. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement