TrainingCraftingAlchemy
Train Alchemy Supremo.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/d2652f9d-e3a2-4296-88c5-7f052dc3cd45 for latest2# Automation by Jaseowns3## Script: Train Alchemy Supremo4## Created by: luizhenrique7779#05#############################################6 7clearsysmsg8 9@setvar! maxAlchemy 12010 11if not varexist "LastPotionCode"12 @setvar! LastPotionCode 013endif14 15if not varexist "SourceContainer"16 overhead "ABRA O MACRO 'setvar SourceContainer', CLIQUE NA BAG E RODE ESTE SCRIPT DEPOIS" 3817 wait 500018 stop19endif20 21if skill "Alchemy" >= maxAlchemy22 overhead "Target Alchemy Level Reached!" 8823 setskill "Alchemy" lock24 wait 200025 stop26endif27 28setskill "Alchemy" up29 30## ========================================================31## MORTAR AND PESTLE MANAGER COM RESET GARANTIDO DO CODE32## ========================================================33 34if not varexist "CurrentMortar"35 @setvar! CurrentMortar 036endif37 38## Verifica se o mortar atual ainda existe39if CurrentMortar != 040 if not find CurrentMortar backpack41 overhead "Mortar sumiu/quebrou!" 3842 @setvar! CurrentMortar 043 @setvar! LastPotionCode 044 if gumpexists 94909510145 gumpclose 94909510146 wait 20047 endif48 endif49endif50 51## Se nao tem mortar, procura um novo52if CurrentMortar = 053 ## primeiro na backpack54 if findtype "mortar and pestle" backpack as newmortar55 @setvar! CurrentMortar newmortar56 @setvar! LastPotionCode 057 dclick newmortar58 waitforgump 949095101 500059 wait 20060 else61 ## depois na SourceContainer62 if findtype "mortar and pestle" SourceContainer as newmortar63 while queued64 //donothing65 endwhile66 lift newmortar 167 wait 20068 drop backpack69 wait 20070 71 if findtype "mortar and pestle" backpack as newmortar272 @setvar! CurrentMortar newmortar273 @setvar! LastPotionCode 074 dclick newmortar275 waitforgump 949095101 500076 wait 20077 else78 overhead "Sem mortar na bag!" 3879 wait 100080 loop81 endif82 else83 overhead "Sem mortar nem na SourceContainer!" 3884 wait 100085 loop86 endif87 endif88endif89 90## Garante que o gump esteja aberto91if not gumpexists 94909510192 if find CurrentMortar backpack93 @setvar! LastPotionCode 094 dclick CurrentMortar95 waitforgump 949095101 500096 wait 20097 else98 overhead "Mortar sumiu!" 3899 @setvar! CurrentMortar 0100 @setvar! LastPotionCode 0101 wait 500102 loop103 endif104endif105 106## =============================107## RESTOCK INTELIGENTE108## =============================109 110## 50-70: Lesser Magic Resist -> Spider's Silk (3981)111if skill "Alchemy" < 70112 @setvar! needRegID 3981113 @setvar! needRegName "Spiders Silk"114 @setvar! minReg 6115 @setvar! potionCategory 105116 @setvar! potionBtn 200117 @setvar! potionCode 1118 @setvar! potionColor "Black Potion"119 120## 70-90: Greater Heal -> Ginseng (3973)121elseif skill "Alchemy" >= 70 and skill "Alchemy" < 90122 @setvar! needRegID 3973123 @setvar! needRegName "Ginseng"124 @setvar! minReg 6125 @setvar! potionCategory 100126 @setvar! potionBtn 204127 @setvar! potionCode 2128 @setvar! potionColor "Yellow Potion"129 130## 90-100: Greater Explosion -> Sulfurous Ash (3980)131elseif skill "Alchemy" >= 90 and skill "Alchemy" < 100132 @setvar! needRegID 3980133 @setvar! needRegName "Sulfurous Ash"134 @setvar! minReg 9135 @setvar! potionCategory 107136 @setvar! potionBtn 204137 @setvar! potionCode 3138 @setvar! potionColor "Purple Potion"139 140## 100-115: Greater Magic Resist -> Spider's Silk (3981)141elseif skill "Alchemy" >= 100 and skill "Alchemy" < 115142 @setvar! needRegID 3981143 @setvar! needRegName "Spiders Silk"144 @setvar! minReg 9145 @setvar! potionCategory 105146 @setvar! potionBtn 204147 @setvar! potionCode 4148 @setvar! potionColor "Black Potion"149 150## 115-120: Lethal Poison -> Nightshade (3976)151else152 @setvar! needRegID 3976153 @setvar! needRegName "Nightshade"154 @setvar! minReg 10155 @setvar! potionCategory 106156 @setvar! potionBtn 208157 @setvar! potionCode 5158 @setvar! potionColor "Green Potion"159endif160 161## -----------------------------162## RESTOCK DO REAGENTE163## -----------------------------164if counttype needRegID backpack < minReg165 if findtype needRegID SourceContainer as reg166 while queued167 //donothing168 endwhile169 lift reg 1000170 wait 150171 drop backpack172 wait 150173 else174 overhead "Falta " + needRegName + " na SourceContainer!" 38175 wait 1000176 loop177 endif178endif179 180## -----------------------------181## RESTOCK DE BOTTLES182## -----------------------------183if counttype 0x0F0E backpack < minReg and counttype 3854 backpack < minReg184 if findtype 0x0F0E SourceContainer as bottle1185 while queued186 //donothing187 endwhile188 lift bottle1 200189 wait 150190 drop backpack191 wait 150192 elseif findtype 3854 SourceContainer as bottle2193 while queued194 //donothing195 endwhile196 lift bottle2 200197 wait 150198 drop backpack199 wait 150200 else201 overhead "Sem bottles na SourceContainer!" 38202 wait 1000203 loop204 endif205endif206 207## -----------------------------208## CRAFT209## -----------------------------210if counttype needRegID backpack < minReg211 overhead "Need more " + needRegName + "!" 34212 wait 500213 loop214endif215 216if counttype 0x0F0E backpack < 1 and counttype 3854 backpack < 1217 overhead "Need more Empty Bottles!" 34218 wait 800219 loop220endif221 222## Seleciona categoria (SEMPRE reseta se mudou)223if LastPotionCode != potionCode224 gumpresponse potionCategory 949095101225 waitforgump 949095101 5000226 @setvar! LastPotionCode potionCode227 wait 200228endif229 230## Craft um231if gumpexists 949095101232 gumpresponse potionBtn 949095101233 waitforgump 949095101 5000234 wait 550235 236 ## Verifica se mortar quebrou237 if CurrentMortar != 0238 if not find CurrentMortar backpack239 overhead "Mortar quebrou!" 38240 @setvar! CurrentMortar 0241 @setvar! LastPotionCode 0242 endif243 endif244else245 overhead "Gump fechou!" 38246 @setvar! CurrentMortar 0247 @setvar! LastPotionCode 0248 wait 500249 loop250endif251 252## -----------------------------253## AUTO-DEPOSIT TODAS AS POCOES254## -----------------------------255 256## Deposita Black Potion257while counttype "Black Potion" backpack >= 20258 if findtype "Black Potion" backpack as madepot259 while queued260 //donothing261 endwhile262 lift madepot 20263 wait 150264 if findtype "Black Potion" SourceContainer as stashpot265 drop stashpot266 else267 drop SourceContainer268 endif269 wait 150270 else271 break272 endif273endwhile274 275## Deposita Yellow Potion276while counttype "Yellow Potion" backpack >= 20277 if findtype "Yellow Potion" backpack as madepot278 while queued279 //donothing280 endwhile281 lift madepot 20282 wait 150283 if findtype "Yellow Potion" SourceContainer as stashpot284 drop stashpot285 else286 drop SourceContainer287 endif288 wait 150289 else290 break291 endif292endwhile293 294## Deposita Orange Potion295while counttype "Orange Potion" backpack >= 20296 if findtype "Orange Potion" backpack as madepot297 while queued298 //donothing299 endwhile300 lift madepot 20301 wait 150302 if findtype "Orange Potion" SourceContainer as stashpot303 drop stashpot304 else305 drop SourceContainer306 endif307 wait 150308 else309 break310 endif311endwhile312 313## Deposita White Potion314while counttype "White Potion" backpack >= 20315 if findtype "White Potion" backpack as madepot316 while queued317 //donothing318 endwhile319 lift madepot 20320 wait 150321 if findtype "White Potion" SourceContainer as stashpot322 drop stashpot323 else324 drop SourceContainer325 endif326 wait 150327 else328 break329 endif330endwhile331 332## Deposita Blue Potion333while counttype "Blue Potion" backpack >= 20334 if findtype "Blue Potion" backpack as madepot335 while queued336 //donothing337 endwhile338 lift madepot 20339 wait 150340 if findtype "Blue Potion" SourceContainer as stashpot341 drop stashpot342 else343 drop SourceContainer344 endif345 wait 150346 else347 break348 endif349endwhile350 351## Deposita Purple Potion352while counttype "Purple Potion" backpack >= 20353 if findtype "Purple Potion" backpack as madepot354 while queued355 //donothing356 endwhile357 lift madepot 20358 wait 150359 if findtype "Purple Potion" SourceContainer as stashpot360 drop stashpot361 else362 drop SourceContainer363 endif364 wait 150365 else366 break367 endif368endwhile369 370## Deposita Green Potion371while counttype "Green Potion" backpack >= 20372 if findtype "Green Potion" backpack as madepot373 while queued374 //donothing375 endwhile376 lift madepot 20377 wait 150378 if findtype "Green Potion" SourceContainer as stashpot379 drop stashpot380 else381 drop SourceContainer382 endif383 wait 150384 else385 break386 endif387endwhile388 389wait 500390loop