ESODecoded

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 a

Short excerpt from the shipping addon Dolgubon's Lazy Writ Crafterits ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.

Most-downloaded addons using it

AddonTotal downloads
Dolgubon's Lazy Writ Crafter9,498,314
LibFilters-3.02,063,617
Auto Category - Revised1,180,586
Harven's Trait and Style311,759
JunkBuster67,472
Advanced AutoLoot Renewed62,613