I made my big ol table ��and then went to sleep. But I'll play around with those. Thanks!
How does the game decide whether that item you have will actually get equipped when you click it?
These are the results. Not sure whether I can use them. I'm testing whether a paladin can equip a plat helm that is already equipped.
Lua Code:
local slot,id = 1,nil
local itemLoc = ItemLocation:CreateFromEquipmentSlot(INVSLOT_HEAD)
if itemLoc:IsValid() then
id = C_Item.GetItemID(itemLoc)
end
print(id) --157961
print(IsEquippableItem(id)) --true, although it would be true for any class
print(C_Item.IsItemSpecificToPlayerClass(id)) --false.
--print(C_Item.IsItemSpecificToPlayerClass(GetItemInfo(id))) --also false. Not sure what I'm doing wrong.
print(C_Item.IsItemConvertibleAndValidForPlayer(itemLoc)) --false
This might be the solution to my problem. Neeeds more testing
Lua Code:
local table = GetItemSpecInfo(id)
for k,v in pairs(table) do
print(k,v)
end
--Output
--1, 65 -- PaladinHoly
--2, 66 -- PaladinProtection
--3, 70 -- Paladin Ret
Far as I can tell this only show true for armor + back (but haven't tried with weapons yet.)