Hello, in tbc you can use lua for that:
while GetQuestLogTitle(i) do
local questTitle, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily = GetQuestLogTitle(i);
if ( not isHeader and GetQuestLink(i)) then
if {1} == tonumber(string.match(GetQuestLink(i), 'Hquest:(%d+)')) then
qId = i;
break;
end
end
i = i + 1
end
replace {1} by quest id