Thread Tools Display Modes
05-20-16, 03:46 PM   #1
Felsai
A Defias Bandit
Join Date: May 2016
Posts: 2
Traps in bags

I am trying to make an addon to display the numbers of

Caged Mighty Clefthoof item number 119819
Caged Mighty Wolf item number 119815

How do I query to figure out if its in the bags and return how many. I havent found a tutorial for that if you know of one a link would be great.


The point of the addon is just so i don't have to keep my bags open to know how many traps i have finnished since i usually like to go out and get say 50 of them or 100. Hope that makes since.
  Reply With Quote
05-20-16, 03:48 PM   #2
MunkDev
A Scalebane Royal Guard
 
MunkDev's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2015
Posts: 431
http://wowprogramming.com/docs/api/GetItemCount

Get new values on event BAG_UPDATE:
http://wowprogramming.com/docs/events/BAG_UPDATE
__________________
  Reply With Quote
05-20-16, 05:29 PM   #3
Felsai
A Defias Bandit
Join Date: May 2016
Posts: 2
Thank you!!!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Traps in bags

Thread Tools
Display Modes

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