View Single Post
07/26/18, 05:47 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
The only idea that comes in my mind:
Upon opening of a coffer check if the name is a reward from the battleground (and please make it multi language from the beginning!) and set a boolean addon variable like "BG reward coffer loot started".
Then check with EVENT_INVENTORY_SINGLE_SLOT_UPDATE if BG reward coffer loot started == true an the itemType. If it's a style item increase the addon counter.
Upon loot end / coffer close reset the variable "BG reward coffer loot started" to false again.

Without really looting (only opening the coffer) this will only work if you got access to the coffer's bag and slotIndex or uniqueId within your inventory (save it via EVENT_INVENTORY_SINGLE_SLOT_UPDATE as you GET the coffer to your inventory) AND if you are able to determine the bag, slotIndex, uniqueId during coffer opening some way.
  Reply With Quote