Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local shell = require("shell")
- local args, options = shell.parse(...)
- local color = args[1]
- local comonent = require("component")
- local modem = comonent.modem
- if color then
- modem.broadcast(467,"component.proxy(component.list('drone')()).setLightColor(0x"..color..")")
- print("Установлено!")
- else
- print("Вы забыли ввести цвет!")
- print("color 000000 - установит черный цвет у дрона")
- print("Генератор цветов - https://colorscheme.ru/color-converter.html")
- end
Add Comment
Please, Sign In to add comment