Btw you don't have to use tooltip. to get stuff like this you can just do something like
Not sure if this will work, but it should I think. I use the same thing to read tooltip text for SpellIDs
Code:
local Hyperlink = C_TooltipInfo.GetHyperlink(format("unit:Creature-0-0-0-0-%d-0000000000", npcID))
if Hyperlink and #Hyperlink.lines > 0 then
-- do stuff here
end
if you want to read the tooltip text from the table just do something like
Code:
for LineIndex = 1, #Lines do
local Line = Lines[LineIndex]
local Args = Line.args
for ArgIndex = 1, #Args do
local Arg = Args[ArgIndex]
local Text = Arg.stringVal