Request: Clan Stash Cleaner

Enameless

New member
I run a small Clan and I'm looking for a script that will empties out my clan stash. I've searched for simple methods of doing this but have found nothing short of individually pulling each item. I know I can manually empty my stash through Mafia but have found no way to do this by scripting. If someone could point me in the right direction I'd appreciate it greatly. I just need it to empty the stash I've found scripts to do everything else I need. If this isn't as simple as I think it should be I am willing to pay.

Thanks in Advance
Enameless
 

Bale

Minion
It's not terribly hard. I think that the following code should do the job of emptying your clan stash into your inventory 11 items at a time until there is nothing left.

Code:
refresh_stash();
batch_open();
foreach it in $items[]
   if(stash_amount(it) > 0) take_stash(stash_amount(it), it);
batch_close();

If you want to copy paste the code into your CLI, you can use this:

Code:
ashq refresh_stash(); batch_open(); foreach it in $items[] if(stash_amount(it) > 0) take_stash(stash_amount(it), it); batch_close();
 

Enameless

New member
Thank you Bale that works perfectly now combined with your OCD script my clan should have plenty of funding for Hobopolis and the Slime Tubes.
 
Top