Lore archive · Warcraft Wiki, 2023 dump
API GetQuestLogIndexByID
Last wiki revision 2022-07-21
Returns the current quest log index of a quest by its ID. questLogIndex = GetQuestLogIndexByID(questID)
- questID: - Unique identifier for each quest. Used as each quest's URL on database sites such as Wowhead.
- questLogIndex: - The index of the queried quest in the quest log. Returns "0" if a quest with this questID does not exist in the quest log.
This snippet gets the QuestID of the most recently displayed quest in a Gossip frame, then gets the index. Now that we have the index of the quest, we can utilize many of the functions that require a quest index. For example, GetQuestLink requires a quest index. local qID = GetQuestID; local qLink = GetQuestLink(GetQuestLogIndexByID(qID)); print("Here's a link to the quest I'm currently viewing at a quest-giver: " .. qLink);
Source
https://warcraft.wiki.gg/wiki/API_GetQuestLogIndexByID · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.