Advertisement
Pahzon

Untitled

Nov 16th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.02 KB | None | 0 0
  1. loop{
  2. fput "Ask mags for task"
  3. while line = get
  4. if line =~ /I need (\w*) rocks\.|I need (\w*) rocks/
  5. amount = $1
  6. fput "accept task"
  7. pause; waitrt?
  8. Script.run("multi", "#{amount},forage rock,stow r")
  9. wait_while { running?("multi")}
  10. pause; waitrt?
  11. Script.run("multi", "#{amount},get rock from my backpack,give mags")
  12. wait_while { running?("multi")}
  13. pause; waitrt?
  14. break
  15. end
  16.  
  17. if line =~ /I need (\w*) rusty nails\.|I need (\w*) rusty nails/
  18. amount = $1
  19. fput "accept task"
  20. pause; waitrt?
  21. Script.run("multi", "#{amount},forage rusty nail,stow r")
  22. wait_while { running?("multi")}
  23. pause; waitrt?
  24. Script.run("multi", "#{amount},get nail from my backpack,give mags")
  25. wait_while { running?("multi")}
  26. pause; waitrt?
  27. break
  28. end
  29.  
  30. if line =~ /I need (\w*) grasses\.|I need (\w*) grasses/
  31. amount = $1
  32. fput "accept task"
  33. pause; waitrt?
  34. Script.run("multi", "#{amount},forage grass,stow r")
  35. wait_while { running?("multi")}
  36. pause; waitrt?
  37. Script.run("multi", "#{amount},get grass from my backpack,give mags")
  38. wait_while { running?("multi")}
  39. pause; waitrt?
  40. break
  41. end
  42.  
  43. if line =~ /I need (\w*) bits of dirt\.|I need (\w*) bits of dirt/
  44. amount = $1
  45. fput "accept task"
  46. pause; waitrt?
  47. Script.run("multi", "#{amount},forage dirt,stow r")
  48. wait_while { running?("multi")}
  49. pause; waitrt?
  50. Script.run("multi", "#{amount},get dirt from my backpack,give mags")
  51. wait_while { running?("multi")}
  52. pause; waitrt?
  53. break
  54. end
  55.  
  56. if line =~ /I need (\w*) stems\.|I need (\w*) stems/
  57. amount = $1
  58. fput "accept task"
  59. pause; waitrt?
  60. Script.run("multi", "#{amount},forage stem,stow r")
  61. wait_while { running?("multi")}
  62. pause; waitrt?
  63. Script.run("multi", "#{amount},get stem from my backpack,give mags")
  64. wait_while { running?("multi")}
  65. pause; waitrt?
  66. break
  67. end
  68.  
  69. if line =~ /I need (\w*) sticks, branches or limbs\.|I need (\w*) sticks, branches or limbs|I need (\w*) sticks\.|I need (\w*) sticks/
  70. amount = $1
  71. fput "accept task"
  72. pause; waitrt?
  73. Script.run("go2", "992")
  74. wait_while { running?("go2")}
  75. pause; waitrt?
  76. Script.run("multi", "#{amount},forage stick,stow r")
  77. wait_while { running?("multi")}
  78. pause; waitrt?
  79. Script.run("go2", "954")
  80. wait_while { running?("go2")}
  81. pause; waitrt?
  82. Script.run("multi", "#{amount},get stick from my backpack,give mags")
  83. wait_while { running?("multi")}
  84. pause; waitrt?
  85. break
  86. end
  87.  
  88. if line =~ /I need (\w*) pieces of wild corn\.|I need (\w*) pieces of wild corn/
  89. amount = $1
  90. fput "accept task"
  91. pause; waitrt?
  92. Script.run("go2", "996")
  93. wait_while { running?("go2")}
  94. pause; waitrt?
  95. Script.run("multi", "#{amount},forage corn,stow r")
  96. wait_while { running?("multi")}
  97. pause; waitrt?
  98. Script.run("go2", "954")
  99. wait_while { running?("go2")}
  100. pause; waitrt?
  101. Script.run("multi", "#{amount},get corn from my backpack,give mags")
  102. wait_while { running?("multi")}
  103. pause; waitrt?
  104. break
  105. end
  106.  
  107. if line =~ /I need (\w*) shoe tacks\.|I need (\w*) shoe tacks/
  108. amount = $1
  109. fput "accept task"
  110. pause; waitrt?
  111. Script.run("go2", "tack")
  112. wait_while { running?("go2")}
  113. pause; waitrt?
  114. Script.run("multi", "#{amount},forage shoe tack,stow r")
  115. wait_while { running?("multi")}
  116. pause; waitrt?
  117. Script.run("go2", "954")
  118. wait_while { running?("go2")}
  119. pause; waitrt?
  120. Script.run("multi", "#{amount},get tack from my backpack,give mags")
  121. wait_while { running?("multi")}
  122. pause; waitrt?
  123. break
  124. end
  125.  
  126. if line =~ /I need (\w*) branches\.|I need (\w*) branches/
  127. amount = $1
  128. fput "accept task"
  129. pause; waitrt?
  130. Script.run("go2", "992")
  131. wait_while { running?("go2")}
  132. pause; waitrt?
  133. Script.run("multi", "#{amount},forage branch,stow r")
  134. wait_while { running?("multi")}
  135. pause; waitrt?
  136. Script.run("go2", "954")
  137. wait_while { running?("go2")}
  138. pause; waitrt?
  139. Script.run("multi", "#{amount},get branch from my backpack,give mags")
  140. wait_while { running?("multi")}
  141. pause; waitrt?
  142. break
  143. end
  144.  
  145. if line =~ /I need (\w*) leaves\.|I need (\w*) leaves/
  146. amount = $1
  147. fput "accept task"
  148. pause; waitrt?
  149. Script.run("go2", "992")
  150. wait_while { running?("go2")}
  151. pause; waitrt?
  152. Script.run("multi", "#{amount},forage leaf,stow r")
  153. wait_while { running?("multi")}
  154. pause; waitrt?
  155. Script.run("go2", "954")
  156. wait_while { running?("go2")}
  157. Script.run("multi", "#{amount},get leaf from my backpack,give mags")
  158. wait_while { running?("multi")}
  159. pause; waitrt?
  160. break
  161. end
  162.  
  163. if line =~ /I need (\w*) limbs\.|I need (\w*) limbs/
  164. amount = $1
  165. fput "accept task"
  166. pause; waitrt?
  167. Script.run("go2", "992")
  168. wait_while { running?("go2")}
  169. pause; waitrt?
  170. Script.run("multi", "#{amount},forage limb,stow r")
  171. wait_while { running?("multi")}
  172. pause; waitrt?
  173. Script.run("go2", "954")
  174. wait_while { running?("go2")}
  175. Script.run("multi", "#{amount},get limb from my backpack,give mags")
  176. wait_while { running?("multi")}
  177. pause; waitrt?
  178. break
  179. end
  180.  
  181. if line =~ /I need (\w*) roots\.|I need (\w*) roots/
  182. amount = $1
  183. fput "accept task"
  184. pause; waitrt?
  185. Script.run("go2", "992")
  186. wait_while { running?("go2")}
  187. pause; waitrt?
  188. Script.run("multi", "#{amount},forage root,stow r")
  189. wait_while { running?("multi")}
  190. pause; waitrt?
  191. Script.run("go2", "954")
  192. wait_while { running?("go2")}
  193. pause; waitrt?
  194. Script.run("multi", "#{amount},get root from my backpack,give mags")
  195. wait_while { running?("multi")}
  196. pause; waitrt?
  197. break
  198. end
  199.  
  200. if line =~ /I need (\w*) bits of sap\.|I need (\w*) bits of sap./
  201. amount = $1
  202. fput "accept task"
  203. pause; waitrt?
  204. Script.run("go2", "992")
  205. wait_while { running?("go2")}
  206. pause; waitrt?
  207. Script.run("multi", "#{amount},forage sap,stow r")
  208. wait_while { running?("multi")}
  209. pause; waitrt?
  210. Script.run("go2", "954")
  211. wait_while { running?("go2")}
  212. pause; waitrt?
  213. Script.run("multi", "#{amount},get sap from my backpack,give mags")
  214. wait_while { running?("multi")}
  215. pause; waitrt?
  216. break
  217. end
  218.  
  219. if line =~ /I need (\w*) vines\.|I need (\w*) vines/
  220. amount = $1
  221. fput "accept task"
  222. pause; waitrt?
  223. Script.run("go2", "992")
  224. wait_while { running?("go2")}
  225. pause; waitrt?
  226. Script.run("multi", "#{amount},forage vine,stow r")
  227. wait_while { running?("multi")}
  228. pause; waitrt?
  229. Script.run("go2", "954")
  230. wait_while { running?("go2")}
  231. pause; waitrt?
  232. Script.run("multi", "#{amount},get vine from my backpack,give mags")
  233. wait_while { running?("multi")}
  234. pause; waitrt?
  235. break
  236. end
  237.  
  238. if line =~ /I need (\w*) georin grasses\.|I need (\w*) georin grasses/
  239. amount = $1
  240. fput "accept task"
  241. pause; waitrt?
  242. Script.run("go2", "992")
  243. wait_while { running?("go2")}
  244. pause; waitrt?
  245. Script.run("multi", "#{amount},forage georin grass,stow r")
  246. wait_while { running?("multi")}
  247. pause; waitrt?
  248. Script.run("go2", "954")
  249. wait_while { running?("go2")}
  250. pause; waitrt?
  251. Script.run("multi", "#{amount},get georin grass from my backpack,give mags")
  252. wait_while { running?("multi")}
  253. pause; waitrt?
  254. break
  255. end
  256.  
  257. if line =~ /I need (\w*) acorns\.|I need (\w*) acorns/
  258. fput "decline task"
  259. pause; waitrt?
  260. break
  261. end
  262.  
  263. if line =~ /I need (\w*) logs\.|I need (\w*) logs/
  264. fput "decline task"
  265. pause; waitrt?
  266. break
  267. end
  268.  
  269. if line =~ /I need (\w*) berries\.|I need (\w*) berries/
  270. fput "decline task"
  271. pause; waitrt?
  272. break
  273. end
  274.  
  275. if line =~ /I need (\w*) weeds\.|I need (\w*) weeds/
  276. fput "decline task"
  277. pause; waitrt?
  278. break
  279. end
  280.  
  281. if line =~ /I need (\w*) strawberries\.|I need (\w*) strawberries/
  282. fput "decline task"
  283. pause; waitrt?
  284. break
  285. end
  286.  
  287. if line =~ /I am sorry, you must wait before I can give you a task\./
  288. fput "decline task"
  289. pause; waitrt?
  290. break
  291. end
  292. end
  293. pause; waitrt?
  294. Script.run("mech-lore")
  295. wait_while { running?("mech-lore")}
  296. #pause; waitrt?
  297. #Script.run("buff")
  298. #wait_while { running?("buff")}
  299. #fput "perc mana"
  300. #pause; waitrt?
  301. #fput "perc moon"
  302. #pause 31
  303. pause; waitrt?
  304. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement