Advertisement
superjaja05

tttttttt

Oct 15th, 2021
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. local d = component.proxy(component.list("drone")())
  2. local t = component.proxy(component.list("tunnel")())
  3. local l = component.proxy(component.list("leash")())
  4. local g = component.proxy(component.list("geolyzer")())
  5.  
  6. while true do
  7. local evt,_,sender,_,_,name,cmd,a,b,c,d,e,f,g = computer.pullSignal()
  8. if evt == "modem_message" then
  9. if cmd == "gst" then
  10. t.send(d.name(),"gst",d.getStatusText())
  11. print(d.name(),"gst",d.getStatusText())
  12. end
  13. if cmd == "sst" then
  14. t.send(d.name(),"sst",d.setStatusText(a))
  15. print(d.name(),"sst",d.setStatusText(a))
  16. end
  17. if cmd == "mov" then
  18. d.move(a,b,c)
  19. end
  20. if cmd == "gos" then
  21. t.send(d.name(),"gos",d.getOffset())
  22. print(d.name(),"gos",d.getOffset())
  23. end
  24. if cmd == "gve" then
  25. t.send(d.name(),"gv",d.getVelocity())
  26. print(d.name(),"gv",d.getVelocity())
  27. end
  28. if cmd == "gmv" then
  29. t.send(d.name(),"gmv",d.getMaxVelocity())
  30. print(d.name(),"gmv",d.getMaxVelocity())
  31. end
  32. if cmd == "gac" then
  33. t.send(d.name(),"ga",d.getAcceleration())
  34. print(d.name(),"ga",d.getAcceleration())
  35. end
  36. if cmd == "sac" then
  37. d.setAcceleration(a)
  38. end
  39. if cmd == "glc" then
  40. t.send(d.name(),"glc",d.getLightColor())
  41. print(d.name(),"glc",d.getLightColor())
  42. end
  43. if cmd == "slc" then
  44. d.setLightColor(a)
  45. end
  46. if cmd == "dct" then
  47. local b, s = d.detect(a)
  48. t.send(d.name(),"dct",b,s)
  49. print(d.name(),"dct",b,s)
  50. end
  51. if cmd == "cmp" then
  52. t.send(d.name(),"c",d.compare(a))
  53. print(d.name(),"c",d.compare(a))
  54. end
  55. if cmd == "lsh" then
  56. l.leash(a)
  57. end
  58. if cmd == "unlsh" then
  59. l.unleash()
  60. end
  61. if cmd == "scan" then
  62. t.send(g.scan(a,b,c,d,e,f,g))
  63. end
  64. end
  65. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement