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.
Troubleshoot an addon
Turn any code into an addon
More addon resources
Need help with your code?
code! Attach or
Please don’t PM me
about addon bugs or code questions. Post a comment or forum thread instead!
View Public Profile
Send a private message to Phanx
Find More Posts by Phanx