Skip to content
Outlands Hub

Razor script

Train Alchemy using Shelf

by Jaseowns · 149 lines
Download

Compatibility unverified

This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.

Alchemy Training with Shelf by Jaseowns UO Outlands - https://youtu.be/k1PqAGIB0Ls Updated on march 1st 2023, again on march 21st 2023 (gump responses changed) Requirements: a restock shelf (regs/bottles/mortar), a restock container (kegs)…

TrainingCraftingOrganizingAlchemy
Train Alchemy using Shelf.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/916f75b6-6c7c-4085-9a0f-092795020c2c for latest2# Automation by Jaseowns3## Script: Train Alchemy using Shelf4## Created by: Jaseowns#66945#############################################6 7# Alchemy Training with Shelf by Jaseowns8# UO Outlands - https://youtu.be/k1PqAGIB0Ls9# Updated on march 1st 2023, again on march 21st 2023 (gump responses changed)10# Requirements: a restock shelf (regs/bottles/mortar), a restock container (kegs)11#   restock agent 1:  setup as keg (and any other things you might not have on shelf, mortar pestle, etc)12# Additional Info: 13#   This script was updated 9/8/2021 to make sure your restock variables are setup14#   Edit line 25 to decrease skill check (default is 120)15if not varexist "restock_container"16    overhead "Target your restock container (kegs)"17    setvar "restock_container"18endif19 20 21if not findtype "mortar and pestle" backpack or counttype 3976 backpack < 10 or counttype 3981 backpack < 5 or not findtype "empty bottle%s%" backpack or not findtype "keg" backpack22    if findtype "storage shelf" ground any any 2 as the_shelf23        overhead "Resupply" 8824        menu the_shelf 125        wait 50026    endif27    restock 128    waitfortarget 29    target "restock_container"30    wait 100031endif32 33if skill 'Alchemy' >= 12034    overhead 'Hit Max!' 8835    wait 500036    replay37endif38 39if not findtype "mortar and pestle" backpack 40    if findtype "resource container" ground -1 -1 2 as item41        // do nothing42    else43        overhead 'No mortar and pestle!' 3444        wait 200045        replay46    endif47endif48 49 50if counttype 3976 backpack < 1051    overhead 'No Nightshade!' 3452    wait 200053    replay54endif55 56if counttype 3981 backpack < 557    overhead "No Spiders Silk" 3458    wait 200059    replay60endif61 62if not findtype "keg" backpack63    overhead 'No keg!' 3464    wait 200065    replay66endif67 68if not findtype "empty bottle%s%" backpack69    overhead 'No Bottles!' 3470    wait 200071    replay72endif73 74clearsysmsg 75gumpclose 94909510176gumpclose 185900511877 78if findtype "mortar and pestle" backpack as item79    dclick item80    waitforgump 949095101 5000 81elseif findtype "resource container" ground -1 -1 2 as item82    dclick item83    waitforgump 185900511884    gumpresponse 7 185900511885    waitforgump 1859005118 500086    gumpresponse 100 185900511887    waitforgump 949095101 500088endif89 90if skill 'Alchemy' < 5591    overhead '50 - 55: Lesser Poison'92    gumpresponse 106 94909510193    waitforgump 949095101 500094    gumpresponse 200 94909510195    waitforgump 949095101 500096elseif skill 'Alchemy' < 7597    overhead '55 - 75: Lesser Magic Resist'98    gumpresponse 105 94909510199    waitforgump 949095101 5000100    gumpresponse 200 949095101101    waitforgump 949095101 5000102elseif skill 'Alchemy' < 95103    overhead '75 - 95: Greater Poison'104    gumpresponse 106 949095101105    waitforgump 949095101 5000106    gumpresponse 202 949095101107    waitforgump 949095101 5000108elseif skill 'Alchemy' < 115109    overhead '95 - 115: Deadly Poison'110    gumpresponse 106 949095101111    waitforgump 949095101 5000112    gumpresponse 204 949095101113    waitforgump 949095101 5000114elseif skill 'Alchemy' < 120115    overhead '115 - 120: Lethal Poison'116    gumpresponse 106 949095101117    waitforgump 949095101 5000118    gumpresponse 206 949095101119    waitforgump 949095101 5000120else121    overhead 'All done!'122endif123wait 3000124 125if findtype "Green Potion" backpack126    hotkey 'Set Last Target'127    waitfortarget 128    targettype "keg" backpack129    lifttype "Green Potion" 1130    drop lasttarget 0 0 0131    wait 500132endif133if findtype "Black Potion" backpack134    dclicktype "Black Potion" backpack135    wait 500136endif137 138if insysmsg "not hold any more" or insysmsg "bad idea to mix"139    overhead 'Storage Shelf!'140    organizer 2141    wait 1000142    if insysmsg "cannot be stored in a storage shelf"143        overhead 'Move keg!'144        organizer 1145        wait 1000     146    endif 147endif148 149loop