Originally Posted by Rhyono
Any word on whether the function is being considered? Otherwise, I'll have to loop through every item in the bank at hand each time an item is added. I don't know how well plebeian computers will handle that, then I'll have disgruntled masses.
|
Depending on what you're using it for you could just update the index with EVENT_INVENTORY_SINGLE_SLOT_UPDATE. I have a function that adds or removes items from 4 separate indexes in LUI Extended (Worn, Bag, Bank, House Bags) if you need ideas. Also could index at the start/beginning of EVENT_OPEN/CLOSE_BANK. Shouldn't really cause any hit to iterate over the bags once for this.
Although a function would definitely make it easier :-D