Boss Loot Organizer by fox6395
Description: This script is customized to my guild's handling of boss loot distribution.
The script will ask you to select 2 containers (variables), and then it will do its job.
I recommend to select 2 different distro chests, or 1 distro chest + 1 other secure. This script will drop most boss loot into specific locations within the container for great visibility, and will not stack most items (like cores, distills, skill orbs, MCDs, etc.).
It is a good base for you to customize if you want to handle things differently.
1// Clear any ignored items, made by Reshtel, Fox, barryroser, and ChatGPT.
2clearignore
3
4// Set variables for the destination chests
5setvar 'DistroChestToBossResults'
6setvar 'DistroChestForGuild'
7
8// Create item lists if they don't exist
9if not listexists 'items'
10 createlist 'items'
11endif
12
13if not listexists 'stackitems'
14 createlist 'stackitems'
15endif
16
17// Clear any existing item lists
18clearlist 'stackitems'
19clearlist 'items'
20
21// Loot Items not to stack
22pushlist 'items' 'aspect core'
23pushlist 'items' 'flask'
24pushlist 'items' 'Book of Truth'
25pushlist 'items' 'scroll of calling'
26pushlist 'items' 'map'
27pushlist 'items' 'void orb'
28pushlist 'items' 'spell hue deed'
29pushlist 'items' 'carpet'
30pushlist 'items' 'folded cloth'
31pushlist 'items' 'phylactery'
32pushlist 'items' 'chroma core'
33pushlist 'items' 'chroma distil'
34
35// Loot Items TO STACK
36pushlist 'stackitems' 'research materials'
37pushlist 'stackitems' 'blank scroll%s%'
38pushlist 'stackitems' 'bottle'
39pushlist 'stackitems' 'gold coin'
40pushlist 'stackitems' 'cut up leather'
41pushlist 'stackitems' 'boss token'
42pushlist 'stackitems' 'statue'
43pushlist 'stackitems' 'dig tools'
44pushlist 'stackitems' 'rune'
45
46// Handle stackable items
47foreach item in 'stackitems'
48 while findtype item backpack
49 if findtype item backpack as found
50 getlabel found iname
51 overhead iname
52
53 if research in iname
54 lift found 60000
55 drop 'DistroChestForGuild' 60 1 1
56
57 elseif oil in iname
58 ignore found
59
60 elseif arcane in iname
61 lift found 60000
62 drop 'DistroChestToBossResults' 150 125 1
63
64 elseif plant in iname
65 lift found 60000
66 drop 'DistroChestToBossResults' 1 100 1
67
68 elseif coin in iname
69 lift found 60000
70 drop 'DistroChestForGuild' 1 1 1
71
72 elseif hide in iname
73 lift found 60000
74 drop 'DistroChestToBossResults' 40 175 1
75
76 elseif token in iname
77 lift found 60000
78 drop 'DistroChestForGuild' 150 175 1
79
80 elseif survival in iname
81 lift found 60000
82 drop 'DistroChestForGuild' 60 175 1
83
84 elseif rune in iname
85 lift found 60000
86 drop 'DistroChestForGuild' 1 175 1
87
88 elseif dye in iname
89 lift found 60000
90 drop 'DistroChestToBossResults' 20 1 1
91
92 else
93 ignore found
94 endif
95 endif
96
97 // Wait for any queued actions to complete
98 while queued
99 // Do nothing while actions are queued
100 endwhile
101 endwhile
102endfor
103
104// Clear ignored items
105clearignore
106
107// Handle non-stackable items
108foreach item in 'items'
109 while findtype item backpack
110 if findtype item backpack as found
111 getlabel found iname
112 overhead iname
113
114 if Core in iname
115 lift found
116 drop 'DistroChestToBossResults' 125 1 1
117
118 elseif oil in iname
119 ignore found
120
121 elseif Distillation in iname
122 lift found
123 drop 'DistroChestToBossResults' 105 1 1
124
125 elseif mastercrafting in iname
126 lift found
127 drop 'DistroChestToBossResults' 1 175 1
128
129 elseif orb in iname
130 lift found
131 drop 'DistroChestToBossResults' 92 175 1
132
133 elseif mastery in iname
134 lift found
135 drop 'DistroChestToBossResults' 105 175 1
136
137 elseif map in iname
138 lift found
139 drop 'DistroChestToBossResults' 150 175 1
140
141 elseif deed in iname
142 lift found
143 drop 'DistroChestToBossResults' 50 1 1
144
145 elseif carpet in iname
146 lift found
147 drop 'DistroChestToBossResults' 65 175 1
148
149 elseif cloth in iname
150 lift found
151 drop 'DistroChestToBossResults' 75 1 1
152
153 elseif phylactery in iname
154 lift found
155 drop 'DistroChestToBossResults' 85 1 1
156
157 elseif chromatic in iname
158 lift found
159 drop 'DistroChestToBossResults' 135 1 1
160
161 else
162 lift found
163 drop 'DistroChestToBossResults' 1 1 1
164 endif
165 endif
166
167 // Wait for any queued actions to complete
168 while queued
169 // Do nothing while actions are queued
170 endwhile
171 endwhile
172endfor
173
174// Clear ignored items
175clearignore