Refill reagents and Scrolls by sancholi

Description: Will deposit all regs, and selected scrolls and then restock using the variables

Built off of https://outlands.uorazorscripts.com/skills/magery/7c8b5530-79a6-41a4-888a-634dbca497f7

By Necromunger

01/02/25 Added way to dump all unwanted scrolls to selected bag

01/02/25 Added commented out ID in dump scroll list for ease of use and edited comments for clarity

1///Added an extra way to dump all scrolls from bag not in the scroll list
2///You have to add and remove wanted scrolls from the list
3///Current script contains all scrolls and any in my wanted list are omitted from the dump scroll list
4///Change to your liking
5///Added full scroll list with id's for ease of use
6/////-----------------------------------------------------------------------------------------------------------//
7///#Magery spells and spell scrolls - all scroll serials: 7981|7982|7983|7984|7985|7986|7987|7988|7989|7990|7991|7992|7993|7994|7995|7996|7997|7998|7999|8000|8001|8002|8003|8004|8005|8006|8007|8008|8009|8010|8011|8012|8013|8014|8015|8016|8017|8018|8019|8020|8021|8022|8023|8024|8025|8026|8027|8028|8029|8031|8032|8033|8034|8035|8036|8037|8038|8039|8041|8042|8043|8044
8///    
9///    #1st Circle - all scroll serials: 7981|7982|7983|7984|7985|7986|7987|7988
10///        #1 hotkey "Clumsy" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3963|3976 (Bloodmoss, Nightshade) | clumsy scroll "Clumsy Scroll" 7982
11///        #2 hotkey "Create Food" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3972|3973|3974 (Garlic, Ginseng, Mandrake Root) | create food scroll "Create Food Scroll" 7983
12///        #3 hotkey "Feeblemind" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3976|3973 (Nightshade, Ginseng) | feeblemind scroll "Feeblemind Scroll" 7984
13///        #4 hotkey "Heal" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3972|3973|3981 (Garlic, Ginseng, Spiders Silk) | heal scroll "Heal Scroll" 7985
14///        #5 hotkey "Magic Arrow" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3980 (Sulfurous Ash) | magic arrow scroll "Magic Arrow Scroll" 7986
15///        #6 hotkey "Night Sight" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3981|3980 (Spiders Silk, Sulfurous Ash) | night sight scroll "Night Sight Scroll" 7987
16///        #7 hotkey "Reactive Armor" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3972|3981|3980 (Garlic, Spiders Silk, Sulfurous Ash) | reactive armor scroll "Reactive Armor Scr" 7981
17///        #8 hotkey "Weaken" | Magery req. 0/30 - Mana Cost 4 - Casttime 0.50 sec - Regs: 3972|3976 (Garlic, Nightshade) | weaken scroll "Weaken Scroll" 7988
18///
19///    #2nd Circle - all scroll serials: 7989|7990|7991|7992|7993|7994|7995|7996
20///        #9 hotkey "Agility" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3963|3974 (Bloodmoss, Mandrake Root) | agility scroll "Agility Scroll" 7989
21///        #10 hotkey "Cunning" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3976|3974 (Nightshade, Mandrake Root) | cunning scroll "Cunning Scroll" 7990
22///        #11 hotkey "Cure" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3972|3973 (Garlic, Ginseng) | cure scroll "Cure Scroll" 7991
23///        #12 hotkey "Harm" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3976|3981 (Nightshade, Spiders Silk) | harm scroll "Harm Scroll" 7992
24///        #13 hotkey "Magic Trap" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3972|3981|3980 (Garlic, Spiders Silk, Sulfurous Ash) | magic trap scroll "Magic Trap Scroll" 7993
25///        #14 hotkey "Magic Untrap" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3963|3980 (Bloodmoss, Sulfurous Ash) | remove trap scroll "Magic Untrap Scrol" 7994
26///        #15 hotkey "Protection" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3972|3973|3980 (Garlic, Ginseng, Sulfurous Ash) | protection scroll "Protection Scroll" 7995
27///        #16 hotkey "Strength" | Magery req. 20/40 - Mana Cost 6 - Casttime 0.75 sec - Regs: 3974|3976 (Mandrake Root, Nightshade) | strength scroll "Strength Scroll" 7996
28///
29///    #3rd Circle - all scroll serials: 7997|7998|7999|8000|8001|8002|8003|8004
30///        #17 hotkey "Bless" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3972|3974 (Garlic, Mandrake Root) | bless scroll "Bless Scroll" 7997
31///        #18 hotkey "Fireball" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3962 (Black Pearl) | fireball scroll "Fireball Scroll" 7998
32///        #19 hotkey "Magic Lock" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3963|3972|3980 (Bloodmoss, Garlic, Sulfurous Ash) | magic lock scroll "Magic Lock Scroll" 7999
33///        #20 hotkey "Poison" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3976 (Nightshade) | poison scroll "Poison Scroll" 8000
34///        #21 hotkey "Telekinesis" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3963|3974 (Bloodmoss, Mandrake Root) | telekinisis scroll "Telekinisis Scroll" 8001
35///        #22 hotkey "Teleport" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3963|3974 (Bloodmoss, Mandrake Root) | teleport scroll "Teleport Scroll" 8002
36///        #23 hotkey "Unlock" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3963|3980 (Bloodmoss, Sulfurous Ash) | unlock scroll "Unlock Scroll" 8003
37///        #24 hotkey "Wall of Stone" | Magery req. 30/50 - Mana Cost 9 - Casttime 1.00 sec - Regs: 3963|3972 (Bloodmoss, Garlic) | wall of stone scroll "Wall of Stone Scro" 8004
38///
39///    #4th Circle - all scroll serials: 8005|8006|8007|8008|8009|8010|8011|8012
40///        #25 hotkey "Arch Cure" | Magery req. 40/60 - Mana Cost 11 - Casttime 1.25 sec - Regs: 3972|3973|3974 (Garlic, Ginseng, Mandrake Root) | arch cure scroll "Archcure Scroll" 8005
41///        #26 hotkey "Arch Protection" | Magery req. 40/60 - Mana Cost 11 - Casttime 1.25 sec - Regs: 3972|3973|3974|3980 (Garlic, Ginseng, Mandrake Root, Sulfurous Ash) | arch protection scroll "Arch Protection Sc" 8006
42///        #27 hotkey "Curse" | Magery req. 40/60 - Mana Cost 11 - Casttime 1.25 sec - Regs: 3972|3976|3980 (Garlic, Nightshade, Sulfurous Ash) | curse scroll "Curse Scroll" 8007
43///        #28 hotkey "Fire Field" | Magery req. 40/60 - Mana Cost 11 - Casttime 1.25 sec - Regs: 3962|3981|3980 (Black Pearl, Spiders Silk, Sulfurous Ash) | fire field scroll "Fire Field Scrol" 8008
44///        #29 hotkey "Greater Heal" | Magery req. 40/60 - Mana Cost 11 - Casttime 1.25 sec - Regs: 3972|3973|3974|3981 (Garlic, Ginseng, Mandrake Root, Spiders Silk) | greater heal scroll "Greater Heal Scrol" 8009
45///        #30 hotkey "Lightning" | Magery req. 40/60 - Mana Cost 11 - Casttime 1.25 sec - Regs: 3974|3980 (Mandrake Root, Sulfurous Ash) | lightning scroll "Lightning Scroll" 8010
46///        #31 hotkey "Mana Drain" | Magery req. 40/60 - Mana Cost 11 - Casttime 1.25 sec - Regs: 3962|3974|3981 (Black Pearl, Mandrake Root, Spiders Silk) | mana drain scroll "ManaDrain Scroll" 8011
47///        #32 hotkey "Recall" | Magery req. 40/60 - Mana Cost 11 - Casttime 2.00 sec - Regs: 3962|3963|3974 (Black Pearl, Bloodmoss, Mandrake Root) | recall scroll "Recall" 8012
48///
49///    #5th Circle - all scroll serials: 8013|8014|8015|8016|8017|8018|8019|8020
50///        #33 hotkey "Blade Spirits" | Magery req. 50/70 - Mana Cost 14 - Casttime 6.00 sec - Regs: 3962|3974|3976 (Black Pearl, Mandrake Root, Nightshade) | blade spirits scroll "Blade Spirits Scro" 8013
51///        #34 hotkey "Dispel Field" | Magery req. 50/70 - Mana Cost 14 - Casttime 1.50 sec - Regs: 3962|3972|3981|3980 (Black Pearl, Garlic, Spiders Silk, Sulfurous Ash) | dispel field scroll "Dispel Field Scrol" 8014
52///        #35 hotkey "Incognito" | Magery req. 50/70 - Mana Cost 14 - Casttime 1.50 sec - Regs: 3963|3972|3976 (Bloodmoss, Garlic, Nightshade) | incognito scroll "Incognito Scroll" 8015
53///        #36 hotkey "Magic Reflection" | Magery req. 50/70 - Mana Cost 14 - Casttime 1.50 sec -  Regs: 3972|3974|3981 (Garlic, Mandrake Root, Spiders Silk) | magic reflect scroll "Magic Reflection S" 8016
54///        #37 hotkey "Mind Blast" | Magery req. 50/70 - Mana Cost 14 - Casttime 1.50 sec - Regs: 3962|3974|3976|3980 (Black Pearl, Mandrake Root, Nightshade, Sulfurous Ash) | mind blast scroll "Mind Blast Scroll" 8017
55///        #38 hotkey "Paralyze" | Magery req. 50/70 - Mana Cost 14 - Casttime 1.50 sec - Regs: 3972|3974|3981 (Garlic, Mandrake Root, Spiders Silk) | paralyze scroll "Paralyze Scroll" 8018
56///        #39 hotkey "Poison Field" | Magery req. 50/70 - Mana Cost 14 - Casttime 1.50 sec - Regs: 3962|3976|3981 (Black Pearl, Nightshade, Spiders Silk) | poison field scroll "Poison Field Scrol" 8019
57///        #40 hotkey "Summ. Creature" | Magery req. 50/70 - Mana Cost 14 - Casttime 6.00 sec - Regs: 3963|3974|3981 (Bloodmoss, Mandrake Root, Spiders Silk) | summon creature scroll "Summon Creature Sc" 8020
58///
59///    #6th Circle - all scroll serials: 8021|8022|8023|8024|8025|8026|8027|8028
60///        #41 hotkey "Dispel" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3972|3974|3980 (Garlic, Mandrake Root, Sulfurous Ash) | dispel scroll "Dispel Scroll" 8021
61///        #42 hotkey "Energy Bolt" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3962|3976 (Black Pearl, Nightshade) | energy bolt scroll "Energy Bolt Scroll" 8022
62///        #43 hotkey "Explosion" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3963|3974 (Bloodmoss, Mandrake Root) | explosion scroll "Explosion Scroll" 8023
63///        #44 hotkey "Invisibility" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3963|3976 (Bloodmoss, Nightshade) | invisibility scroll "Invisibility Scrol" 8024
64///        #45 hotkey "Mark" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3962|3963|3974 (Black Pearl, Bloodmoss, Mandrake Root) | mark scroll "Mark Scroll" 8025
65///        #46 hotkey "Mass Curse" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3972|3974|3976|3980 (Garlic, Mandrake Root, Nightshade, Sulfurous Ash) | mass curse scroll "Mass Curse Scroll" 8026
66///        #47 hotkey "Paralyze Field" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3962|3973|3981 (Black Pearl, Ginseng, Spiders Silk) | paralyze field scroll "Paralyze Field Scr" 8027
67///        #48 hotkey "Reveal" | Magery req. 60/80 - Mana Cost 20 - Casttime 1.75 sec - Regs: 3963|3980 (Bloodmoss, Sulfurous Ash) | reveal scroll "Reveal Scroll" 8028
68///
69///    #7th Circle - all scroll serials: 8029|8031|8032|8033|8034|8035|8036
70///        #49 hotkey "Chain Lightning" | Magery req. 70/90 - Mana Cost 40 - Casttime 2.00 sec - Regs: 3962|3963|3974|3980 (Black Pearl, Bloodmoss, Mandrake Root, Sulfurous Ash) | chain lightning scroll "Chain Lightning Sc" 8029
71///        #50 hotkey "Energy Field" | Magery req. 70/90 - Mana Cost 40 - Casttime 2.00 sec - Regs: 3962|3974|3981|3980 (Black Pearl, Mandrake Root, Spiders Silk, Sulfurous Ash) | energy field scroll "Chain Lightning Sc" 8029
72///        #51 hotkey "Flamestrike" | Magery req. 70/90 - Mana Cost 40 - Casttime 2.00 sec - Regs: 3981|3980 (Spiders Silk, Sulfurous Ash) | flamestrike scroll "Flamestrike Scroll" 8031
73///        #52 hotkey "Gate Travel" | Magery req. 70/90 - Mana Cost 40 - Casttime 4.00 sec - Regs: 3962|3974|3980 (Black Pearl, Mandrake Root, Sulfurous Ash) | gate travel scroll "Gate Travel Scroll" 8032 
74///        #53 hotkey "Mana Vampire" | Magery req. 70/90 - Mana Cost 40 - Casttime 2.00 sec - Regs: 3962|3963|3974|3981 (Black Pearl, Bloodmoss, Mandrake Root, Spiders Silk) | mana vampire scroll "Mana Vampire Scrol" 8033
75///        #54 hotkey "Mass Dispel" | Magery req. 70/90 - Mana Cost 40 - Casttime 2.00 sec - Regs: 3962|3972|3974|3980 (Black Pearl, Garlic, Mandrake Root, Sulfurous Ash) | mass dispel scroll "Mass Dispel Scrol" 8034
76///        #55 hotkey "Meteor Swarm" | Magery req. 70/90 - Mana Cost 40 - Casttime 2.00 sec - Regs: 3963|3974|3981|3980 (Bloodmoss, Mandrake Root, Spiders Silk, Sulfurous Ash) | meteor swarm scroll "Meteor Storm Scrol" 8035
77///        #56 hotkey "Polymorph" | Magery req. 70/90 - Mana Cost 40 - Casttime 2.00 sec - Regs: 3963|3974|3981 (Bloodmoss, Mandrake Root, Spiders Silk) | polymorph scroll "Polymorph Scroll" 8036
78///        
79///    #8th Circle - all scroll serials: 8037|8038|8039|8041|8042|8043|8044
80///        #57 hotkey "Earthquake" | Magery req. 80/100 - Mana Cost 50 - Casttime 3.00 sec - Regs: 3963|3973|3974|3980 (Bloodmoss, Ginseng, Mandrake Root, Sulfurous Ash) | earthquake scroll "Earthquake Scroll" 8037
81///        #58 hotkey "Energy Vortex" | Magery req. 80/100 - Mana Cost 50 - Casttime 6.00 sec - Regs: 3962|3963|3974|3976 (Black Pearl, Bloodmoss, Mandrake Root, Nightshade) | energy vortex scroll "Energy Vortex Scro" 8038
82///        #59 hotkey "Resurrection" | Magery req. 80/100 - Mana Cost 50 - Casttime 5.00 sec - Regs: 3963|3973|3972 (Bloodmoss, Ginseng, Garlic) | resurrection scroll "Resurrection Scrol" 8039
83///        #60 hotkey "Air Elemental" | Magery req. 80/100 - Mana Cost 50 - Casttime 6.00 sec - Regs: 3963|3974|3981 (Bloodmoss, Mandrake Root, Spiders Silk) | summon air elemental scroll "Summon Earth Eleme" 8042
84///        #61 hotkey "Summon Daemon" | Magery req. 80/100 - Mana Cost 50 - Casttime 6.00 sec - Regs: 3963|3974|3981|3980 (Bloodmoss, Mandrake Root, Spiders Silk, Sulfurous Ash) | summon daemon scroll "Summon Daemon" 8041
85///        #62 hotkey "Earth Elemental" | Magery req. 80/100 - Mana Cost 50 - Casttime 6.00 sec - Regs: 3963|3974|3981 (Bloodmoss, Mandrake Root, Spiders Silk) | summon earth elemental scroll "Summon Earth Eleme" 8042
86///        #63 hotkey "Fire Elemental" | Magery req. 80/100 - Mana Cost 50 - Casttime 6.00 sec - Regs: 3963|3974|3981|3980 (Bloodmoss, Mandrake Root, Spiders Silk, Sulfurous Ash) | summon fire elemental scroll "Summon Fire Elemen" 8043
87///        #64 hotkey "Water Elemental" | Magery req. 80/100 - Mana Cost 50 - Casttime 6.00 sec - Regs: 3963|3974|3981 (Bloodmoss, Mandrake Root, Spiders Silk) | summon water elemental scroll "Summon Water Eleme" 8044
88
89///### MAIN SCRIPT ###///
90///
91overhead 'Select main reagent storage.'
92setvar 'sourceContainer'
93//Set the amount of regs to withdraw
94@setvar! requiredReagentCount 80
95//set the amount of scrolls to withdraw
96@setvar! requiredScrollCount 15
97@setvar! globalWaitTime 650
98
99///I don't know what this does yet
100removelist Reagents
101createlist Reagents
102removelist Scrolls
103createlist Scrolls
104removelist dumpScrolls
105createlist dumpScrolls
106clearignore
107
108//Reagents List//
109// Blood Moss
110@pushlist Reagents 3963
111// Sulfurous Ash
112@pushlist Reagents 3980
113// Mandrake Roots
114@pushlist Reagents 3974
115// Ginseng
116@pushlist Reagents 3973
117// Spiders Silk
118@pushlist Reagents 3981
119// Black Pearls
120@pushlist Reagents 3962
121// Nightshade
122@pushlist Reagents 3976
123// Garlic
124@pushlist Reagents 3972
125
126//Scrolls List//
127//If you need to add other scrolls get their >info and add/remove below
128///Or use the scrolls list up top
129//Fireball
130@pushlist Scrolls 7998
131//Magic Arrow
132@pushlist Scrolls 7986
133//Reactive Armor
134@pushlist Scrolls 7981
135//Cure
136@pushlist Scrolls 7991
137//Create Food
138@pushlist Scrolls 7983
139//Invisibility
140@pushlist Scrolls 8024
141//Paralyze
142@pushlist Scrolls 8018
143//Teleport
144@pushlist Scrolls 8002
145//ManaDrain
146@pushlist Scrolls 8011
147//Greater Heal
148@pushlist Scrolls 8009
149//Bless
150@pushlist Scrolls 7997
151//Protection
152@pushlist Scrolls 7995
153//Recall
154@pushlist Scrolls 8012
155//Summon creature
156@pushlist Scrolls 8020
157//Energy Bolt
158@pushlist Scrolls 8022
159
160//All scrolls not in "Scrolls"
161//Scrolls to Dump
162//First Circle
163//@pushlist dumpScrolls 7981
164@pushlist dumpScrolls 7982
165//@pushlist dumpScrolls 7983
166@pushlist dumpScrolls 7984
167//@pushlist dumpScrolls 7985
168//@pushlist dumpScrolls 7986
169@pushlist dumpScrolls 7987
170@pushlist dumpScrolls 7988
171//Second Circle
172@pushlist dumpScrolls 7989
173@pushlist dumpScrolls 7990
174//@pushlist dumpScrolls 7991
175@pushlist dumpScrolls 7992
176@pushlist dumpScrolls 7993
177@pushlist dumpScrolls 7994
178//@pushlist dumpScrolls 7995
179@pushlist dumpScrolls 7996
180//Third Circle
181//@pushlist dumpScrolls 7997
182//@pushlist dumpScrolls 7998
183@pushlist dumpScrolls 7999
184@pushlist dumpScrolls 8000
185@pushlist dumpScrolls 8001
186//@pushlist dumpScrolls 8002
187@pushlist dumpScrolls 8003
188@pushlist dumpScrolls 8004
189//Fourth Circle
190@pushlist dumpScrolls 8005
191@pushlist dumpScrolls 8006
192@pushlist dumpScrolls 8007
193@pushlist dumpScrolls 8008
194//@pushlist dumpScrolls 8009
195@pushlist dumpScrolls 8010
196//@pushlist dumpScrolls 8011
197//@pushlist dumpScrolls 8012
198//Fifth Circle
199@pushlist dumpScrolls 8013
200@pushlist dumpScrolls 8014
201@pushlist dumpScrolls 8015
202@pushlist dumpScrolls 8016
203@pushlist dumpScrolls 8017
204@pushlist dumpScrolls 8019
205//@pushlist dumpScrolls 8020
206//Sixth Circle
207@pushlist dumpScrolls 8021
208//@pushlist dumpScrolls 8022
209@pushlist dumpScrolls 8023
210//@pushlist dumpScrolls 8024
211@pushlist dumpScrolls 8025
212@pushlist dumpScrolls 8026
213@pushlist dumpScrolls 8027
214@pushlist dumpScrolls 8028
215//Seventh Circle
216@pushlist dumpScrolls 8029
217@pushlist dumpScrolls 8031
218@pushlist dumpScrolls 8032
219@pushlist dumpScrolls 8033
220@pushlist dumpScrolls 8034
221@pushlist dumpScrolls 8035
222@pushlist dumpScrolls 8036
223//Eighth Circle
224@pushlist dumpScrolls 8037
225@pushlist dumpScrolls 8038
226@pushlist dumpScrolls 8039
227@pushlist dumpScrolls 8041
228@pushlist dumpScrolls 8042
229@pushlist dumpScrolls 8043
230@pushlist dumpScrolls 8044
231
232
233//Dump other Scrolls
234
235if findtype 'reagent satchel' self as satchel
236    foreach dumpScrollID in dumpScrolls
237        // Dump all of held scrolls in dumpScroll list from satchel into storage container
238        if findtype dumpScrollID satchel as scroll and counttype dumpScrollID satchel as scrollCount
239            lift scroll scrollCount
240            drop sourceContainer -1 -1 -1
241            wait globalWaitTime
242        endif
243    endfor
244endif
245
246
247
248//Fill reagents
249
250if findtype 'reagent satchel' self as satchel
251    foreach reagentID in Reagents
252        // Dump all of held reagent from satchel into storage container
253        if findtype reagentID satchel as reagent and counttype reagentID satchel as reagentCount
254            lift reagent reagentCount
255            drop sourceContainer -1 -1 -1
256            wait globalWaitTime
257        endif
258        
259        // Pickup the amount we want from storage container
260        if findtype reagentID sourceContainer as getReagent
261            lift getReagent requiredReagentCount
262            drop satchel -1 -1 -1
263            wait globalWaitTime
264        endif
265    endfor
266endif
267
268//Fill Scrolls
269
270if findtype 'reagent satchel' self as satchel
271    foreach ScrollID in Scrolls
272        // Dump all of held scroll from satchel into storage container
273        if findtype ScrollID satchel as scroll and counttype ScrollID satchel as ScrollCount
274            lift scroll ScrollCount
275            drop sourceContainer -1 -1 -1
276            wait globalWaitTime
277        endif
278        
279        // Pickup the amount we want from storage container
280        if findtype ScrollID sourceContainer as getScroll
281            lift getScroll requiredScrollCount
282            drop satchel -1 -1 -1
283            wait globalWaitTime
284        endif
285    endfor
286endif