Originally Posted by Garkin
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)