local slotID = GetInventorySlotInfo(Headslot)local itemLocation = ItemLocation:CreateFromEquipmentSlot(slotID)if C_Item.DoesItemExist(itemLocation) then local lvl = C_Item.GetCurrentItemLevel(itemLocation) -- ...end