Sazeracs Boating Loot Drop (1-Tile - Shipping Crate) [TESTING - NOT SHIPPED] by mrdies
# Sazeracs Boating Loot Drop (v1.0)
# Script by: Sazerac (Discord: mrdies)
# Special Thanks: Chinga (Discord: phisn)
#
# This script stores boating loot from your ActiveShippingCrate while using nearby storage systems when available.
# It first sends loot into supported world storage objects such as a Vault, Recycler, Storage Shelf,
# Tomes, Resource Stockpile, and Magic Item Vault. It also deposits gold and doubloons from the
# shipping crate into a nearby Bank Deposit Safe when one is present. It then moves remaining special
# items from your backpack into assigned containers for Seeds, Valuables, and Black Market Goods.
#
# Change the ForceDropOffSetup variable to 1 if you want to reselect your ActiveShippingCrate. [Default: 0]
# Change the ForceStorageSetup variable to 1 if you want to reselect your Seed, Valuable,
# and Black Goods storage containers. [Default: 0]
@setvar ForceDropOffSetup 0
@setvar ForceStorageSetup 0
# If you have problems with first-time setup, delete and retarget your saved variables.
# Primary saved variables used by this script include:
# ActiveShippingCrate, SeedStorage, ValuableStorage, and BlackGoodsStorage.
# Tome and storage object aliases (such as YourOreTome or YourStockpile) are found during runtime.
#
# You should only need to run setup once, unless you die (resupply), move, or replace one of your assigned containers.
# For this script to work reliably, all referenced storage objects must be within 2 tiles of the player.
# For the script to recognize Tomes, they must be locked down on the ground, not inside containers.
#
# Notes:
# - This script works best with ALL Prev TOMES & CONTAINERS (But many items will still store if your in-item-storage settings are properly tuned.)
# - The script uses an assigned shipping crate as the primary loot source.
# - Gold coins and doubloons are moved from the shipping crate into a nearby Bank Deposit Safe when available.
# - Storage Shelf interactions are repeated multiple times to unload from the selected shipping crate.
# - Valuables, Seeds, and Black Market Goods are moved from your backpack into their assigned containers.
# - This script prioritizes Tomes and other supported storage targets when they are present nearby.
#
# Instructions:
# - In an Inn Room or House, ensure all Chests & Prev Storage Containers / Tomes are locked down or secure within two tiles of the player.
# - After a Boating Run, run this script and follow the prompts during runtime.
# - Select the Shipping Crate placed in your Inn or Home (Shipping Crate Tile) while still within the two-tile range.
# - It will ask you to set storage containers only for items not captured and stored by Prev Storage Containers / Tomes.
# - If this script doesn't completely store your items, please run my connected (Sazeracs Dungeon Loot Drop) script afterward.
# - Should there still be items left behind, feel free to let me know :)
if not varexist 'ActiveShippingCrate' or ForceDropOffSetup = 1
overhead 'Please select the shipping crate.'
@setvar ActiveShippingCrate
endif
if not varexist 'SeedStorage' or ForceStorageSetup = 1;
overhead 'Please select the container where you will store Seeds.'
@setvar SeedStorage
endif
if not find 'SeedStorage' ground
overhead 'Previous Seed Storage undetected. Please select a new one.'
@setvar SeedStorage
endif
if not varexist 'ValuableStorage' or ForceStorageSetup = 1;
overhead 'Please select the container where you will store Valuables.'
@setvar ValuableStorage
endif
if not find 'ValuableStorage' ground
overhead 'Previous Valuable Storage undetected. Please select a new one.'
@setvar ValuableStorage
endif
if not varexist 'BlackGoodsStorage' or ForceStorageSetup = 1;
overhead 'Please select the container where you will store Black Goods.'
@setvar BlackGoodsStorage
endif
if not find 'BlackGoodsStorage' ground
overhead 'Previous Black Goods Storage undetected. Please select a new one.'
@setvar BlackGoodsStorage
endif
if varexist ActiveShippingCrate
overhead 'Shipping Crate Found.'
wait 150
if findtype 3645|3644 ground 0 any 2 as 'ActiveShippingCrate'
overhead 'Found Shipping Crate.' 18
dclick 'ActiveShippingCrate'
wait 250
if findtype 'bank deposit safe' ground any any 2 as safe
overhead 'Found Safe.'
while findtype 'gold coin' shippingcrate as YourGold
overhead 'Depositing gold.'
@drop backpack
lift YourGold 60000
wait 250
drop safe -1 -1 0
wait 500
endwhile
while findtype 'doubloon' shippingcrate as YourDoubloons
overhead 'Depositing dubs'
@drop backpack
lift YourDoubloons 60000
wait 250
drop safe -1 -1 0
wait 500
endwhile
else
overhead 'Did not find safe.'
endif
endif
wait 150
if findtype 'storage shelf' ground as 'YourShelf'
overhead 'Storage Shelf Found.' 50
menu 'YourShelf' 0
wft
target 'ActiveShippingCrate'
waitforgump 3232825965
gumpclose
wait 150
menu 'YourShelf' 0
wft
target 'ActiveShippingCrate'
waitforgump 3232825965
gumpclose
wait 150
menu 'YourShelf' 0
wft
target 'ActiveShippingCrate'
waitforgump 3232825965
gumpclose
wait 150
menu 'YourShelf' 0
wft
target 'ActiveShippingCrate'
waitforgump 3232825965
gumpclose
endif
wait 150
if findtype 'magic item recycler' ground as 'YourRecycler'
overhead 'Recycler Found.' 50
dclick 'YourRecycler'
waitforgump 4045111101
gumpresponse 3
waitfortarget
target 'ActiveShippingCrate'
endif
wait 150
if findtype 3644 ground 0 any 2
lifttype 3644 1 ground
drop backpack
endif
if findtype 3645 ground 0 any 2
lifttype 3645 1 ground
drop backpack
endif
wait 150
if findtype 'bank deposit safe' ground as 'YourVault'
overhead 'Vault Found.' 50
menu 'YourVault' 0
endif
wait 150
if findtype 'sm magic item vault' ground as 'YourMagicItemVault'
overhead 'Magic Item Vault Found.' 50
menu 'YourMagicItemVault' 0
wft
target 'ActiveShippingCrate'
endif
wait 150
if findtype 29104 ground 2618 -1 2 as 'YourAspectTome'
overhead 'Tomes Found.' 50
menu 'YourAspectTome' 0
endif
if findtype 29104 ground 1495 -1 2 as 'YourClothTome'
overhead 'Cloth Tome Found.' 50
menu 'YourClothTome' 0
endif
if findtype 29104 ground 1494 -1 2 as 'YourDyeTome'
overhead 'Dye Tome Found.' 50
menu 'YourDyeTome' 0
endif
if findtype 29104 ground 2799 -1 2 as 'YourLumberTome'
overhead 'Lumber Tome Found.' 50
menu 'YourLumberTome' 0
endif
if findtype 29104 ground 2796 -1 2 as 'YourOreTome'
overhead 'Ore Tome Found.' 50
menu 'YourOreTome' 0
endif
if findtype 29104 ground 2651 -1 2 as 'YourSkinningTome'
overhead 'Skinning Tome Found.' 50
menu 'YourSkinningTome' 0
endif
if findtype 29104 ground 2722 -1 2 as 'YourFishingTome'
overhead 'Fishing Tome Found.' 50
menu 'YourFishingTome' 0
endif
if findtype 29104 ground 2990 -1 2 as 'YourTreasureTome'
overhead 'Treasure Tome Found.' 50
menu 'YourTreasureTome' 0
endif
if findtype 29104 ground 2991 -1 2 as 'YourLinkTome'
overhead 'Mastery Chain Link Tome Found.' 50
menu 'YourLinkTome' 0
endif
if findtype 29104 ground 2877 -1 2 as 'YourShipTome'
overhead 'Ship Upgrade Tome Found.' 50
menu 'YourShipTome' 0
endif
if findtype 29104 ground 2141 -1 2 as 'YourCardTome'
overhead 'Collectible Card Tome Found.' 50
menu 'YourCardTome' 0
endif
if findtype 29104 ground 2227 -1 2 as 'YourSpellTome'
overhead 'Spell Scroll Tome Found.' 50
menu 'YourSpellTome' 0
endif
if findtype 29104 ground 2963 -1 2 as 'YourSkillTome'
overhead 'Skill Scroll Tome Found.' 50
menu 'YourSkillTome' 0
endif
if findtype 29104 ground 2085 -1 2 as 'YourArcaneRuneTome'
overhead 'Arcane Rune Tome Found.' 50
menu 'YourArcaneRuneTome' 0
endif
wait 150
if findtype 'magic item recycler' ground as 'YourRecycler'
overhead 'Recycler Found.' 50
menu 'YourRecycler' 1
endif
wait 150
if findtype 'resource container' ground as 'YourStockpile'
overhead 'Resource Stockpile Found.' 50
menu 'YourStockpile' 0
wft
target 'ActiveShippingCrate'
endif
while findtype 'gem|carpet|void orb|chroma core|chroma distil|research materials|colonial marks|bag of gems|card|soul jar|candy corn|red envelope|hunting permit|spell hue deed|redline bottle|3712|3648|3650|3708|3648|2475|3649|29833|29832|8454|8455|27612|2463|2508|7710|5192|19199|29086|29077|17083|15178|19822|58326' backpack as YourValuables
overhead 'Storing Other Valuables.'
@drop backpack
lift YourValuables 60000
wait 250
drop ValuableStorage -1 -1 0
wait 500
endwhile
while findtype 'black market goods' backpack as YourBlackGoods
overhead 'Storing Black Market Goods.'
@drop backpack
lift YourBlackGoods 60000
wait 250
drop BlackGoodsStorage -1 -1 0
wait 500
endwhile
while findtype 'seed of renewal' backpack as YourSeeds
overhead 'Storing Seeds.'
@drop backpack
lift YourSeeds 60000
wait 250
drop SeedStorage -1 -1 0
wait 500
endwhile
overhead 'All loot has been stored.'
endif








