Or extend the existing functions to return the book-id.
Code:
* GetLoreBookInfo(*luaindex* _categoryIndex_, *luaindex* _collectionIndex_, *luaindex* _bookIndex_)
** _Returns:_ *string* _title_, *textureName* _icon_, *bool* _known_, *integer:nilable* _bookId_
And
Code:
* GetLoreBookIndexFromLink(*string* _link_)
** _Returns:*luaindex* _categoryIndex_, *luaindex* _collectionIndex_, *luaindex* _bookIndex_
Or
Code:
* GetLoreBookIndexFromID(*integer* _bookId_)
** _Returns:*luaindex* _categoryIndex_, *luaindex* _collectionIndex_, *luaindex* _bookIndex_