Loot Dump and Resupply by Goapirat by Goapirat
Related: Snippetbank deposit safedumplootorganisationorganizationorganizerrecource stockpile and now also added all tomesrecyclerecyclerrepairrepair benchrestockresupplystorage shelf
Description from the author:
// Script by Goapirat 09/22 v4.1
// This is loot dump restock script that uses ideal following items when they are 2 tiles near you:
// bank deposit safe, recource stockpile, recycler, repair bench, storage shelf
//
// >> Set your organizer 1 to your Bank Safe and add Gold and Doubs to it <<
//
// The script asks for your TomeChest.
// If You have your Tomes in a chest => Target TomeChest
// If you have your Tomes locked 2 Tiles near you in your house => Target yourself
// Then the Script runs automatically.
//
// It dumps your gold into your bank deposit safe.
// Restocks your recource container.
// Moves unidetified items to your recycler.
// It repairs your inventory and warn equippment.
// Uses Shelf to clear your inventory and takes your current loadout.
//
// V4.1 Added Doubloons
@clearsysmsg
@setvar 'lootbag' self
// Tomes Section
// Tomes in Chest
unsetvar 'TomeChest'
if not find 'TomeChest' ground -1 1 2
overhead "Choose Tome Chest or yourself" 33
setvar! 'TomeChest'
endif
@clearignore
@setvar 'Me' self
if 'TomeChest' = 'Me'
overhead "Using Tomes on ground" 88
else
dclick 'TomeChest'
overhead "Using Tomes in TomeChest" 88
endif
while @findtype 29104 "TomeChest" -1 -1 2 as 'Tome'
sysmsg "Loot goes to Tomes"
menu 'Tome' 0
@ignore 'Tome'
endwhile
@clearignore
// Tomes on Ground
@clearignore
while @findtype 29104 ground -1 -1 2 as 'Tome'
menu 'Tome' 0
@ignore 'Tome'
endwhile
@clearignore
// move gold to bank deposit safe
# gold
if @findtype '3821' backpack
sysmsg "Gold n Doubs goes to BankSafe"
organizer 1
waitforsysmsg "finished" 2000
overhead "Bank Deposit done"
endif
// move doubloons to bank deposit safe
# doubs
if @findtype '2539' backpack '2125'
sysmsg "Gold n Doubs go to BankSafe"
organizer 1
waitforsysmsg "finished" 2000
overhead "Bank Deposit done"
endif
#// move gold to bank deposit safe
#while @findtype '3821' backpack as 'Gold'
# while @findtype 'bank deposit safe' ground -1 1 2 as 'Safe'
# sysmsg "Gold goes to BankSafe"
# wait 650
# lifttype '3821' 60000 backpack
# wait 650
# drop 'Safe'
# wait 650
# endwhile
#endwhile
#
#// move doubloons to bank deposit safe
#// doubloons, "muffins", '2539', Hue: 2125
#while @findtype '2539' backpack '2125' as 'Doubs'
# wait 650
# while @findtype 'bank deposit safe' ground -1 1 2 as 'Safe'
# sysmsg "Doubs goe to BankSafe"
# wait 650
# //lifttype name or graphic amt src hue
# lifttype '2539' 5000 backpack 2125
# wait 650
# drop 'Safe'
# wait 650
# endwhile
#endwhile
// restock resource container
if @findtype "resource container" ground any 1 2 as 'ResourceContainer'
sysmsg "Resources go to RecourceContainer"
menu 'ResourceContainer' 0
wft 2000
target self
endif
// dump loot from lootbag into recycler
if @findtype "ornate elven chest" ground any 1 2 as 'Recycler'
sysmsg "Unidentified goes to Recycler"
menu 'Recycler' 1
endif
// repair your stuff at repair bench
if @findtype "repair bench" ground any 1 2 as 'RepairBench'
sysmsg "Repairing..."
dclick 'RepairBench'
//pause 5000
waitforsysmsg "repair"
overhead "repaired" 82
endif
// Restock storage shelf and resupply
if @findtype "storage shelf" ground any 1 2 as 'Shelf'
sysmsg "Restocking on Shelf"
menu 'Shelf' 0
wft 2000
target self
pause 500
gumpclose
menu 'Shelf' 1
endif
overhead "Script finished" 33
stopScript by Goapirat 09/22 V4.2
This is loot dump restock script that uses ideal following items when they are 2 tiles near you:
bank deposit safe, recource stockpile, recycler, repair bench, storage shelf
The script asks for your TomeChest.
If You have your Tomes in a chest => Target TomeChest
If you have your Tomes locked 2 Tiles near you in your house => Target yourself
Then the Script runs automatically.
It dumps your gold and doubloons into your bank deposit safe.
Restocks your recource container.
Moves unidetified items to your recycler.
It repairs your inventory and warn equippment.
Uses Shelf to clear your inventory and takes your current loadout.
V4.1 Added Doubloons
V4.2 Uses Organizer 1 now for Gold and Doubs to Bank safe