Originally Posted by doofus
2) Convert ItemEquipLocation (as per GetItemInfo) to slot Id as used by GetInventoryItemLink
currently using a table from https://wow.gamepedia.com/ItemEquipLoc but it'd be nicer if there were an API call for this?
|
There are these global constants:
https://www.townlong-yak.com/framexm...stants.lua#270
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
ever changed, so there's not really any compelling reason to look them up dynamically vs. hardcoding a table.