Thread: Book table ?
View Single Post
09/03/14, 07:16 AM   #4
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by Garkin View Post
local bookNumber = tonumber(select(4, ZO_LinkHandler_ParseLink(GetLoreBookLink(categoryID, collectionID, bookID, LINK_STYLE_DEFAULT))))
Careful with tonumber & select. Every now and again I run into a crazy bug when I do this. tonumber(x, base) takes an optional base argument, and select(4, ...) returns all after the 4th. You want to wrap that select in another pair of parentheses tonumber((select(4, ...))), or explicitly specify decimal base tonumber(select(4, ...), 10)
  Reply With Quote