ESODecoded

GetLoreBookInfo

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

Official signature

GetLoreBookInfo(luaindex categoryIndex, luaindex collectionIndex, luaindex bookIndex)

Returns: string title, textureName icon, bool known, integer bookId

Real usage — from LoreBooks

function LoreBooks_GetNewLoreBookInfo(categoryIndex, collectionIndex, bookIndex)
  local title, icon, known, bookId = GetLoreBookInfo(categoryIndex, collectionIndex, bookIndex)

Short excerpt from the shipping addon LoreBooksits 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
LoreBooks13,090,355
HarvestMap9,454,533
Map Pins8,061,548
CraftStore5,176,147
TraitBuddy1,101,730
ESO-Database.com Export AddOn272,910