C_QuestLog.GetQuestIDForQuestWatchIndex

From Warcraft Wiki
Jump to navigation Jump to search

Returns the quest ID represented by the given quest watch index.

questID = C_QuestLog.GetQuestIDForQuestWatchIndex(questWatchIndex)

Arguments

questWatchIndex
number

Returns

questID
number?

Example

Returns the Quest ID of any non-world quests player is tracking.

/run for i=1, C_QuestLog.GetNumQuestWatches() do local qID = C_QuestLog.GetQuestIDForQuestWatchIndex(i) if qID then print("# "..i..": ID "..qID) end end

Patch changes

Shadowlands Patch 9.0.1 (2020-10-13): Added.