How can I tell ..
View Single Post
03-23-18, 11:41 PM
Join Date: Mar 2006
Originally Posted by
2) Convert ItemEquipLocation (as per GetItemInfo) to slot Id as used by GetInventoryItemLink
currently using a table from
but it'd be nicer if there were an API call for this?
There are these global constants:
GetItemInfo will give you something like "INVTYPE_HEAD", so you could replace "INVTYPE" with "INVSLOT" and look it up in _G.
That said, I don't think the slot IDs have
changed, so there's not really any compelling reason to look them up dynamically vs. hardcoding a table.
Retired author of
too many addons
Message me if you're interested in taking over one of my addons.
message me about addon bugs or programming questions.
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx