Thread Tools Display Modes
Prev Previous Post   Next Post Next
05-15-18, 06:17 AM   #1
saxitoxin
A Theradrim Guardian
 
saxitoxin's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 60
getting bagslots from the tooltip

Unless there is a function where I can get the total number of slots in a bag that is in my inventory (not equipped)

My guess is that I have to scan the tooltip, but I have no idea how to do that

I know that
Code:
CONTAINER_SLOTS = "%d Slot %s";
is the line in the tooltip

but not how to get %d as a value from that line in the tooltip

I would appreciate a sample code
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » getting bagslots from the tooltip


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