Hello,
I'm trying to add a functionality to my addon to count the times a battleground coffer drops a certain item (style page). But I am having trouble making sure I don't count the same coffer as opened twice, my initial idea would be useing the item unique ID. The problem is that the:
Code:
local lbName, lbInteractTargetType, actionName, isOwned = GetLootTargetInfo()
Doesn't give me any information about the coffer being looted besides the name, so if I have multiple coffers in my bag it won't work... I still can't identify which coffer I am looting, so this approach won't work...
Does someone know some function/event that would help me with this?
Thanks in advance!
Some random debugging I did with a Rewards of the worthy coffer:
Code:
[23:31] EVENT_INVENTORY_ITEM_USED - Item Used
[23:31] EVENT_LOOT_UPDATED - Is looting :)! GetLootTargetInfo: Name: Rewards for the Worthy, lbInteractTargetType: 2, isOwned: false
[23:31] LootEntry: name:Marksman's Guards, IsColletible: false
[23:31] EVENT_LOOT_UPDATED - Is NOT looting :(!
[23:31] EVENT_INVENTORY_SINGLE_SLOT_UPDATE - ItemName: Marksman's Guards
[23:31] EVENT_LOOT_CLOSED - Loot Closed
[23:31] EVENT_INVENTORY_SINGLE_SLOT_UPDATE - ItemName: