Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. as an example here is the table and the function I use
  2. direction_list = {
  3. "southwest",
  4. "west",
  5. "east",
  6. "in",
  7. "out",
  8. "down",
  9. "west",
  10. "out",
  11. "west",
  12. "south",
  13. "southwest",
  14. "west",
  15. "southeast",
  16. "south",
  17. "north",
  18. "east",
  19. "southeast",
  20. "west",
  21. "south",
  22. "west",
  23. "south",
  24. "north",
  25. "southeast",
  26. "northeast",
  27. "southeast",
  28. "southwest",
  29. "south",
  30. "southeast",
  31. "west",
  32. "south",
  33. "east",
  34. "in",
  35. "out",
  36. "west",
  37. "north",
  38. "swim northwest",
  39. "swim southwest",
  40. "swim east",
  41. "swim up",
  42. "west",
  43. "east",
  44. "swim down",
  45. "swim west",
  46. "swim northeast",
  47. "swim west",
  48. "swim up",
  49. "swim down",
  50. "swim east",
  51. "swim north",
  52. "swim northwest",
  53. "swim up",
  54. "swim down",
  55. "swim north",
  56. "swim west",
  57. "swim up",
  58. "south",
  59. "northwest",
  60. "northeast",
  61. "swim down",
  62. "swim east",
  63. "swim northeast",
  64. "swim northwest",
  65. "swim east",
  66. "swim northwest",
  67. "swim up",
  68. "swim down",
  69. "swim north",
  70. "swim northwest",
  71. "swim up",
  72. "swim down",
  73. "swim southeast",
  74. "swim east",
  75. "swim southeast",
  76. "northeast",
  77. "east",
  78. "northeast",
  79. "northwest",
  80. "northwest",
  81. "west",
  82. "southwest",
  83. "southeast",
  84. "up",
  85. "down",
  86. "northwest",
  87. "northeast",
  88. "northwest",
  89. "west",
  90. "northwest",
  91. "southeast",
  92. "east",
  93. "northeast",
  94. "east",
  95. "south",
  96. "northeast",
  97. "south",
  98. "southeast",
  99. "north",
  100. "in",
  101. "out",
  102. "north",
  103. "west",
  104. "southwest",
  105. "northeast",
  106. "northeast",
  107. "up",
  108. "northwest",
  109. "southeast",
  110. "northeast",
  111. "north",
  112. "east",
  113. "swim down",
  114. "swim west",
  115. "swim south",
  116. "swim west",
  117. "swim southwest",
  118. "swim southeast",
  119. "swim southwest",
  120. "swim northeast",
  121. "swim southeast",
  122. "se",
  123. "d",
  124. "sw",
  125. "sw",
  126. "sw",
  127. "n",
  128. "ne",
  129. "nw",
  130. "Se",
  131. "sw",
  132. "w",
  133. "sw",
  134. "w",
  135. "nw",
  136. "se",
  137. "e",
  138. "se",
  139. "e",
  140. "se",
  141. "se"
  142. }
  143.  
  144.  
  145. function goDirection()
  146. if trueBalance() then -- function I defined my balance
  147. send(direction_list[1])
  148. table.remove(direction_list, 1)
  149. end
  150. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement