PDA

View Full Version : Request: Clan Stash Cleaner



Enameless
06-06-2011, 08:16 PM
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
06-07-2011, 03:42 AM
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.


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:


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

Enameless
06-07-2011, 12:55 PM
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.

Bale
06-08-2011, 06:46 AM
I'm just full of awesome... sometimes.

mredge73
06-08-2011, 02:24 PM
Shameless self promotion of an old tired script.