View Single Post
04/06/14, 05:23 PM   #2
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Unfortunately there isn't a way that I can see of getting to that information barring searching through all bags and slots.

There are several functions that have a bagID, slotID set of parameters.

bagID 0 is your equipped armor with the slotID being the individual equipped items.

bagID 1 is your inventory with slotID being the individual stack of items.

I assume bagID's 2 and higher will be for the various other inventory related storage such as bank or store etc.

EG.
bagCount = GetMaxBags()
bagIcon,bagSlots = GetBagInfo(bagId)
itemName = GetItemName(bagID, slotID)

So it looks like all you can do is cycle through and check that way.

I found a similar important value that isn't available that would help matters and that is the itemID is embedded into the itemLink but isn't extractable without going through the gmatch search patterns to extract it. There is an instanceID but think this is different to itemID based on what I have seen so far.
  Reply With Quote