Which function tells me if the current stash tab does not have enough space for the item that I am trying to stash? Thanks.
Do I have to really try to stash an item and wait for a "CouldNotFitAllitems" StashItemsCoroutineError? Is there not a way to check before trying to stash?
heyas I haven't done anything with stashing yet, so can't say from experience but maybe Loki.Bot.v3.Coroutines.BestStashTabForItem could help reduce the problem? Thanks!
Hey dude. Code: Coroutines.StashItemsCoroutine Should take care of it for you, Pushedx made it real easy to stash.
Dark, thanks for your help, but that was not what I am asking. I know the existence of Coroutines.StashItemsCoroutine, but I wonder if there is a way to check if the Current tab is full before trying to stash an item. By the way, what is "object user" which is one of the possible arguments in Coroutines.StashItemsCoroutine? I am setting it to null at the moment and seems to be OK.
You need to obtain the 'Inventory' class object for whatever inventory you want to check. Then, you can use CanFitItem. Check the overloads for more options as well. LokiPoe.InGameState.StashPanel.CurrentTabInventory gets you the current inventory for the current stash tab.