GetItemArmorType
ESO Lua API function — used by 31 of the 3,030 addons we indexed (combined 13,428,459 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
GetItemArmorType([Bag|#Bag] bagId, integer slotIndex)Returns: armorType
Real usage — from Dolgubon's Lazy Writ Crafter
end
local isJacked = GetItemEquipType(bag, slot)==EQUIP_TYPE_CHEST and GetItemArmorType(bag, slot)==ARMORTYPE_MEDIUM
if WritCreater.savedVarsAccountWide.applicationProgress["robbajack"] == 0 and isJacked and itemSetId == daringTheft aShort excerpt from the shipping addon Dolgubon's Lazy Writ Crafter — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Dolgubon's Lazy Writ Crafter | 9,498,314 |
| LibFilters-3.0 | 2,063,617 |
| Auto Category - Revised | 1,180,586 |
| Harven's Trait and Style | 311,759 |
| JunkBuster | 67,472 |
| Advanced AutoLoot Renewed | 62,613 |