Advertisement
pedrosgali

PedrOS TurtleCOM

Nov 22nd, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.51 KB | None | 0 0
  1. if wifiSide == nil then
  2.     click = draw.optionBox("Error", "Please attach a wireless modem.")
  3.     if click == "button1" then
  4.         return
  5.     end
  6. end
  7. rednet.open(wifiSide)
  8. os.loadAPI("OS/API/draw")
  9. draw.inputBox("Select turtle ID:")
  10. input = read()
  11. id = tonumber(input)
  12. draw.inputBox("Select program:")
  13. input = read()
  14. program = tostring(input)
  15. click = draw.optionBox("Confirm.", "Send "..program.." to Turtle "..id.."?", "Ok", "Cancel")
  16. if click == "button1" then
  17.     rednet.send(id, program)
  18. else
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement