Quantcast WoWInterface - View Single Post - Addon help
Thread: Addon help
View Single Post
09-19-15, 05:24 PM   #14
A Pyroguard Emberseer
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,059
Originally Posted by Caellian View Post
i still can't find a way to guarantee that i looted the mob before leaving
You'll want to watch for the LOOT_OPENED event, iterate over the items from 1 to GetNumLootItems(), check GetLootSourceInfo(i) for the GUID of the source unit to figure out if you're looting from an npc ID on your list, then determine when you've actually looted what you're interested in via LOOT_SLOT_CLEARED or the actual "received item" bag events.
  Reply With Quote