MineOS/Applications/Robot/untitled.lua
Igor Timofeev 4783fa5f8a Revert "afaef"
This reverts commit 5f12afa6fd07c7092577068f7439e0e5e8bbabad.
2016-11-14 17:49:00 +03:00

17 lines
426 B
Lua

_G.modem = component.proxy(component.list("modem")())
_G.inventory_controller = component.proxy(component.list("modem")())
_G.drone = component.proxy(component.list("drone")())
_G.port = 512
modem.open(port)
while true do
local e = {computer.pullSignal()}
if e[1] == "modem_message" then
if e[6] == "executeScript" then
modem.send(e[2], port, "executionResult", xpcall(load(e[7]), debug.traceback()))
end
end
end