kakel_anders

UOS - Automated Reagentbuyer

Jan 30th, 2022 (edited)
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.67 KB | None | 0 0
  1. unsetalias 'packie'
  2. unsetalias 'shoprunes'
  3. unsetalias 'destination'
  4. unsetalias 'homebook'
  5. clearlist 'vendors'
  6. clearlist 'wares'
  7. clearlist 'shop'
  8. //////////////////
  9. // - Features - //
  10. //////////////////
  11. //1. Will autorecall and loop entire book desired amount of times.
  12. //2. Uses Vendoragent to purchase.
  13. //3. Loads any dropped regs/bottles/scrolls/arrows or bolts into beetle.
  14. //4. Overloads to beetle if character overweight.
  15. //5. Autorecalls to dropoff between each shop for offloading.
  16. //6. Pretty fast
  17. //7. Uses magery ONLY
  18. //////////////////////
  19. // - Instructions - //
  20. //////////////////////
  21. //1. Set up runebook for shops, script supports fletcher and mageshops atm.
  22. //2. Have a rune or runebook for home and a container in reach of it's destination.
  23. //3. Use a beetle, preferably bonded.
  24. //4. Shops in citys shown in the list "vendors" are supported currently.
  25. // Both trammel and fel! (Totals 15 runes in both mageshopbook and fletcherbook!)
  26. // Mark one rune per shop! Do not mix fletcher and mageshop!
  27. //5. Input serials to the aliases in setupsection below.
  28. //6. Don't put script in loop. Use repeat config below! (Line)
  29. //7. Start the script unmounted with beetle guarding at your offload destination!
  30. //8. Don't gather/purchase resources AFK.
  31. //9. Timings/Pauses in script are adapted to a char with FC/FCR 3/4.
  32. ////////////////////////////////////////////\
  33. /// -Manual Setup! -//////////////////////////\
  34. /// -Put in the correct serials! -/////////////\
  35. ////////////////////////////////////////////////\
  36. ////Beetle ID Below////
  37. setalias 'packie' 0x13c84f
  38. //
  39. ////Runebook for shops below////
  40. //// Shops that are supported by this script found in "vendor"-list below.
  41. //// Fel and trammel used, should total 15 runes for mageshops and 15 for fletchers.
  42. /////////////
  43. //Mageshops//
  44. setalias 'shoprunes' 0x412b3ca0
  45. //Fletchers//
  46. //setalias 'shoprunes' 0x45988b4b
  47. //
  48. ////Chest for offload in reach of homerune below////
  49. setalias 'destination' 0x43c67f4c
  50. //
  51. ////Runebook/rune for home below
  52. setalias 'homebook' 0x4359eb7f
  53. ///////////////////////////////////////
  54. /// -What items are we buying today?
  55. /// - Please consider the weight if buying regs + bottles + scrolls at same time..
  56. // buy + name of vendoragent below pleeeease!
  57. //buy 'Arrows'
  58. buy 'Regs'
  59. //buy 'Bottles'
  60. //buy 'Scrolls'
  61. //////////////////////////////////////
  62. // - How many times do you want to run the script? - ///
  63. for 4
  64. /////////////////////////////////////////////////
  65. /// - End of config! - /////////////////////////
  66. ///////////////////////////////////////////////
  67. /////////////////////////////////////////////
  68. ///////////////////////////////////////////
  69. /// (Runebook buttonnumbers)
  70. createlist 'shop'
  71. pushlist 'shop' 5
  72. pushlist 'shop' 11
  73. pushlist 'shop' 17
  74. pushlist 'shop' 23
  75. pushlist 'shop' 29
  76. pushlist 'shop' 35
  77. pushlist 'shop' 41
  78. pushlist 'shop' 47
  79. pushlist 'shop' 53
  80. pushlist 'shop' 59
  81. pushlist 'shop' 65
  82. pushlist 'shop' 71
  83. pushlist 'shop' 77
  84. pushlist 'shop' 83
  85. pushlist 'shop' 89
  86. ///
  87. createlist 'wares'
  88. pushlist 'wares' 0x1bfb // Bolts
  89. pushlist 'wares' 0xf3f // Arrows
  90. pushlist 'wares' 0xef3 // Blank Scroll
  91. pushlist 'wares' 0xf0e // Empty Bottle
  92. pushlist 'wares' 0xf8c // Sulfurous Ash
  93. pushlist 'wares' 0xf86 // Mandrake Root
  94. pushlist 'wares' 0xf84 // Garlic
  95. pushlist 'wares' 0xf8d // Spidersilk
  96. pushlist 'wares' 0xf88 // Nightshade
  97. pushlist 'wares' 0xf7b // Bloodmoss
  98. pushlist 'wares' 0xf85 // Ginseng
  99. pushlist 'wares' 0xf7a // Blackpearl
  100. pushlist 'wares' 0xf8a // Pigiron
  101. pushlist 'wares' 0xf78 // Batwing
  102. pushlist 'wares' 0xf8e // Nox Crystals
  103. pushlist 'wares' 0xf8f // Gravedust
  104. pushlist 'wares' 0xf7d // Daemon Blood
  105. ///
  106. createlist 'vendors'
  107. ///Mages and Alchemists
  108. //Britain
  109. pushlist 'vendors' 0x990e4 //Sandor
  110. pushlist 'vendors' 0x990e5 //Harrison
  111. pushlist 'vendors' 0x990e7 //Lynelle
  112. pushlist 'vendors' 0x990e6 //Hesper
  113. pushlist 'vendors' 0x99275 //Alano Trammel
  114. pushlist 'vendors' 0x99277 //Ethanethe Trammel
  115. pushlist 'vendors' 0x99278 //Noella Trammel
  116. pushlist 'vendors' 0x99276 //Pamela Trammel
  117. ///Britain East
  118. pushlist 'vendors' 0x96b33 //Grayson
  119. pushlist 'vendors' 0x96b34 //Rafferty
  120. pushlist 'vendors' 0x96b2b //Balia
  121. pushlist 'vendors' 0x96b2a //Raoul
  122. pushlist 'vendors' 0x96bab //Rani Trammel
  123. pushlist 'vendors' 0x96ba8 //Ben Trammel
  124. pushlist 'vendors' 0x96bac //Upton Trammel
  125. pushlist 'vendors' 0x96ba7 //Tama Trammel
  126. ///Moonglow
  127. pushlist 'vendors' 0x1f47f //Bert
  128. pushlist 'vendors' 0x1f480 //Jobey
  129. pushlist 'vendors' 0x1f4bc //Jobihna Trammel
  130. pushlist 'vendors' 0x1f4be //Bae Trammel
  131. ///Occlo (New haven, Trammel)
  132. pushlist 'vendors' 0x99b0a //Lydia
  133. pushlist 'vendors' 0x99b5a //Aricia
  134. pushlist 'vendors' 0x99b5b //Kesi
  135. pushlist 'vendors' 0x99b0b //Armen
  136. pushlist 'vendors' 0xa3143 //Micael Trammel
  137. pushlist 'vendors' 0xa3144 //Hope Trammel
  138. pushlist 'vendors' 0xa3145 //Herman Trammel
  139. ///Serpents Hold
  140. pushlist 'vendors' 0xbeecc //Allyn
  141. pushlist 'vendors' 0x1edf8 //Adam
  142. pushlist 'vendors' 0x4c7be //Narmada Trammel
  143. pushlist 'vendors' 0x4c807 //Paco Trammel
  144. ///Trinsic
  145. pushlist 'vendors' 0x1fc54 //Gerda
  146. pushlist 'vendors' 0x98d03 //Daya
  147. pushlist 'vendors' 0x47c51 //Olayinka Trammel
  148. pushlist 'vendors' 0x47c49 //Jonah Trammel
  149. ///Vesper
  150. pushlist 'vendors' 0x98860 //Audrey
  151. pushlist 'vendors' 0x1ee66 //Fairfax
  152. pushlist 'vendors' 0x1ee97 //Claudine
  153. pushlist 'vendors' 0xbf372 //Crosby
  154. pushlist 'vendors' 0x9968d //Erasma
  155. pushlist 'vendors' 0x1ee77 //Freya Trammel
  156. pushlist 'vendors' 0x988dd //Afton Trammel
  157. pushlist 'vendors' 0xbfde3 //Adlai Trammel
  158. pushlist 'vendors' 0x996d0 //Akela Trammel
  159. pushlist 'vendors' 0x1eeb5 //Bardo(lol) Trammel
  160. ///Luna
  161. pushlist 'vendors' 0xb030c //Miakoda
  162. pushlist 'vendors' 0xb0354 //Lucille
  163. pushlist 'vendors' 0xb0353 //Amina
  164. pushlist 'vendors' 0xb0356 //Seung
  165. pushlist 'vendors' 0xb0309 //Merrik
  166. pushlist 'vendors' 0xb02d1 //Ravi
  167. //
  168. //
  169. ///Bowyers
  170. //Britain
  171. pushlist 'vendors' 0x1c998e //Nailah Trammel
  172. pushlist 'vendors' 0x1c998f //Yerik Trammel
  173. pushlist 'vendors' 0x1c9985 //Balin
  174. pushlist 'vendors' 0x1c9984 //Herbert
  175. //Nujelm
  176. pushlist 'vendors' 0x20758 //Paxton Trammel
  177. pushlist 'vendors' 0x20757 //Miguel Trammel
  178. pushlist 'vendors' 0x20685 //Treasa
  179. pushlist 'vendors' 0x20682 //Denton
  180. //New haven
  181. pushlist 'vendors' 0xffb9b //Braxton Trammel
  182. //Serpents Hold
  183. pushlist 'vendors' 0x4c6dd //Maizah Trammel
  184. pushlist 'vendors' 0x20333 //Kineta
  185. //Skara Brae
  186. pushlist 'vendors' 0x20605 //Canute Trammel
  187. pushlist 'vendors' 0x20606 //Xaveria Trammel
  188. pushlist 'vendors' 0x2062d //Tanner
  189. pushlist 'vendors' 0x2062c //Nyrna
  190. //Vesper
  191. pushlist 'vendors' 0xc3eef //Theodore Trammel
  192. pushlist 'vendors' 0xc3ef2 //Naimah Trammel
  193. pushlist 'vendors' 0xc3ebf //Lotus (Super Thai kwen deu!)
  194. pushlist 'vendors' 0xc3ec0 //Averill
  195. //Yew
  196. pushlist 'vendors' 0x205a4 //Darien Trammel
  197. pushlist 'vendors' 0x20545 //Carter Trammel
  198. pushlist 'vendors' 0x20585 //Brody
  199. pushlist 'vendors' 0x20519 //Forrest
  200. ///
  201. for 0 to shop
  202. ///
  203. /////////////////
  204. //BUYING/////////
  205. /////////////////
  206. useobject 'packie'
  207. pause 2000
  208. useobject 'shoprunes'
  209. waitforgump 0x554b87f3 15000
  210. replygump 0x554b87f3 shop[]
  211. pause 2000
  212. for 0 to vendors
  213. if @inrange 'vendors[]' '10'
  214. waitforcontext 'vendors[]' 1 1500
  215. pause 500
  216. useobject 'self'
  217. pause 700
  218. for 0 to wares
  219. while @findtype 'wares[]' 'any' 'ground' 'any' '2'
  220. moveitem found 'packie'
  221. ignoreobject found
  222. pause 1000
  223. endwhile
  224. endfor
  225. endif
  226. endfor
  227. // If overweight, move wares to beetle
  228. while weight > 400
  229. clearignorelist
  230. for 0 to wares
  231. if @findtype 'wares[]' 'any' 'backpack'
  232. moveitem found 'packie'
  233. ignoreobject found
  234. pause 1000
  235. endif
  236. endfor
  237. endwhile
  238. // Make sure you are mounted before recalling (Incase unbonded)
  239. useobject 'packie'
  240. pause 2000
  241. /////////////////
  242. //OFFLOADING/////
  243. /////////////////
  244. clearignorelist
  245. cast 'recall'
  246. pause 2500
  247. target! 'homebook'
  248. pause 2500
  249. useobject 'self'
  250. pause 1000
  251. for 0 to wares
  252. while @findtype 'wares[]' 'any' 'packie'
  253. moveitem found 'destination'
  254. pause 1000
  255. endwhile
  256. while @findtype 'wares[]' 'any' 'backpack'
  257. moveitem found 'destination'
  258. pause 1000
  259. endwhile
  260. endfor
  261. endfor
  262. endfor
  263. clearbuy
  264. msg ' - Script complete boss! - '
  265.  
Add Comment
Please, Sign In to add comment