Advertisement
marko_rus

OC_light_board_blinker

Jan 5th, 2020
480
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.26 KB | None | 0 0
  1. --OC BLINKER by ponos software dev. ltd
  2. local comp = require("component")
  3. --Надо переделать это говно, ибо это пиздец
  4. local board1 = comp.proxy(comp.get("faa"))
  5. local board2 = comp.proxy(comp.get("82b"))
  6. local board3 = comp.proxy(comp.get("791"))
  7. local board4 = comp.proxy(comp.get("288"))
  8. local board5 = comp.proxy(comp.get("be4"))
  9. local board6 = comp.proxy(comp.get("7a6"))
  10. local board7 = comp.proxy(comp.get("347"))
  11. local board8 = comp.proxy(comp.get("261"))
  12. local board9 = comp.proxy(comp.get("663"))
  13. local board10 = comp.proxy(comp.get("8d1"))
  14. local board11 = comp.proxy(comp.get("b3a"))
  15. local board12 = comp.proxy(comp.get("118"))
  16. local colors = {0xFF0000, 0x00FF00, 0x0000FF, 0xFFFF00}
  17. local rcol2 = {0x00FF00, 0x00, 0x00FF00, 0x00}
  18. local rcol3 = {0x0000FF, 0x00, 0x0000FF, 0x00}
  19. local rcol4 = {0xFFFF00, 0x00, 0xFFFF00, 0x00}
  20. math.randomseed(os.time())
  21. --Пиздец...
  22. board1.setActive(1, true)
  23. board1.setActive(2, true)
  24. board1.setActive(3, true)
  25. board1.setActive(4, true)
  26.  
  27. board2.setActive(1, true)
  28. board2.setActive(2, true)
  29. board2.setActive(3, true)
  30. board2.setActive(4, true)
  31.  
  32. board3.setActive(1, true)
  33. board3.setActive(2, true)
  34. board3.setActive(3, true)
  35. board3.setActive(4, true)
  36.  
  37. board4.setActive(1, true)
  38. board4.setActive(2, true)
  39. board4.setActive(3, true)
  40. board4.setActive(4, true)
  41.  
  42. board5.setActive(1, true)
  43. board5.setActive(2, true)
  44. board5.setActive(3, true)
  45. board5.setActive(4, true)
  46.  
  47. board6.setActive(1, true)
  48. board6.setActive(2, true)
  49. board6.setActive(3, true)
  50. board6.setActive(4, true)
  51.  
  52. board7.setActive(1, true)
  53. board7.setActive(2, true)
  54. board7.setActive(3, true)
  55. board7.setActive(4, true)
  56.  
  57. board8.setActive(1, true)
  58. board8.setActive(2, true)
  59. board8.setActive(3, true)
  60. board8.setActive(4, true)
  61.  
  62. board9.setActive(1, true)
  63. board9.setActive(2, true)
  64. board9.setActive(3, true)
  65. board9.setActive(4, true)
  66.  
  67. board10.setActive(1, true)
  68. board10.setActive(2, true)
  69. board10.setActive(3, true)
  70. board10.setActive(4, true)
  71.  
  72. board11.setActive(1, true)
  73. board11.setActive(2, true)
  74. board11.setActive(3, true)
  75. board11.setActive(4, true)
  76.  
  77. board12.setActive(1, true)
  78. board12.setActive(2, true)
  79. board12.setActive(3, true)
  80. board12.setActive(4, true)
  81.  
  82. board1.setColor(1, 0xFF0000)
  83. board2.setColor(1, 0xFF0000)
  84. board3.setColor(1, 0xFF0000)
  85. board4.setColor(1, 0xFF0000)
  86. board5.setColor(1, 0xFF0000)
  87. board6.setColor(1, 0xFF0000)
  88. board7.setColor(1, 0xFF0000)
  89. board8.setColor(1, 0xFF0000)
  90. board9.setColor(1, 0xFF0000)
  91. board10.setColor(1, 0xFF0000)
  92. board11.setColor(1, 0xFF0000)
  93. board12.setColor(1, 0xFF0000)
  94.  
  95.  
  96.     while true do
  97. board1.setColor(2, rcol2[math.random(1, 4)])
  98. board1.setColor(3, rcol3[math.random(1, 4)])
  99. board1.setColor(4, rcol4[math.random(1, 4)])
  100.  
  101. board2.setColor(2, rcol2[math.random(1, 4)])
  102. board2.setColor(3, rcol3[math.random(1, 4)])
  103. board2.setColor(4, rcol4[math.random(1, 4)])
  104.  
  105. board3.setColor(2, rcol2[math.random(1, 4)])
  106. board3.setColor(3, rcol3[math.random(1, 4)])
  107. board3.setColor(4, rcol4[math.random(1, 4)])
  108.  
  109. board4.setColor(2, rcol2[math.random(1, 4)])
  110. board4.setColor(3, rcol3[math.random(1, 4)])
  111. board4.setColor(4, rcol4[math.random(1, 4)])
  112.  
  113. board5.setColor(2, rcol2[math.random(1, 4)])
  114. board5.setColor(3, rcol3[math.random(1, 4)])
  115. board5.setColor(4, rcol4[math.random(1, 4)])
  116.  
  117. board6.setColor(2, rcol2[math.random(1, 4)])
  118. board6.setColor(3, rcol3[math.random(1, 4)])
  119. board6.setColor(4, rcol4[math.random(1, 4)])
  120.  
  121. board7.setColor(2, rcol2[math.random(1, 4)])
  122. board7.setColor(3, rcol3[math.random(1, 4)])
  123. board7.setColor(4, rcol4[math.random(1, 4)])
  124.  
  125. board8.setColor(2, rcol2[math.random(1, 4)])
  126. board8.setColor(3, rcol3[math.random(1, 4)])
  127. board8.setColor(4, rcol4[math.random(1, 4)])
  128.  
  129. board9.setColor(2, rcol2[math.random(1, 4)])
  130. board9.setColor(3, rcol3[math.random(1, 4)])
  131. board9.setColor(4, rcol4[math.random(1, 4)])
  132.  
  133. board10.setColor(2, rcol2[math.random(1, 4)])
  134. board10.setColor(3, rcol3[math.random(1, 4)])
  135. board10.setColor(4, rcol4[math.random(1, 4)])
  136.  
  137. board11.setColor(2, rcol2[math.random(1, 4)])
  138. board11.setColor(3, rcol3[math.random(1, 4)])
  139. board11.setColor(4, rcol4[math.random(1, 4)])
  140.  
  141. board12.setColor(2, rcol2[math.random(1, 4)])
  142. board12.setColor(3, rcol3[math.random(1, 4)])
  143. board12.setColor(4, rcol4[math.random(1, 4)])
  144.  
  145.         os.sleep(0,85)
  146. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement