Skip to content
Outlands Hub

Razor script

[DEPRECATED] Sazeracs Dungeon Loot Drop (1-Tile)

by mrdies · 258 lines
Download

Sazeracs Dungeon Loot Drop (v1.0) Script by: Sazerac (Discord: mrdies) Special Thanks: Chinga (Discord: phisn) This script stores dungeon loot from your ActiveLootBag while using nearby storage systems when available. It first sends loot…

CombatBard
DEPRECATED Sazeracs Dungeon Loot Drop 1-Tile.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/a5291867-35e5-4a1c-95fa-4683b990fc82 for latest2# Automation by Jaseowns3## Script: [DEPRECATED] Sazeracs Dungeon Loot Drop (1-Tile)4## Created by: mrdies#05#############################################6 7# Sazeracs Dungeon Loot Drop (v1.0)8# Script by: Sazerac (Discord: mrdies)9# Special Thanks: Chinga (Discord: phisn)10#11# This script stores dungeon loot from your ActiveLootBag while using nearby storage systems when available.12# It first sends loot into supported world storage objects such as a Vault, Recycler, Storage Shelf,13# Tomes, Resource Stockpile, and Magic Item Vault. It then moves remaining special items from your14# backpack into assigned containers for Seeds, Valuables, and Black Market Goods.15#16# Change the ForceDropOffSetup variable to 1 if you want to reselect your ActiveLootBag. [Default: 0]17# Change the ForceStorageSetup variable to 1 if you want to reselect your Seed, Valuable,18# and Black Goods storage containers. [Default: 0]19 20    21@setvar ForceDropOffSetup 022@setvar ForceStorageSetup 023 24 25# If you have problems with first-time setup, delete and retarget your saved variables.26# Primary saved variables used by this script include:27# ActiveLootBag, SeedStorage, ValuableStorage, and BlackGoodsStorage.28# Tome and storage object aliases (such as YourOreTome or YourStockpile) are found during runtime.29#30# You should only need to run setup once, unless you die (resupply), move, or replace one of your assigned containers.31# For this script to work reliably, all referenced storage objects must be within 2 tiles of the player.32# For the script to recognize Tomes, they must be locked down on the ground, not inside containers.33#34# Notes:35# - This script works best with ALL Prev TOMES & CONTAINERS (But many items will still store if your in-item-storage settings are properly tuned.)36# - The script checks for the ActiveLootBag and prompts you to reselect it if it cannot be found.37# - Storage Shelf interactions are repeated multiple times to unload from the selected loot bag.38# - Valuables, Seeds, and Black Market Goods are moved from your backpack into their assigned containers.39# - This script prioritizes Tomes and other supported storage targets when they are present nearby.40#41# Instructions:42# - In an Inn Room or House, ensure all Chests & Prev Storage Containers / Tomes are locked down or secure within two tiles of the player.43# - After a Dungeon Run, run this script and follow the prompts during runtime.44# - It will ask you to set storage containers only for items not captured and stored by Prev Storage Containers / Tomes.45# - Should there still be items left behind, feel free to let me know :)46 47 48if not varexist 'ActiveLootBag' or ForceDropOffSetup = 149   overhead 'Please select the bag where you will be storing your loot.'50   @setvar ActiveLootBag51endif52 53if not find 'ActiveLootBag'54    overhead 'Previous loot bag undetected. Please select a new one.'55   @setvar ActiveLootBag56endif57 58if not varexist 'SeedStorage' or ForceStorageSetup = 1;59   overhead 'Please select the container where you will store Seeds.'60   @setvar SeedStorage61endif62 63if not find 'SeedStorage' ground64   overhead 'Previous Seed Storage undetected. Please select a new one.'65   @setvar SeedStorage66endif67 68if not varexist 'ValuableStorage' or ForceStorageSetup = 1;69   overhead 'Please select the container where you will store Valuables.'70   @setvar ValuableStorage71endif72 73if not find 'ValuableStorage' ground74   overhead 'Previous Valuable Storage undetected. Please select a new one.'75   @setvar ValuableStorage76endif77 78if not varexist 'BlackGoodsStorage' or ForceStorageSetup = 1;79   overhead 'Please select the container where you will store Black Goods.'80   @setvar BlackGoodsStorage81endif82 83if not find 'BlackGoodsStorage' ground84   overhead 'Previous Black Goods Storage undetected. Please select a new one.'85   @setvar BlackGoodsStorage86endif87 88if varexist ActiveLootBag89   overhead 'Lootbag Found.'90 91   wait 15092 93    if findtype 'bank deposit safe' ground as 'YourVault'94       overhead 'Vault Found.' 5095       menu 'YourVault' 096    endif97 98    wait 15099 100    if findtype 'magic item recycler' ground as 'YourRecycler'101       overhead 'Recycler Found.' 50102       menu 'YourRecycler' 1103    endif104 105    wait 150106 107    if findtype 'storage shelf' ground as 'YourShelf'108       overhead 'Storage Shelf Found.' 50109       menu 'YourShelf' 0110       wft111       target 'ActiveLootBag'112       waitforgump 3232825965113       gumpclose114       115       wait 150116       117       menu 'YourShelf' 0118       wft119       target 'ActiveLootBag'120       waitforgump 3232825965121       gumpclose122       123       wait 150   124       125       menu 'YourShelf' 0126       wft127       target 'ActiveLootBag'128       waitforgump 3232825965129       gumpclose130       131       wait 150   132       133       menu 'YourShelf' 0134       wft135       target 'ActiveLootBag'136       waitforgump 3232825965137       gumpclose138    endif139 140    wait 150141 142    if findtype 29104 ground 2618 -1 2 as 'YourAspectTome'143       overhead 'Tomes Found.' 50144       menu 'YourAspectTome' 0145    endif146 147    if findtype 29104 ground 1495 -1 2 as 'YourClothTome'148        overhead 'Cloth Tome Found.' 50149       menu 'YourClothTome' 0150    endif151 152    if findtype 29104 ground 1494 -1 2 as 'YourDyeTome'153       overhead 'Dye Tome Found.' 50154       menu 'YourDyeTome' 0155    endif156 157    if findtype 29104 ground 2799 -1 2 as 'YourLumberTome'158       overhead 'Lumber Tome Found.' 50159       menu 'YourLumberTome' 0160    endif161 162    if findtype 29104 ground 2796 -1 2 as 'YourOreTome'163       overhead 'Ore Tome Found.' 50164       menu 'YourOreTome' 0165    endif166 167    if findtype 29104 ground 2651 -1 2 as 'YourSkinningTome'168       overhead 'Skinning Tome Found.' 50169       menu 'YourSkinningTome' 0170    endif171 172    if findtype 29104 ground 2722 -1 2 as 'YourFishingTome'173       overhead 'Fishing Tome Found.' 50174       menu 'YourFishingTome' 0175    endif176 177    if findtype 29104 ground 2990 -1 2 as 'YourTreasureTome'178       overhead 'Treasure Tome Found.' 50179       menu 'YourTreasureTome' 0180    endif181 182    if findtype 29104 ground 2991 -1 2 as 'YourLinkTome'183       overhead 'Mastery Chain Link Tome Found.' 50184       menu 'YourLinkTome' 0185    endif186 187    if findtype 29104 ground 2877 -1 2 as 'YourShipTome'188       overhead 'Ship Upgrade Tome Found.' 50189       menu 'YourShipTome' 0190    endif191 192    if findtype 29104 ground 2141 -1 2 as 'YourCardTome'193       overhead 'Collectible Card Tome Found.' 50194       menu 'YourCardTome' 0195    endif196 197    if findtype 29104 ground 2227 -1 2 as 'YourSpellTome'198       overhead 'Spell Scroll Tome Found.' 50199       menu 'YourSpellTome' 0200    endif201    202    if findtype 29104 ground 2963 -1 2 as 'YourSkillTome'203       overhead 'Skill Scroll Tome Found.' 50204    menu 'YourSkillTome' 0205    endif206 207    if findtype 29104 ground 2085 -1 2 as 'YourArcaneRuneTome'208       overhead 'Arcane Rune Tome Found.' 50209       menu 'YourArcaneRuneTome' 0210    endif211 212    wait 150213 214    if findtype 'resource container' ground as 'YourStockpile'215       overhead 'Resource Stockpile Found.' 50216       menu 'YourStockpile' 0217       wft218       target 'ActiveLootBag'219    endif220 221    wait 150222 223    if findtype 'sm magic item vault' ground as 'YourMagicItemVault'224        overhead 'Magic Item Vault Found.' 50225       menu 'YourMagicItemVault' 0226       wft227       target 'ActiveLootBag'228    endif229    230    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 YourValuables231       overhead 'Storing Other Valuables.'232       @drop backpack233       lift YourValuables 60000234       wait 250235       drop ValuableStorage -1 -1 0236       wait 500237    endwhile238    239    while findtype 'black market goods' backpack as YourBlackGoods240        overhead 'Storing Black Market Goods.'241       @drop backpack242       lift YourBlackGoods 60000243       wait 250244       drop BlackGoodsStorage -1 -1 0245       wait 500246    endwhile247 248    while findtype 'seed of renewal' backpack as YourSeeds249       overhead 'Storing Seeds.'250       @drop backpack251       lift YourSeeds 60000252       wait 250253       drop SeedStorage -1 -1 0254       wait 500255    endwhile256 257    overhead 'All loot has been stored.'258endif