Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.65 KB | None | 0 0
  1. //PotionList
  2. @removelist 'PotionList'
  3. if not listexists 'PotionList'
  4. @createlist 'PotionList'
  5. @pushlist 'PotionList' 1 // Change this number ^ to:
  6. //1 = GRefresh
  7. //2 = GAgility
  8. //3 = NightSight
  9. //4 = GHeal
  10. //5 = GStrength
  11. //6 = Poison
  12. //7 = GPoison
  13. //8 = DPoison
  14. //9 = GCure
  15. //10 = GExplosion
  16. endif
  17. //Unset Potion Warning
  18. if @inlist 'PotionList' 0
  19. headmsg 'You have not set the potion yet!' 23
  20. headmsg 'Please look at the top of the script for settings' 23
  21. headmsg 'Stopping' 23
  22. stop
  23. endif
  24. //--------------------------------------------------------------//
  25. //Alias Selection
  26. //--------------------------------------------------------------//
  27. setalias 'supplieschest' 0x400dce6e
  28. //Open supplies chest
  29. @useobject supplieschest
  30. pause 1000
  31. while not @findobject butler
  32. headmsg "Select the butler..."
  33. promptalias butler
  34. endwhile
  35. //--------------------------------------------------------------//
  36. //PotionTypeList
  37. //--------------------------------------------------------------//
  38. //Potion Type List, this is where the magic happens. Mod the 4 settings down below for each potion. All are mostly default except Nightsight.
  39. @removelist 'PotionType'
  40. if not listexists 'PotionType'
  41. @createlist 'PotionType'
  42. //1GRefresh
  43. if @inlist 'PotionList' 1
  44. headmsg 'Setting Potion..' 75
  45. @pushlist 'PotionType' 0xf0b //0PotionGraphicID
  46. @pushlist 'PotionType' 'Greater Refreshment' //1PotionName
  47. @pushlist 'PotionType' 0xf7a //2RegGraphicID
  48. @pushlist 'PotionType' 'Black Pearl' //3RegName
  49. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  50. @pushlist 'PotionType' 700 //5RegAmountPreCraft
  51. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  52. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  53. @pushlist 'PotionType' 1 //8FirstTierGumpMenu
  54. @pushlist 'PotionType' 9 //9SecondTierGumpMenu
  55. headmsg 'Potion Set to..' 75
  56. headmsg PotionType[1] 75
  57. endif
  58. //
  59. //2GAgility
  60. if @inlist 'PotionList' 2
  61. headmsg 'Setting Potion..' 75
  62. @pushlist 'PotionType' 0xf08 //0PotionGraphicID
  63. @pushlist 'PotionType' 'Greater Agility' //1PotionName
  64. @pushlist 'PotionType' 0xf7b //2RegGraphicID
  65. @pushlist 'PotionType' 'Blood Moss' //3RegName
  66. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  67. @pushlist 'PotionType' 1500 //5RegAmount
  68. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  69. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  70. @pushlist 'PotionType' 8 //8FirstTierGumpMenu
  71. @pushlist 'PotionType' 9 //9SecondTierGumpMenu
  72. headmsg 'Potion Set to..' 75
  73. headmsg PotionType[1] 75
  74. endif
  75. //
  76. //3NightSight
  77. if @inlist 'PotionList' 3
  78. headmsg 'Setting Potion..' 75
  79. @pushlist 'PotionType' 0xf06 //0PotionGraphicID
  80. @pushlist 'PotionType' 'Nightsight' //1PotionName
  81. @pushlist 'PotionType' 0xf8d //2RegGraphicID
  82. @pushlist 'PotionType' 'Spider Silk' //3RegName
  83. @pushlist 'PotionType' 0 //4RegAmountThreshholdPreCraft
  84. @pushlist 'PotionType' 100 //5RegAmount
  85. @pushlist 'PotionType' 0 //6RegRestockThreshholdDuringCraft
  86. @pushlist 'PotionType' 0 //7RegRestockAmountDuringCraft
  87. @pushlist 'PotionType' 15 //8FirstTierGumpMenu
  88. @pushlist 'PotionType' 2 //9SecondTierGumpMenu
  89. headmsg 'Potion Set to..' 75
  90. headmsg PotionType[1] 75
  91. endif
  92. //
  93. //4GHeal
  94. if @inlist 'PotionList' 4
  95. headmsg 'Setting Potion..' 75
  96. @pushlist 'PotionType' 0xf0c //0PotionGraphicID
  97. @pushlist 'PotionType' 'Greater Heal' //1PotionName
  98. @pushlist 'PotionType' 0xf85 //2RegGraphicID
  99. @pushlist 'PotionType' 'Ginseng' //3RegName
  100. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  101. @pushlist 'PotionType' 1500 //5RegAmount
  102. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  103. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  104. @pushlist 'PotionType' 22 //8FirstTierGumpMenu
  105. @pushlist 'PotionType' 16 //9SecondTierGumpMenu
  106. headmsg 'Potion Set to..' 75
  107. headmsg PotionType[1] 75
  108. endif
  109. //
  110. //5GStrength
  111. if @inlist 'PotionList' 5
  112. headmsg 'Setting Potion..' 75
  113. @pushlist 'PotionType' 0xf09 //0PotionGraphicID
  114. @pushlist 'PotionType' 'Greater Strength' //1PotionName
  115. @pushlist 'PotionType' 0xf86 //2RegGraphicID
  116. @pushlist 'PotionType' 'Mandrake Root' //3RegName
  117. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  118. @pushlist 'PotionType' 1500 //5RegAmountPreCraft
  119. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  120. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  121. @pushlist 'PotionType' 29 //8FirstTierGumpMenu
  122. @pushlist 'PotionType' 9 //9SecondTierGumpMenu
  123. headmsg 'Potion Set to..' 75
  124. headmsg PotionType[1] 75
  125. endif
  126. //
  127. //6Poison
  128. if @inlist 'PotionList' 6
  129. headmsg 'Setting Potion..' 75
  130. @pushlist 'PotionType' 0xf0a //0PotionGraphicID
  131. @pushlist 'PotionType' 'Poison' //1PotionName
  132. @pushlist 'PotionType' 0xf88 //2RegGraphicID
  133. @pushlist 'PotionType' 'Nightshade' //3RegName
  134. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  135. @pushlist 'PotionType' 1500 //5RegAmountPreCraft
  136. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  137. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  138. @pushlist 'PotionType' 36 //8FirstTierGumpMenu
  139. @pushlist 'PotionType' 9 //9SecondTierGumpMenu
  140. headmsg 'Potion Set to..' 75
  141. headmsg PotionType[1] 75
  142. endif
  143. //
  144. //7GPoison
  145. if @inlist 'PotionList' 7
  146. headmsg 'Setting Potion..' 75
  147. @pushlist 'PotionType' 0xf0a //0PotionGraphicID
  148. @pushlist 'PotionType' 'Greater Poison' //1PotionName
  149. @pushlist 'PotionType' 0xf88 //2RegGraphicID
  150. @pushlist 'PotionType' 'Nightshade' //3RegName
  151. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  152. @pushlist 'PotionType' 1500 //5RegAmountPreCraft
  153. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  154. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  155. @pushlist 'PotionType' 36 //8FirstTierGumpMenu
  156. @pushlist 'PotionType' 16 //9SecondTierGumpMenu
  157. headmsg 'Potion Set to..' 75
  158. headmsg PotionType[1] 75
  159. endif
  160. //
  161. //8DeadlyPoison
  162. if @inlist 'PotionList' 8
  163. headmsg 'Setting Potion..' 75
  164. @pushlist 'PotionType' 0xf0a //0PotionGraphicID
  165. @pushlist 'PotionType' 'Deadly Poison' //1PotionName
  166. @pushlist 'PotionType' 0xf88 //2RegGraphicID
  167. @pushlist 'PotionType' 'Nightshade' //3RegName
  168. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  169. @pushlist 'PotionType' 1500 //5RegAmountPreCraft
  170. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  171. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  172. @pushlist 'PotionType' 36 //8FirstTierGumpMenu
  173. @pushlist 'PotionType' 23 //9SecondTierGumpMenu
  174. headmsg 'Potion Set to..' 75
  175. headmsg PotionType[1] 75
  176. endif
  177. //
  178. //9GCure
  179. if @inlist 'PotionList' 9
  180. headmsg 'Setting Potion..' 75
  181. @pushlist 'PotionType' 0xf07 //0PotionGraphicID
  182. @pushlist 'PotionType' 'Greater Cure' //1PotionName
  183. @pushlist 'PotionType' 0xf84 //2RegGraphicID
  184. @pushlist 'PotionType' 'Garlic' //3RegName
  185. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  186. @pushlist 'PotionType' 1500 //5RegAmount
  187. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  188. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  189. @pushlist 'PotionType' 43 //8FirstTierGumpMenu
  190. @pushlist 'PotionType' 16 //9SecondTierGumpMenu
  191. headmsg 'Potion Set to..' 75
  192. headmsg PotionType[1] 75
  193. endif
  194. //
  195. //10Gexplosion
  196. if @inlist 'PotionList' 10
  197. headmsg 'Setting Potion..' 75
  198. @pushlist 'PotionType' 0xf0d //0PotionGraphicID
  199. @pushlist 'PotionType' 'Greater Explosion' //1PotionName
  200. @pushlist 'PotionType' 0xf8c //2RegGraphicID
  201. @pushlist 'PotionType' 'Sulferous Ash' //3RegName
  202. @pushlist 'PotionType' 1200 //4RegAmountThreshholdPreCraft
  203. @pushlist 'PotionType' 1500 //5RegAmount
  204. @pushlist 'PotionType' 20 //6RegRestockThreshholdDuringCraft
  205. @pushlist 'PotionType' 300 //7RegRestockAmountDuringCraft
  206. @pushlist 'PotionType' 50 //8FirstTierGumpMenu
  207. @pushlist 'PotionType' 16 //9SecondTierGumpMenu
  208. headmsg 'Potion Set to..' 75
  209. headmsg PotionType[1] 75
  210. endif
  211. //
  212. endif
  213. //--------------------------------------------------------------//
  214. //Pre Checks
  215. //--------------------------------------------------------------//
  216. //Cleanup
  217. sysmsg 'Cleanup..' 76
  218. clearjournal
  219. //Empty Bottle Check
  220. if @counttype 0xf0e any backpack < 1
  221. headmsg 'Not Enough Empty Bottles' 23
  222. stop
  223. endif
  224. //Low Mortar Warning
  225. if @counttype 0xe9b any backpack < 5
  226. headmsg 'Mortars are low!' 23
  227. endif
  228. //Out of Mortars Check
  229. if @counttype 0xe9b any backpack <= 1
  230. headmsg 'Mortars are out!' 23
  231. stop
  232. endif
  233. //--------------------------------------------------------------//
  234. //Get Empty Keg and Regs
  235. //--------------------------------------------------------------//
  236. //Move Empty Keg-----------------------------------------------//
  237. sysmsg 'Searching for empty kegs..' 76
  238. if @findtype 0x1940 any backpack
  239. clickobject found
  240. pause 500
  241. if @injournal PotionType[1] system
  242. sysmsg 'Backpack Empty Keg Found' 76
  243. @setalias WorkingKeg found
  244. pause 200
  245. clearjournal
  246. else
  247. headmsg 'Setting working keg with unknown origins.' 23
  248. @setalias WorkingKeg found
  249. endif
  250. else
  251. if @findtype 0x1940 any supplieschest
  252. sysmsg 'Supplies Chest Empty Keg Found' 76
  253. moveitem found backpack
  254. pause 1000
  255. @setalias WorkingKeg found
  256. else
  257. headmsg 'DONE - Out of Empty Kegs!' 23
  258. stop
  259. endif
  260. endif
  261. //Move Regs
  262. if @counttype PotionType[2] any backpack < PotionType[4]
  263. if @movetype PotionType[2] supplieschest backpack 0 0 0 any PotionType[5]
  264. pause 1000
  265. else
  266. headmsg 'Out of Regs in Supplie Chest!' 23
  267. headmsg PotionType[3] 23
  268. stop
  269. endif
  270. endif
  271. //--------------------------------------------------------------//
  272. //Main Crafting
  273. //--------------------------------------------------------------//
  274. while @findtype 0x1940 any backpack
  275. //Low Mortar Warning
  276. if @counttype 0xe9b any backpack < 5
  277. headmsg 'Mortars are low!' 23
  278. endif
  279. //Reg Check During Crafting
  280. if @counttype PotionType[2] any backpack < PotionType[6]
  281. headmsg 'Getting more Regs!' 23
  282. if @movetype PotionType[2] supplieschest backpack 0 0 0 any PotionType[7]
  283. pause 1000
  284. else
  285. headmsg 'Out of Reg on Beetle!' 23
  286. headmsg PotionType[3] 23
  287. stop
  288. endif
  289. endif
  290. //Craft Potion
  291. sysmsg PotionType[1] 76
  292. if @usetype 0xe9b any backpack
  293. waitforgump 0x38920abd 5000
  294. replygump 0x38920abd PotionType[8]
  295. waitforgump 0x38920abd 5000
  296. replygump 0x38920abd PotionType[9]
  297. waitforgump 0x38920abd 5000
  298. pause 500
  299. //Wrong Keg Type
  300. if @injournal 'You decide that' 'system'
  301. headmsg 'Wrong keg type for this potion. Ignoring..' 23
  302. sysmsg 'Moving Keg to Supplies Chest' 76
  303. moveitem WorkingKeg supplieschest
  304. pause 1000
  305. ignoreobject WorkingKeg
  306. unsetalias WorkingKeg
  307. clearjournal
  308. replay
  309. endif
  310. //Look for first and last Potion
  311. while @findtype PotionType[0] any backpack
  312. moveitem found WorkingKeg
  313. pause 1000
  314. //Full Keg
  315. if @injournal 'The keg will not' system
  316. sysmsg 'Moving Keg to Butler' 76
  317. moveitem WorkingKeg butler
  318. pause 2000
  319. //ignoreobject WorkingKeg
  320. unsetalias WorkingKeg
  321. clearjournal
  322. replay
  323. endif
  324. endwhile
  325. else
  326. headmsg 'No more mortars!' 23
  327. stop
  328. endif
  329. endwhile
  330. headmsg 'Error- Should Not End Here - Report To Wyntr' 24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement