ESODecoded

GetCollectibleIdFromType

ESO Lua API function — used by 30 of the 3,030 addons we indexed (combined 5,804,045 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.

Official signature

GetCollectibleIdFromType([CollectibleCategoryType|#CollectibleCategoryType] collectibleCategoryType, luaindex index)

Returns: integer collectibleId

Real usage — from LibSets (All set items ingame & preview. lua API + excel sheet)

    for collectibleIndex=1, GetTotalCollectiblesByCategoryType(COLLECTIBLE_CATEGORY_TYPE_DLC) do
        local collectibleId = GetCollectibleIdFromType(COLLECTIBLE_CATEGORY_TYPE_DLC, collectibleIndex)
        local collectibleName, _, _, _,

Short excerpt from the shipping addon LibSets (All set items ingame & preview. lua API + excel sheet)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

AddonTotal downloads
LibSets (All set items ingame & preview. lua API + excel sheet)4,357,189
OdySupportIcons - Group Role Icons & More484,590
LovelyEmotes276,662
LibAnnyoingUpdateNotificationInGame - Launig207,132
Unboxer140,238
Kyzderp's Derps62,158