View Single Post
02/14/17, 11:05 AM   #5
AssemblerManiac
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 51
I'd like to +1 this one too.

When deconstructing an item, we do get an EVENT_INVENTORY_SINGLE_SLOT_UPDATE event, but the ItemLink is empty when it was the last item from the stack.

How about having the slot update event include the item link all the time? When qty=0, you'll know it's the last one. IIfA needs this so I can more easily zero out qtys associated with an itemlink without having to resort to saving/searching the bag/slot just to find out what the itemlink previously was.


-----------
Shred - you really should be using the bag identifiers (BAG_BACKPACK, BAG_BANK, BAG_GUILDBANK, etc) instead of hardcoded numbers.