I'm try to get item enchantments list. How can I do it?
Return error.
Any help me?
Code:
armor = Player:GetInventory():GetArmorGrid();
local tmp = nil
for i = 0, armor:GetNumSlots()-1 do
tmp = armor:GetSlot(i):IsEnchantable();
end
Return error.
Code:
error in function 'IsEnchantable'.
argument #1 is 'const cItem'; 'cItem' expected.
Any help me?