Results 1 to 6 of 6

Thread: Pull all items from clan stash

  1. #1
    Junior Member General_Herpes's Avatar
    Join Date
    Apr 2014
    Location
    Austin, TX
    Posts
    16

    Question Pull all items from clan stash

    Greetings,

    I'm hoping someone can help me figure out how to pull all items from the clan stash. I'm guessing the clan stash has to be listed/logged, then iterate through that list to pull the items?

    Thank you for your time!

  2. #2
    Senior Member ckb's Avatar
    Join Date
    Mar 2006
    Posts
    808

    Default

    Code:
    ash foreach it,qq in get_stash() take_stash(qq,it);

  3. #3
    Junior Member General_Herpes's Avatar
    Join Date
    Apr 2014
    Location
    Austin, TX
    Posts
    16

    Default

    This worked flawlessly. Thank you so much!!!

  4. #4

    Default

    I highly recommend prefacing that with
    Code:
    batch_open();
    and following it with
    Code:
    batch_close();
    . That will tell KoLmafia to queue up all the server requests and execute them in bulk. For completely serious reasons that are not even funny, that should make it 11 times faster.

    I’m not joking, the KoL API interfaces for item handling can do up to 11 things at once.
    Last edited by Saklad5; 07-08-2018 at 06:36 PM. Reason: Added semicolons

  5. #5
    Senior Member
    Join Date
    Apr 2009
    Posts
    1,799

    Default

    I’m not joking, the KoL API interfaces for item handling can do up to 11 things at once.
    Originally Posted by Saklad5 View Post
    Didn't that stop being a thing, one API after another?

  6. #6
    Developer
    Join Date
    Aug 2009
    Posts
    2,763

    Default

    Didn't that stop being a thing, one API after another?
    Originally Posted by xKiv View Post
    I believe it still exists in some places that haven't ever gotten an interface overhaul; DC and clan stash are two that come to mind. Some of the old APIs might still exist even if they're not linked to from within the game.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •