Back to "snippet" tags

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.

// Clear any ignored items, made by Reshtel, Fox, barryroser, and ChatGPT. clearignore // Set variables for the destination chests setvar 'DistroChestToBossResults' setvar 'DistroChestForGuild' // Create item lists if they don't exist if not listexists 'items' createlist 'items' endif if not listexists 'stackitems' createlist 'stackitems' endif // Clear any existing item lists clearlist 'stackitems' clearlist 'items' // Loot Items not to stack pushlist 'items' 'aspect core' pushlist 'items' 'flask' pushlist 'items' 'Book of Truth' pushlist 'items' 'scroll of calling' pushlist 'items' 'map' pushlist 'items' 'void orb' pushlist 'items' 'spell hue deed' pushlist 'items' 'carpet' pushlist 'items' 'folded cloth' pushlist 'items' 'phylactery' pushlist 'items' 'chroma core' pushlist 'items' 'chroma distil' // Loot Items TO STACK pushlist 'stackitems' 'research materials' pushlist 'stackitems' 'blank scroll%s%' pushlist 'stackitems' 'bottle' pushlist 'stackitems' 'gold coin' pushlist 'stackitems' 'cut up leather' pushlist 'stackitems' 'boss token' pushlist 'stackitems' 'statue' pushlist 'stackitems' 'dig tools' pushlist 'stackitems' 'rune' // Handle stackable items foreach item in 'stackitems' while findtype item backpack if findtype item backpack as found getlabel found iname overhead iname if research in iname lift found 60000 drop 'DistroChestForGuild' 60 1 1 elseif oil in iname ignore found elseif arcane in iname lift found 60000 drop 'DistroChestToBossResults' 150 125 1 elseif plant in iname lift found 60000 drop 'DistroChestToBossResults' 1 100 1 elseif coin in iname lift found 60000 drop 'DistroChestForGuild' 1 1 1 elseif hide in iname lift found 60000 drop 'DistroChestToBossResults' 40 175 1 elseif token in iname lift found 60000 drop 'DistroChestForGuild' 150 175 1 elseif survival in iname lift found 60000 drop 'DistroChestForGuild' 60 175 1 elseif rune in iname lift found 60000 drop 'DistroChestForGuild' 1 175 1 elseif dye in iname lift found 60000 drop 'DistroChestToBossResults' 20 1 1 else ignore found endif endif // Wait for any queued actions to complete while queued // Do nothing while actions are queued endwhile endwhile endfor // Clear ignored items clearignore // Handle non-stackable items foreach item in 'items' while findtype item backpack if findtype item backpack as found getlabel found iname overhead iname if Core in iname lift found drop 'DistroChestToBossResults' 125 1 1 elseif oil in iname ignore found elseif Distillation in iname lift found drop 'DistroChestToBossResults' 105 1 1 elseif mastercrafting in iname lift found drop 'DistroChestToBossResults' 1 175 1 elseif orb in iname lift found drop 'DistroChestToBossResults' 92 175 1 elseif mastery in iname lift found drop 'DistroChestToBossResults' 105 175 1 elseif map in iname lift found drop 'DistroChestToBossResults' 150 175 1 elseif deed in iname lift found drop 'DistroChestToBossResults' 50 1 1 elseif carpet in iname lift found drop 'DistroChestToBossResults' 65 175 1 elseif cloth in iname lift found drop 'DistroChestToBossResults' 75 1 1 elseif phylactery in iname lift found drop 'DistroChestToBossResults' 85 1 1 elseif chromatic in iname lift found drop 'DistroChestToBossResults' 135 1 1 else lift found drop 'DistroChestToBossResults' 1 1 1 endif endif // Wait for any queued actions to complete while queued // Do nothing while actions are queued endwhile endwhile endfor // Clear ignored items clearignore