clan stash list function

Malibu Stacey

Active member
Does anyone know if there is a function which returns an array of id's of the items in the clan stash similar to how get_inventory() works for your inventory?

Item amounts aren't a problem as I can iterate through the array calling stash_amount() on each item to retrieve that information (if/when required), I just would like to be able to get the list in the first place. Even if it's as strings rather than items it would be a start. I've looked through the manual & the wiki & if it is listed in either of them I have overlooked it repeatedly so any help would be most appreciated.

Thanks.
 

heeheehee

Developer
Staff member
If my memory serves me correctly, the reason why a function like this doesn't already exist is that stash inventory can change as a result of other players. Given that refresh_stash() is a command, though, I can't see a good argument for not providing scripters with a cached view of the stash, e.g. via a int [item] get_stash() command.
 
Top