Advertisement
Guest User

startup

a guest
Apr 30th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. rednet.open("left")
  2. term.clear()
  3.  
  4.  
  5. function Var()
  6. OT=64
  7. end
  8.  
  9. function Check()
  10.  
  11. local scrap, message = rednet.receive()
  12.  
  13. if message == "DO" then
  14. OT=colors.orange
  15. term.setCursorPos(1,1)
  16. print("Doore geschlossen")
  17. Signal()
  18. end
  19.  
  20. if message == "DS" then
  21. OT=64
  22. term.setCursorPos(1,1)
  23. print("Doore geoefnet")
  24. Signal()
  25. end
  26.  
  27. if message == "" then
  28.  
  29. end
  30.  
  31. end
  32.  
  33. function Signal()
  34.  
  35. rs.setBundledOutput("bottom", OT)
  36.  
  37. Check()
  38. end
  39.  
  40.  
  41. Var()
  42. Check()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement