ESODecoded

GetItemLinkWeaponType

ESO Lua API function — used by 100 of the 3,030 addons we indexed (combined 51,860,759 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetItemLinkWeaponType(string itemLink)

Returns: weaponType

Real usage — from Dolgubon's Lazy Writ Crafter

	local armourType = GetItemLinkArmorType(link)
	local weaponType = GetItemLinkWeaponType(link)
	if armourType == ARMORTYPE_HEAVY then

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
Combat Metrics7,085,289
LibLazyCrafting6,538,592
CraftStore5,176,147
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189
Inventory Insight2,763,446