Advertisement
systox

Recieve

Dec 17th, 2016
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. local time = 0.5
  2.  
  3. rednet.open("top")
  4.  
  5. while true do
  6. local scrap, message = rednet.receive()
  7.  
  8. if message == "TS Safe" then
  9. rs.setBundledOutput("right", colors.yellow)
  10. os.reboot()
  11.  
  12. elseif message == "TS Licht" then
  13. rs.setBundledOutput("right", colors.red)
  14. os.reboot()
  15.  
  16. elseif message == "TS Lock" then
  17. rs.setBundledOutput("right", colors.white)
  18. os.reboot()
  19.  
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement