Advertisement
Guest User

Untitled

a guest
Apr 28th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local k_launcher_channel= 8723
  2. local k_swarm_channel= 6345
  3.  
  4. local wifi= peripheral.wrap("back")
  5.  
  6. while true do
  7. term.clear()
  8. term.setCursorPos(1, 1)
  9.  
  10. print("Command (launch X, forward X, back X, left X, right X, wall X Y):")
  11.  
  12. local input= string.lower(read())
  13.  
  14. local command= string.find("[^%s]+")
  15.  
  16. if command == "launch" then
  17. wifi.transmit(k_launcher_channel, k_launcher_channel, input)
  18. else
  19. wifi.transmit(k_swarm_channel, k_swarm_channel, input)
  20. end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement