Originally Posted by jaliborc
Simple: use hooksecurefunc to hook UseContainerItem. Done!
|
UseContainerItem is used in more cases than just using an item. It also (if I remember correctly) sells items to merchants, places them in mail messages, and adds them to/removes them from the bank, amongst other things.
A list of things can seemingly be found at WoWwiki:
http://www.wowwiki.com/API_UseContai...otection_Notes
Originally Posted by Tuhljin
but again, you don't know for sure that the player actually consumed the item.
|
I guess in order to successfully use hooking
UseContainerItem for your purpose, you will need checks to see if any of those windows are open.
Just a general (and probably stupid question): did you check to see if using an item triggers any event other than
BAG_UPDATE, using an addon such as
DevTools?