Boss Loot Organizer Bot by oakman8490
Description from the author:
// "Oaks [KoU] Boss Loot Organizer Bot"
// This Script has been set up to be used by a bot (preferably with 120 Item ID) to organize and recycle on a loop during Guild Boss Runs
// Has been set up to use 4 different chests, but more could be added with a little effort.
/// 1: High Value Loot - Cores, Skill Scrolls, Explorer Packs, MCD, Redline Bottle, Skill Orbs
/// 2: Medium Value Loot - Distillations, Phylacteries, Carpet, Dyes, Cloth, Harvest Maps
/// 3: Low Value Loot (mostly stackables) - Arcane Scrolls, Plant Chemicals, Gold
/// 4: Officer Loot - Boss Tokens, Treasure Maps, Research Materials
// Bot will need access to all the chests, so if some are officer only, the bot will need those privileges.
// Set variables for the Distribution Chests
@setvar! 'DistroChest1' "0x5FFBCB5B"
@setvar! 'DistroChest2' "0x5FFBB94C"
@setvar! 'DistroChest3' "0x5FFBBF48"
@setvar! 'DistroChest4' "0x42884825"
// Set variables for the Magic Item Recyclers
@setvar! 'MagicRecycler1' "0x5FFBDD03"
@setvar! 'MagicRecycler2' "0x41C3AE90"
@setvar! 'MagicRecycler3' "0x5FFBD815"
@setvar! 'MagicRecycler4' "0x4288510F"
// Create item lists if they dont exist
if not listexists 'items'
createlist 'items'
endif
if not listexists 'aspects'
createlist 'aspects'
endif
if not listexists 'skillscrolls'
createlist 'skillscrolls'
endif
// Clear any existing item lists
clearlist 'items'
clearlist 'aspects'
clearlist 'skillscrolls'
@setvar! CurrentChest DistroChest1
@setvar! CurrentRecycler MagicRecycler1
@setvar minwait 200
@dclick DistroChest1
waitforgump 2865667423
gumpclose 2865667423
@dclick DistroChest2
waitforgump 2865667423
gumpclose 2865667423
@dclick DistroChest3
waitforgump 2865667423
gumpclose 2865667423
@dclick DistroChest4
waitforgump 2865667423
gumpclose 2865667423
while not dead
// 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' 'redline bottle'
pushlist 'items' 'folded cloth'
pushlist 'items' 'phylactery'
pushlist 'items' 'chroma core'
pushlist 'items' 'chroma distil'
pushlist 'items' 'research materials'
pushlist 'items' 'blank scroll%s%'
pushlist 'items' 'bottle'
pushlist 'items' 'gold coin'
pushlist 'items' 'cut up leather'
pushlist 'items' 'boss token'
pushlist 'items' 'statue'
pushlist 'items' 'dig tools'
pushlist 'items' 'dungeon seed'
pushlist 'items' 'strong box'
pushlist 'items' 'metal chest'
pushlist 'items' 'chest'
pushlist 'items' 'parchment'
pushlist 'items' 'sandals'
pushlist 'items' 'boots'
pushlist 'items' 'shoes'
pushlist 'items' 'dye bottle'
pushlist 'items' 'seed of renewal'
pushlist 'aspects' 'chroma core'
pushlist 'aspects' 'chroma distil'
pushlist 'aspects' 'aspect core'
pushlist 'aspects' 'flask'
pushlist 'aspects' 'phylactery'
pushlist 'skillscrolls' 'scroll of calling'
foreach item in 'items'
while findtype item CurrentChest
if findtype item CurrentChest as found
getlabel found iname
overhead iname
if inlist 'aspects' 'item'
if hue 'found' = 2263
@setvar! xAxis 21
elseif hue 'found' = 1560
@setvar! xAxis 24
elseif hue 'found' = 2096
@setvar! xAxis 27
elseif hue 'found' = 2087
@setvar! xAxis 30
elseif hue 'found' = 1428
@setvar! xAxis 33
elseif hue 'found' = 1782
@setvar! xAxis 33
elseif hue 'found' = 2155
@setvar! xAxis 36
elseif hue 'found' = 2490
@setvar! xAxis 39
elseif hue 'found' = 2767
@setvar! xAxis 42
elseif hue 'found' = 2615
@setvar! xAxis 45
elseif hue 'found' = 2618
@setvar! xAxis 45
elseif hue 'found' = 2635
@setvar! xAxis 48
elseif hue 'found' = 2843
@setvar! xAxis 51
elseif hue 'found' = 2669
@setvar! xAxis 54
elseif hue 'found' = 2208
@setvar! xAxis 57
elseif hue 'found' = 2086
@setvar! xAxis 57
elseif hue 'found' = 2153
@setvar! xAxis 60
elseif hue 'found' = 2650
@setvar! xAxis 63
elseif hue 'found' = 2241
@setvar! xAxis 66
elseif hue 'found' = 1060
@setvar! xAxis 69
elseif hue 'found' = 2897
@setvar! xAxis 72
elseif hue 'found' = 1790
@setvar! xAxis 75
elseif hue 'found' = 1757
@setvar! xAxis 75
elseif hue 'found' = 2582
@setvar! xAxis 78
elseif hue 'found' = 2599
@setvar! xAxis 78
elseif hue 'found' = 2592
@setvar! xAxis 81
elseif hue 'found' = 1788
@setvar! xAxis 81
elseif hue 'found' = 2503
@setvar! xAxis 84
elseif hue 'found' = 2234
@setvar! xAxis 87
elseif hue 'found' = 0
@setvar! xAxis 100
else
@setvar! xAxis 110
endif
elseif inlist 'skillscrolls' 'item'
if "alchemy" in iname
@setvar! xAxis 20
elseif "animal lore" in iname
@setvar! xAxis 22
elseif "animal taming" in iname
@setvar! xAxis 24
elseif "arms" in iname
@setvar! xAxis 26
elseif "begging" in iname
@setvar! xAxis 28
elseif "blacksmith" in iname
@setvar! xAxis 30
elseif "camping" in iname
@setvar! xAxis 32
elseif "carpentry" in iname
@setvar! xAxis 34
elseif "cartography" in iname
@setvar! xAxis 36
elseif "chivalry" in iname
@setvar! xAxis 38
elseif "cooking" in iname
@setvar! xAxis 40
elseif "detect" in iname
@setvar! xAxis 42
elseif "discordance" in iname
@setvar! xAxis 44
elseif "fishing" in iname
@setvar! xAxis 46
elseif "forensic" in iname
@setvar! xAxis 48
elseif "herding" in iname
@setvar! xAxis 50
elseif "inscription" in iname
@setvar! xAxis 52
elseif "item id" in iname
@setvar! xAxis 54
elseif "lockpicking" in iname
@setvar! xAxis 56
elseif "lumberjacking" in iname
@setvar! xAxis 58
elseif "mining" in iname
@setvar! xAxis 60
elseif "musicianship" in iname
@setvar! xAxis 62
elseif "necro" in iname
@setvar! xAxis 64
elseif "peacemaking" in iname
@setvar! xAxis 66
elseif "poisoning" in iname
@setvar! xAxis 68
elseif "provocation" in iname
@setvar! xAxis 70
elseif "spirit" in iname
@setvar! xAxis 72
elseif "stealth" in iname
@setvar! xAxis 74
elseif "tailoring" in iname
@setvar! xAxis 76
elseif "taste" in iname
@setvar! xAxis 78
elseif "tinkering" in iname
@setvar! xAxis 80
elseif "tracking" in iname
@setvar! xAxis 82
elseif "veterinary" in iname
@setvar! xAxis 84
else
@setvar! xAxis 110
endif
endif
if "research" in iname
lift found 60000
drop 'DistroChest4' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest4' 60 1 1
@ignore found
elseif "oil" in iname
@ignore found
elseif "plant chemicals" in iname
lift found 60000
drop 'DistroChest3' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest3' 100 142 1
@ignore found
elseif "arcane scroll" in iname
lift found 60000
drop 'DistroChest3' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest3' 118 146 1
@ignore found
elseif "coin" in iname
lift found 60000
drop 'DistroChest3' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest3' 1 1 1
@ignore found
elseif "treasure map" in iname
lift found
drop 'DistroChest4' 150 175 1
@ignore found
elseif "skinning map" in iname
lift found
drop 'DistroChest2' 120 110 1
@ignore found
elseif "ore map" in iname
lift found
drop 'DistroChest2' 120 120 1
@ignore found
elseif "lumber map" in iname
lift found
drop 'DistroChest2' 120 130 1
@ignore found
elseif "fishing map" in iname
lift found
drop 'DistroChest2' 120 140 1
@ignore found
elseif "hide" in iname
lift found 60000
drop 'DistroChest3' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest3' 40 1 1
@ignore found
elseif "leather" in iname
lift found 60000
drop 'MagicRecycler3' -1 -1 -1
@ignore found
elseif "token" in iname
lift found 60000
drop 'DistroChest4' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest4' 150 175 1
@ignore found
elseif "survival gear" in iname
lift found 60000
drop 'DistroChest1' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest1' 150 115 1
@ignore found
elseif "redlightning bottle" in iname
lift found 60000
drop 'DistroChest1' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest1' 82 125 1
@ignore found
elseif "carpet tile" in iname
lift found
drop 'DistroChest2' 45 140 1
@ignore found
elseif "rug tile" in iname
lift found
drop 'DistroChest2' 15 140 1
@ignore found
elseif "dye" in iname
lift found 60000
drop 'DistroChest2' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest2' 70 140 1
@ignore found
elseif "Aspect Core" in iname
lift found 60000
drop 'DistroChest1' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest1' xAxis 100 1
@ignore found
elseif "chromatic core" in iname
lift found 60000
drop 'DistroChest1' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest1' xAxis 100 1
@ignore found
elseif "Aspect Distillation" in iname
lift found 60000
drop 'DistroChest2' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest2' xAxis 105 1
@ignore found
elseif "chromatic distillation" in iname
lift found 60000
drop 'DistroChest2' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest2' xAxis 105 1
@ignore found
elseif "mastercrafting" in iname
lift found 60000
drop 'DistroChest1' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest1' 15 125 1
@ignore found
elseif "mastery orb" in iname
lift found 60000
drop 'DistroChest1' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest1' 90 125 1
@ignore found
elseif "mastery" in iname
lift found 60000
drop 'DistroChest1' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest1' xAxis 250 1
@ignore found
elseif "deed" in iname
lift found
drop 'DistroChest2' 50 1 1
@ignore found
elseif "shoe" in iname
lift found 60000
drop 'DistroChest2' 150 150 1
@ignore found
elseif "boot" in iname
lift found 60000
drop 'DistroChest2' 150 150 1
@ignore found
elseif "sandal" in iname
lift found 60000
drop 'DistroChest2' 150 150 1
@ignore found
elseif "cloth" in iname
lift found 60000
drop 'DistroChest2' 100 140 1
@ignore found
elseif "phylactery" in iname
lift found 60000
drop 'DistroChest2' -1 -1 -1
wait minwait
lift found 60000
drop 'DistroChest2' xAxis 125 1
@ignore found
elseif "lesser paragon" in iname
lift found
drop 'DistroChest4' 200 50 1
@ignore found
elseif "greater paragon" in iname
lift found
drop 'DistroChest4' 200 50 1
@ignore found
elseif "paragon" in iname
lift found
drop 'DistroChest4' 200 50 1
@ignore found
elseif "rare seed" in iname
lift found 1
drop 'DistroChest3' 20 140 1
@ignore found
else
lift found 60000
drop 'DistroChest3' -1 -1 -1
@ignore found
endif
endif
// Wait for any queued actions to complete
while queued
// Do nothing while actions are queued
endwhile
endwhile
endfor
dclick 'CurrentRecycler'
if skill "Item Identification" = 120
useskill "Item Identification"
waitfortarget 1000
target 'CurrentRecycler'
else
waitforgump 4045111101
gumpresponse 7 4045111101
endif
waitforgump 4045111101
gumpresponse 6 4045111101
wait 200
gumpresponse 6 4045111101
wait 200
gumpclose
endif
if CurrentChest = DistroChest1
@setvar! CurrentChest DistroChest2
@setvar! CurrentRecycler MagicRecycler2
elseif CurrentChest = DistroChest2
@setvar! CurrentChest DistroChest3
@setvar! CurrentRecycler MagicRecycler3
elseif CurrentChest = DistroChest3
@setvar! CurrentChest DistroChest4
@setvar! CurrentRecycler MagicRecycler4
elseif CurrentChest = DistroChest4
@setvar! CurrentChest DistroChest1
@setvar! CurrentRecycler MagicRecycler1
endif
endwhile// This Script has been set up to be used by a bot (preferably with 120 Item ID) to organize and recycle on a loop during Guild Boss Runs
// Has been set up to use 4 different chests, but more could be added with a little effort.
/// 1: High Value Loot - Cores, Skill Scrolls, Explorer Packs, MCD, Redline Bottle, Skill Orbs
/// 2: Medium Value Loot - Distillations, Phylacteries, Carpet, Dyes, Cloth, Harvest Maps
/// 3: Low Value Loot (mostly stackables) - Arcane Scrolls, Plant Chemicals, Gold
/// 4: Officer Loot - Boss Tokens, Treasure Maps, Research Materials
// Bot will need access to all the chests, so if some are officer only, the bot will need those privileges.








