Train Alchemy 42-100 with shelf support option by Gyvulor

Description: #INSTRUCTIONS: Buy Alchemy skil to 42

#Set variable below to use shelf or not, Default is to use shelf.

#Have plenty of bottles and regs

#Script will ask you to target your shelf each time you run the script

#Note while training 85-90 this script makes Magic Resist potion that

#Eyes of Newt which is not supported by the shelf at this time so you will need to manually add items to your pack

#When using Storage Shelf, This script will restock from your backpack which loaded pots

#into shelf and then loaded bottles and regs to your backpack. Suggested Withdrawal Amount should be set to 25

# Script: Train Alchemy 42-100 with shelf support option ## Created by: Gyvulor#5060 ############################################# #Train Alchemy 42-100 With option of using Storage Shelf by Gyvulor 05/31/2023 #UO Unchained #Potions were picked for optimal skill gain with potions you will use later in game #INSTRUCTIONS: Buy Alchemy skill to 42 #Set variable below to use shelf or not, Default is to use shelf. #Have plenty of bottles and regs #Note while training 85-90 this script makes Magic Resist potion that uses #Eyes of Newt which is not supported by the shelf at this time so you will need to manually add items to your pack #When using Storage Shelf, This script will restock from your backpack which loaded pots #into shelf and then loaded bottles and regs to your backpack. Suggested Withdrawal Amount should be set to 25 #SETUP: #Note at this time this script will not work if you are within 2 tiles of storage AND resource shelf. Suggest to relocate your resource shelf while using this script. #would you like to use a shelf to restock regs and bottles? 0=No 1=Yes @setvar! useShelf 1 #Start of script while skill "Alchemy" < 45 #Greater Agility uses 3 Blood Moss if count "Blood Moss" < 3 if useShelf = 1 if findtype "display" true as shelf dclick shelf waitforgump 111922706 5000 gumpresponse 49 //Fill from pack waitforgump 111922706 5000 gumpresponse 13 //bottles waitforgump 111922706 gumpresponse 2 //Blood Moss endif else overhead "Need more Blood Moss" 88 endif endif if findtype "mortar and pestle" backpack as tOol dclick tOol waitforgump 949095101 5000 gumpresponse 8 949095101 waitforgump 949095101 5000 gumpresponse 9 949095101 waitforgump 949095101 5000 else overhead "I need a tool" 88 endif endwhile while skill "Alchemy" < 55 #Greater Str uses 5 Mandrake Root if count "Mandrake Root%s%" < 5 if useShelf = 1 if findtype "display" true as shelf dclick shelf waitforgump 111922706 5000 gumpresponse 49 //Fill from pack puts created potions into shelf waitforgump 111922706 5000 gumpresponse 13 //bottles waitforgump 111922706 gumpresponse 3 //Mandrake Root endif else overhead "Need more Mandrake Root" 88 endif endif if findtype "mortar and pestle" backpack as tOol dclick tOol waitforgump 949095101 5000 gumpresponse 8 949095101 waitforgump 949095101 5000 gumpresponse 30 949095101 waitforgump 949095101 5000 else overhead "I need a tool" 88 endif endwhile while skill "Alchemy" < 65 #Greater Heal uses 7 Ginseng if count "Ginseng" < 7 if useShelf = 1 if findtype "display" true as shelf dclick shelf waitforgump 111922706 5000 gumpresponse 49 //Fill from pack puts created potions into shelf waitforgump 111922706 5000 gumpresponse 13 //bottles waitforgump 111922706 gumpresponse 8 //Ginseng endif else overhead "Need more Ginseng" 88 endif endif if findtype "mortar and pestle" backpack as tOol dclick tOol waitforgump 949095101 5000 gumpresponse 1 949095101 waitforgump 949095101 5000 gumpresponse 30 949095101 waitforgump 949095101 5000 else overhead "I need a tool" 88 endif endwhile while skill "Alchemy" < 75 #Greater Cure uses 6 Garlic if count "Garlic" < 6 if useShelf = 1 if findtype "display" true as shelf dclick shelf waitforgump 111922706 5000 gumpresponse 49 //Fill from pack puts created potions into shelf waitforgump 111922706 5000 gumpresponse 13 //bottles waitforgump 111922706 gumpresponse 7 //Garlic endif else overhead "Need more Garlic" 88 endif endif if findtype "mortar and pestle" backpack as tOol dclick tOol waitforgump 949095101 5000 gumpresponse 1 949095101 waitforgump 949095101 5000 gumpresponse 30 949095101 waitforgump 949095101 5000 else overhead "I need a tool" 88 endif endwhile while skill "Alchemy" < 85 #Smoke Bomb 1 Egg and 3 ginsing if count "Ginseng" < 3 if useShelf = 1 if findtype "display" true as shelf dclick shelf waitforgump 111922706 5000 gumpresponse 49 //Fill from pack puts created potions into shelf waitforgump 111922706 5000 gumpresponse 13 //bottles waitforgump 111922706 gumpresponse 8 //Ginseng endif else overhead "Need more Ginseng" 88 endif elseif count "Eggs" < 1 overhead "Need more Eggs" 88 endif if findtype "mortar and pestle" backpack as tOol dclick tOol waitforgump 949095101 5000 gumpresponse 29 949095101 waitforgump 949095101 5000 gumpresponse 2 949095101 waitforgump 949095101 5000 else overhead "I need a tool" 88 endif endwhile while skill "Alchemy" < 90 #Magic Resist uses 5 Eye of Newt if count "Eye%s% of Newt" < 5 overhead "Need more Eye of Newt" 88 endif if findtype "mortar and pestle" backpack as tOol dclick tOol waitforgump 949095101 5000 gumpresponse 8 949095101 waitforgump 949095101 5000 gumpresponse 37 949095101 waitforgump 949095101 5000 else overhead "I need a tool" 88 endif endwhile while skill "Alchemy" < 100 #Deadly Poison uses 8 Nightshade if count "Nightshade" < 8 if useShelf = 1 if findtype "display" true as shelf dclick shelf waitforgump 111922706 5000 gumpresponse 49 //Fill from pack puts created potions into shelf waitforgump 111922706 5000 gumpresponse 13 //bottles waitforgump 111922706 gumpresponse 5 //Nightshade endif else overhead "Need more Nightshade" 88 endif endif if findtype "mortar and pestle" backpack as tOol dclick tOol waitforgump 949095101 5000 gumpresponse 15 949095101 waitforgump 949095101 5000 gumpresponse 23 949095101 waitforgump 949095101 5000 else overhead "I need a tool" 88 endif endwhile if skill "Alcheny" == 100 overhead "Done training!" 88 endif