View Single Post
10/27/16, 01:32 AM   #3
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
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_