Train Alchemy using Shelf by Jaseowns
Description: Training alchemy using a shelf as the resupply for regs and bottles. You still need to make sure you have a restock agent for a keg pointing to a separate container, but everything else comes out of shelf.
1# Alchemy Training with Shelf by Jaseowns
2# UO Outlands - https://youtu.be/k1PqAGIB0Ls
3# Updated on march 1st 2023, again on march 21st 2023 (gump responses changed)
4# Requirements: a restock shelf (regs/bottles/mortar), a restock container (kegs)
5# restock agent 1: setup as keg (and any other things you might not have on shelf, mortar pestle, etc)
6# Additional Info:
7# This script was updated 9/8/2021 to make sure your restock variables are setup
8# Edit line 25 to decrease skill check (default is 120)
9if not varexist "restock_container"
10 overhead "Target your restock container (kegs)"
11 setvar "restock_container"
12endif
13
14
15if 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" backpack
16 if findtype "storage shelf" ground any any 2 as the_shelf
17 overhead "Resupply" 88
18 menu the_shelf 1
19 wait 500
20 endif
21 restock 1
22 waitfortarget
23 target "restock_container"
24 wait 1000
25endif
26
27if skill 'Alchemy' >= 120
28 overhead 'Hit Max!' 88
29 wait 5000
30 replay
31endif
32
33if not findtype "mortar and pestle" backpack
34 if findtype "resource container" ground -1 -1 2 as item
35 // do nothing
36 else
37 overhead 'No mortar and pestle!' 34
38 wait 2000
39 replay
40 endif
41endif
42
43
44if counttype 3976 backpack < 10
45 overhead 'No Nightshade!' 34
46 wait 2000
47 replay
48endif
49
50if counttype 3981 backpack < 5
51 overhead "No Spiders Silk" 34
52 wait 2000
53 replay
54endif
55
56if not findtype "keg" backpack
57 overhead 'No keg!' 34
58 wait 2000
59 replay
60endif
61
62if not findtype "empty bottle%s%" backpack
63 overhead 'No Bottles!' 34
64 wait 2000
65 replay
66endif
67
68clearsysmsg
69gumpclose 949095101
70gumpclose 1859005118
71
72if findtype "mortar and pestle" backpack as item
73 dclick item
74 waitforgump 949095101 5000
75elseif findtype "resource container" ground -1 -1 2 as item
76 dclick item
77 waitforgump 1859005118
78 gumpresponse 7 1859005118
79 waitforgump 1859005118 5000
80 gumpresponse 100 1859005118
81 waitforgump 949095101 5000
82endif
83
84if skill 'Alchemy' < 55
85 overhead '50 - 55: Lesser Poison'
86 gumpresponse 106 949095101
87 waitforgump 949095101 5000
88 gumpresponse 200 949095101
89 waitforgump 949095101 5000
90elseif skill 'Alchemy' < 75
91 overhead '55 - 75: Lesser Magic Resist'
92 gumpresponse 105 949095101
93 waitforgump 949095101 5000
94 gumpresponse 200 949095101
95 waitforgump 949095101 5000
96elseif skill 'Alchemy' < 95
97 overhead '75 - 95: Greater Poison'
98 gumpresponse 106 949095101
99 waitforgump 949095101 5000
100 gumpresponse 202 949095101
101 waitforgump 949095101 5000
102elseif skill 'Alchemy' < 115
103 overhead '95 - 115: Deadly Poison'
104 gumpresponse 106 949095101
105 waitforgump 949095101 5000
106 gumpresponse 204 949095101
107 waitforgump 949095101 5000
108elseif skill 'Alchemy' < 120
109 overhead '115 - 120: Lethal Poison'
110 gumpresponse 106 949095101
111 waitforgump 949095101 5000
112 gumpresponse 206 949095101
113 waitforgump 949095101 5000
114else
115 overhead 'All done!'
116endif
117wait 3000
118
119if findtype "Green Potion" backpack
120 hotkey 'Set Last Target'
121 waitfortarget
122 targettype "keg" backpack
123 lifttype "Green Potion" 1
124 drop lasttarget 0 0 0
125 wait 500
126endif
127if findtype "Black Potion" backpack
128 dclicktype "Black Potion" backpack
129 wait 500
130endif
131
132if insysmsg "not hold any more" or insysmsg "bad idea to mix"
133 overhead 'Storage Shelf!'
134 organizer 2
135 wait 1000
136 if insysmsg "cannot be stored in a storage shelf"
137 overhead 'Move keg!'
138 organizer 1
139 wait 1000
140 endif
141endif
142
143loop