Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-20-09, 10:47 AM   #4
Nafe
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 17
Originally Posted by jaliborc View Post
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 View Post
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?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Tracking item use


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off