Bapeth's One-Tile Item Dumper by barryroser
Description from the author:
# Bapeths One Tile Item Dump & Restock
#
# November 23st 2025 - Added feature that will exempt up to 3 magical items from depot into the Magic Item Vault, Added Memory Wipe feature to easily reset all loot drop containers
#
# "What it does"
# Recall to your house warp tile (do not use recall feature if you live at an Inn)
# Repair Items
# Quickly dump and sort all items you acquire while adventuring in Outlands
# Restock from your current storage shelf profile
# Cast Reactive Armor and Magic Reflection if user has enough Magery/Mana
# Restock ID wands if enabled (Container or Regular)
# Restock Rage Runes if harpooning on ships
#
# "READ THIS"
#
# "Container Select"
# When you run the script for the first time you will be asked to select three loot containers "First Loot Container", "Second Loot Container", and "Third Loot Container" - These containers are for storing loot
# You will also be asked to select a "Wand Container" - This is for the optional ID wand loadout restocker
# It is recommended to not fill any containers up to maximum capacity - leave some space
#
# "Exempt Magic Items from Magic Item Vault and Change Wand Type"
# If you wish to select up the three expemt magic items from the Magic Item Vault, as well as use the ID Wand restocker, "Open The Atlas" and play the script to activate the selector feature - You must also keep your "Wand Container" stocked with ID Wands and/or Container ID wands
# Type "[Atlas" in game to spawn a free weightless "Atlas" in your bag
#
# "Full varible reset"
# If an error has occured while the script is setting containers go into "WARMODE + Open the Party Menu" then play the script to wipe all varible memory and start fresh
#
# "Auto Loot Control"
# This script uses razor "Auto-Queue Object Delay" setting
# Make sure this setting is turned ON in the razor Options tab > Targeting & Queues sub-tab
# Set "object delay to 503"
#
# "For Houses:"
# You must have the "Warp Tile unlocked" and marked within 2 tiles of all storage items
# Your house rune must be named "House" in your runebook/tome
# "Peace Mode" Will recall to your dump & restock spot and proceed to dump & restock.
# "War Mode" Recall is blocked, the script assumes you are already in range of your containers and proceeds to dump & restock
#
# "For Inn Rooms:"
# If you use an Inn room make sure you do not have a rune named "House" anywhere in your backpack
# Stand within 2 tiles of all storage items and play the script
#
# "Note on Harpooners"
# If you have more than 80 fishing and 80 tactics the script will add 3x "Rage Runes" to your loadout - used for melee damage on ships
#
# "***REQUIRED***"
#
# Items this script uses are as follows:
#
# Do not put any of these items inside containers, although some of them may work while in secure containers
# All of these items should be locked down/secured in your inn room or house
# Arrange these items so that your character can reach them from your house rune spot/inn room warp point "within 2 tiles"
# Ensure that only one of each special storage item exists within 2 tiles of your charater when playing the script for the first time
#
# "Four secured containers of any kind" - locked down and secured in your house/inn room
# "A rare cloth tome"
# "A dyes tome"
# "An arcane rune tome"
# "A treasure map tome"
# "A ship upgrade tome"
# "A skill mastery tome"
# "A collectable card tome"
# "An ore map tome"
# "A skinning map tome"
# "A lumber map tome"
# "A fishing map tome"
# "A storage shelf"
# "A bank deposit box"
# "A garden shelf"
# "A resource stockpile" - Set this to accept Aspect Items ("Important!")
# "A magic item recycler"
# "A magic item vault"
# "A repair bench" - Keep this topped up with repair charges
# "A flooring rack"
# "A rune tome/book" - With a rune named "House" marked to your dump & restock spot ("Important!")
#
# Note: The script will make use of all the items listed above - If you do not have one or more of these items the script can still be used
#
# Script starts here...
@clearignore
if warmode and gumpexists 3527489586
gumpclose 3527489586
overhead "VARIBLE RESET..." 38
if varexist lootchestdump
@unsetvar lootchestdump
endif
if varexist lootchestdump2
@unsetvar lootchestdump2
endif
if varexist lootchestdump3
@unsetvar lootchestdump3
endif
if varexist wandcontainer
@unsetvar wandcontainer
endif
if varexist rareclothtome
@unsetvar "rareclothtome"
endif
if varexist flooringrack
@unsetvar "flooringrack"
endif
if varexist dyestome
@unsetvar "dyestome"
endif
if varexist arcanerunetome
@unsetvar "arcanerunetome"
endif
if varexist treasuremaptome
@unsetvar "treasuremaptome"
endif
if varexist shipupgradetome
@unsetvar "shipupgradetome"
endif
if varexist skillmasterytome
@unsetvar "skillmasterytome"
endif
if varexist collectablecardtome
@unsetvar "collectablecardtome"
endif
if varexist oremaptome
@unsetvar "oremaptome"
endif
if varexist skinningmaptome
@unsetvar "skinningmaptome"
endif
if varexist lumbermaptome
@unsetvar "lumbermaptome"
endif
if varexist fishingmaptome
@unsetvar "fishingmaptome"
endif
if varexist repbench
@unsetvar "repbench"
endif
if varexist deposafe
@unsetvar "deposafe"
endif
if varexist myshelf
@unsetvar "myshelf"
endif
if varexist gardenshelf
@unsetvar "gardenshelf"
endif
if varexist respile
@unsetvar "respile"
endif
if varexist magicrecycler
@unsetvar "magicrecycler"
endif
if varexist magicchest
@unsetvar "magicchest"
endif
overhead "MEMORY WIPED..." 38
pause 2000
endif
if not varexist rareclothtome
if findtype "book" ground 1495 -1 2 as book
@setvar "rareclothtome" book
endif
endif
if not varexist flooringrack
if findtype "carpet rack" ground -1 -1 2 as book
@setvar "flooringrack" book
endif
endif
if not varexist dyestome
if findtype "book" ground 1494 -1 2 as book
@setvar "dyestome" book
endif
endif
if not varexist arcanerunetome
if findtype "book" ground 2085 -1 2 as book
@setvar "arcanerunetome" book
endif
endif
if not varexist treasuremaptome
if findtype "book" ground 2990 -1 2 as book
@setvar "treasuremaptome" book
endif
endif
if not varexist shipupgradetome
if findtype "book" ground 2877 -1 2 as book
@setvar "shipupgradetome" book
endif
endif
if not varexist skillmasterytome
if findtype "book" ground 2963 -1 2 as book
@setvar "skillmasterytome" book
endif
endif
if not varexist collectablecardtome
if findtype "book" ground 2141 -1 2 as book
@setvar "collectablecardtome" book
endif
endif
if not varexist oremaptome
if findtype "book" ground 2796 -1 2 as book
@setvar "oremaptome" book
endif
endif
if not varexist skinningmaptome
if findtype "book" ground 2651 -1 2 as book
@setvar "skinningmaptome" book
endif
endif
if not varexist lumbermaptome
if findtype "book" ground 2799 -1 2 as book
@setvar "lumbermaptome" book
endif
endif
if not varexist fishingmaptome
if findtype "book" ground 2722 -1 2 as book
@setvar "fishingmaptome" book
endif
endif
if not varexist repbench
if findtype "repair bench" ground -1 -1 2 as rbench
@setvar "repbench" rbench
endif
endif
if not varexist deposafe
if findtype "bank deposit safe" ground -1 -1 2 as bsafe
@setvar "deposafe" bsafe
endif
endif
if not varexist myshelf
if findtype "storage shelf" ground -1 -1 2 as shelf
@setvar "myshelf" shelf
endif
endif
if not varexist gardenshelf
if findtype "barrel planter shelf|garden shelf" ground -1 -1 2 as gshelf
@setvar "gardenshelf" gshelf
endif
endif
if not varexist respile
if findtype "resource container" ground -1 -1 2 as pile
@setvar "respile" pile
endif
endif
if not varexist magicrecycler
if findtype "magic item recycler|ornate elven chest" ground -1 -1 2 as recycle
@setvar "magicrecycler" recycle
endif
endif
if not varexist magicchest
if findtype "sm magic item vault|magic item chest" ground -1 -1 2 as mchest
@setvar "magicchest" mchest
endif
endif
if not varexist lootchestdump
hotkey "Cancel Current Target"
hotkey "Set Last Target"
wft 1000
while targetexists
if not timerexists lootcontainerselect
createtimer lootcontainerselect
settimer lootcontainerselect 4500
elseif timer lootcontainerselect >= 4500
settimer lootcontainerselect 0
overhead "Set First Loot Container" 63
endif
endwhile
@setvar "lootchestdump" lasttarget
overhead "First Container Set" 63
if timerexists lootcontainerselect
settimer lootcontainerselect 4500
endif
endif
if not varexist lootchestdump2
hotkey "Cancel Current Target"
hotkey "Set Last Target"
wft 1000
while targetexists
if not timerexists lootcontainerselect
createtimer lootcontainerselect
elseif timer lootcontainerselect >= 4500
settimer lootcontainerselect 0
overhead "Set Second Loot Container" 55
endif
endwhile
@setvar "lootchestdump2" lasttarget
overhead "Second Container Set" 55
if timerexists lootcontainerselect
settimer lootcontainerselect 4500
endif
endif
if not varexist lootchestdump3
hotkey "Cancel Current Target"
hotkey "Set Last Target"
wft 1000
while targetexists
if not timerexists lootcontainerselect
createtimer lootcontainerselect
elseif timer lootcontainerselect >= 4500
settimer lootcontainerselect 0
overhead "Set Third Loot Container" 39
endif
endwhile
@setvar "lootchestdump3" lasttarget
overhead "Third Loot Container Set" 39
if timerexists lootcontainerselect
settimer lootcontainerselect 4500
endif
endif
if not varexist wandcontainer
hotkey "Cancel Current Target"
hotkey "Set Last Target"
wft 1000
while targetexists
if not timerexists lootcontainerselect
createtimer lootcontainerselect
elseif timer lootcontainerselect >= 4500
settimer lootcontainerselect 0
overhead "Set Wand Container" 88
endif
endwhile
@setvar "wandcontainer" lasttarget
overhead "Wand Container Set" 88
if timerexists lootcontainerselect
removetimer lootcontainerselect
endif
endif
if gumpexists 341416395
hotkey "Cancel Current Target"
gumpclose 341416395
if varexist regwand
@unsetvar regwand
endif
if varexist conwand
@unsetvar conwand
endif
if varexist saveitem1
@unsetvar saveitem1
endif
if varexist saveitem2
@unsetvar saveitem2
endif
if varexist saveitem3
@unsetvar saveitem3
endif
pause 250
hotkey "Set Last Target"
wft 1000
while targetexists
if not timerexists wandselect
createtimer wandselect
settimer wandselect 4500
elseif timer wandselect >= 4500
settimer wandselect 0
overhead "Select wand type for loadout" 53
overhead "Select backpack for no wand" 78
endif
endwhile
pause 250
getlabel lasttarget desc
if "backpack" in desc
overhead "No Wand Set!" 88
elseif "container" in desc
@setvar conwand lasttarget
overhead "Container Wand Set!" 88
elseif "item" in desc
overhead "Regular Wand Set!" 88
endif
if timerexists wandselect
removetimer wandselect
endif
pause 1000
while not dead
overhead "Select up to three magical items to be exempt from depo into the Magic Item Vault..." 53
pause 2700
hotkey "Set Last Target"
wft 1000
while targetexists
if not timerexists exemptwepselect
createtimer exemptwepselect
settimer exemptwepselect 4500
elseif timer exemptwepselect >= 4500
settimer exemptwepselect 0
overhead "Select First exempt item..." 76
overhead "Select backpack when done..." 76
endif
endwhile
if timerexists exemptwepselect
settimer exemptwepselect 4500
endif
pause 250
getlabel lasttarget desc
if "backpack" in desc
overhead "Items set!" 88
break
else
@setvar saveitem1 lasttarget
endif
pause 250
hotkey "Set Last Target"
wft 1000
while targetexists
if not timerexists exemptwepselect
createtimer exemptwepselect
elseif timer exemptwepselect >= 4500
settimer exemptwepselect 0
overhead "Select Second exempt item..." 56
overhead "Select backpack when done..." 56
endif
endwhile
if timerexists exemptwepselect
settimer exemptwepselect 4500
endif
pause 250
getlabel lasttarget desc
if "backpack" in desc
overhead "Items set!" 88
break
else
@setvar saveitem2 lasttarget
endif
pause 250
hotkey "Set Last Target"
wft 1000
getlabel backpack ping
while targetexists
if not timerexists exemptwepselect
createtimer exemptwepselect
elseif timer exemptwepselect >= 4500
settimer exemptwepselect 0
overhead "Select Third exempt item..." 39
overhead "Select backpack when done..." 39
endif
endwhile
if timerexists exemptwepselect
removetimer exemptwepselect
endif
pause 250
getlabel lasttarget desc
if "backpack" in desc
overhead "Items set!" 88
break
else
@setvar saveitem3 lasttarget
endif
pause 250
overhead "Items set!" 88
break
endwhile
endif
if not warmode
//Recalling to dump loot
if skill "Magery" <= 60
say "[recallcharge House"
pause 3000
endif
if skill "Magery" >= 60
say "[recall House"
pause 3000
endif
endif
warmode off
if varexist repbench
dclick repbench
pause 2000
getlabel backpack ping
endif
while findtype "iron ore" backpack as ore
drop backpack
lift ore 60000
drop magicrecycler -1 -1 0
while queued
//donothing
endwhile
endwhile
while findtype "arcane essence" backpack as bessence
drop backpack
lift bessence 60000
drop magicrecycler -1 -1 0
while queued
//donothing
endwhile
endwhile
while findtype 5901|5899|5903|5905 backpack as footwear
getlabel footwear desc
if "[blessed]" in desc
@ignore footwear
elseif findtype "scissors" backpack as footcutter
while queued
//donothing
endwhile
dclick footcutter
wft 1000
target footwear
pause 500
getlabel backpack ping
else
drop backpack
lift footwear 60000
drop lootchestdump2 -1 -1 0
endif
endwhile
while queued
//donothing
endwhile
if varexist saveitem1
getlabel backpack ping
drop backpack
lift saveitem1 60000
drop lootchestdump3 -1 -1 0
while queued
//donothing
endwhile
endif
if varexist saveitem2
getlabel backpack ping
drop backpack
lift saveitem2 60000
drop lootchestdump3 -1 -1 0
while queued
//donothing
endwhile
endif
if varexist saveitem3
getlabel backpack ping
drop backpack
lift saveitem3 60000
drop lootchestdump3 -1 -1 0
while queued
//donothing
endwhile
endif
//Dumping Gear
hotkey "Cancel Current Target"
menu myshelf 0
wft 1000
target self
getlabel backpack ping
gumpclose 3232825965
hotkey "Cancel Current Target"
//Dumping all items
menu respile 0
wft 1000
target 'self'
hotkey "Cancel Current Target"
menu gardenshelf 0
wft 1000
target 'self'
hotkey "Cancel Current Target"
menu flooringrack 0
wft 1000
target 'self'
hotkey "Cancel Current Target"
menu magicchest 0
wft 1000
target 'self'
hotkey "Cancel Current Target"
menu rareclothtome 0
menu dyestome 0
menu arcanerunetome 0
menu treasuremaptome 0
menu shipupgradetome 0
menu skillmasterytome 0
menu collectablecardtome 0
menu oremaptome 0
menu skinningmaptome 0
menu lumbermaptome 0
menu fishingmaptome 0
menu magicrecycler 1
menu deposafe 0
while queued
//donothing
endwhile
if varexist saveitem1
getlabel backpack ping
drop backpack
lift saveitem1 60000
drop backpack -1 -1 0
while queued
//donothing
endwhile
endif
if varexist saveitem2
getlabel backpack ping
drop backpack
lift saveitem2 60000
drop backpack -1 -1 0
while queued
//donothing
endwhile
endif
if varexist saveitem3
getlabel backpack ping
drop backpack
lift saveitem3 60000
drop backpack -1 -1 0
while queued
//donothing
endwhile
endif
while findtype "void orb|research materials|spell hue deed|black market goods|redline bottle" backpack as chest1dump
drop backpack
lift chest1dump 60000
drop lootchestdump -1 -1 0
while queued
//donothing
endwhile
endwhile
while findtype "8454|8455|27612|2463|bag of gems|2508|7710|3712|3648|3650|3708|3648|2475|3649|29833|29832" backpack as chest2dump
drop backpack
lift chest2dump 60000
drop lootchestdump2 -1 -1 0
while queued
//donothing
endwhile
endwhile
while findtype "red envelope|hunting permit|15178|card|soul jar|candy corn|colonial marks" backpack as chest3dump
drop backpack
lift chest3dump 60000
drop lootchestdump3 -1 -1 0
while queued
//donothing
endwhile
endwhile
while findtype "3530" backpack as bspecialnets
getlabel bspecialnets desc
if "mastercrafted" in desc
@ignore bspecialnets
else
drop backpack
lift bspecialnets 60000
drop lootchestdump2 -1 -1 0
while queued
//donothing
endwhile
endif
endwhile
//Resupply
menu myshelf 1
getlabel backpack ping
if skill "Magery" >= 80 and mana >= 14 and not findbuff "Magic Reflection"
cast 'Magic Reflection'
getlabel backpack ping
if casting
while casting
//donothing
endwhile
getlabel backpack ping
endif
endif
if skill "Magery" >= 30 and mana >= 4 and not findbuff "Reactive Armor"
pause 250
cast 'Reactive Armor'
endif
if counttype "20496" >= 2 backpack
//do nothing
elseif varexist "regwand"
dclick "wandcontainer"
pause 500
getlabel backpack ping
while counttype "20496" < 2
if findtype "20496" "wandcontainer" as newwand
drop backpack
lift newwand
if findtype "bag|pouch|backpack" backpack 0 as wandbag
drop wandbag -1 -1 0
else
drop backpack -1 -1 0
endif
pause 500
getlabel backpack ping
endif
endwhile
endif
if counttype "20495" >= 2 backpack
//do nothing
elseif varexist "conwand"
while counttype "20495" < 2
if findtype "20495" "wandcontainer" as newwand
drop backpack
lift newwand
if findtype "bag|pouch|backpack" backpack 0 as wandbag
drop wandbag -1 -1 0
else
drop backpack -1 -1 0
endif
pause 500
getlabel backpack ping
endif
endwhile
endif
if skill "Fishing" >= 80 and skill "Tactics" >= 80
dclick arcanerunetome
waitforgump 3561255175 500
gumpresponse 18
waitforgump 3561255175 500
gumpresponse 18
waitforgump 3561255175 500
gumpresponse 18
waitforgump 3561255175 500
gumpclose 3561255175
endif
clearall
@clearignore
overhead '********************' 181
overhead '**DUMP COMPLETE**' 181
overhead '********************' 181The script automates the process of sorting and dumping items into specific containers. It relies on a setup where you have a "one-tile" storage system in your house. The script handles various types of items and uses a series of commands to sort and store them efficiently.








