WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   GetQuestLink() returning empty results (https://www.wowinterface.com/forums/showthread.php?t=54723)

vvv444 10-26-16 07:12 AM

GetQuestLink() returning empty results
 
Hi,

After the patch 7.1 release, this function seems to stop working...

/dump GetQuestLink(1)

just returns empty results...

Any idea?

Best regards,
Brizag

Ketho 10-26-16 08:57 AM

Looks like it now accepts a Quest ID (limited to currently accepted quests) instead of the quest log index
Dunno how it would work if you just want the quest at index 1, if you for some reason still need to use the quest index

vvv444 10-26-16 09:14 AM

Actually I just wanted to find out the quest IDs of the quests that I have active. Previously I was just iterating like this:
Code:

for i = 1, GetNumQuestLogEntries() do
  ... GetQuestLink(i) ...
end

The question how do I do it now...

Yocote 10-26-16 11:47 AM

You can get the ID from GetQuestLogTitle. Here is a snippet from my code in QuestSounds; (GetQuestLogTitle returns more values, but I didn't put those in variables since I didn't need them).

Code:

local title, level, _, _, _, complete, daily, id = GetQuestLogTitle(index)
local link = GetQuestLink(id)


vvv444 10-26-16 02:22 PM

Thank you!


All times are GMT -6. The time now is 07:33 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI