Back to "storage" tags

Dump all reagents to a container and collect a defined amount to satchel. by Necromunger

Description: 1. Update the amount of reagents you wish to have.

2. Run the script and select the container where you store all of your reagents, like a bag in your bank or chest.

1overhead 'Select main reagent storage.'
2setvar 'sourceContainer'
3
4@setvar! requiredReagentCount 70
5@setvar! globalWaitTime 650
6
7removelist Reagents
8createlist Reagents
9clearignore
10
11// Blood Moss
12@pushlist Reagents 3963
13// Sulfurous Ash
14@pushlist Reagents 3980
15// Mandrake Root's
16@pushlist Reagents 3974
17// Ginseng
18@pushlist Reagents 3973
19// Spider's Silk
20@pushlist Reagents 3981
21// Black Pearl's
22@pushlist Reagents 3962
23// Nightshade
24@pushlist Reagents 3976
25// Garlic
26@pushlist Reagents 3972
27
28if findtype 'reagent satchel' self as satchel
29    foreach reagentID in Reagents
30        // Dump all of held reagent from satchel into storage container
31        if findtype reagentID satchel as reagent and counttype reagentID satchel as reagentCount
32            lift reagent reagentCount
33            drop sourceContainer -1 -1 -1
34            wait globalWaitTime
35        endif
36        
37        // Pickup the amount we want from storage container
38        if findtype reagentID sourceContainer as getReagent
39            lift getReagent requiredReagentCount
40            drop satchel -1 -1 -1
41            wait globalWaitTime
42        endif
43    endfor
44endif