Thread: 3.3 Update
View Single Post
01/24/18, 05:34 PM   #28
ArtOfShred
 
ArtOfShred's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 103
Originally Posted by Rhyono View Post
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
  Reply With Quote