API GetQuestIndexForWatch

From Wowpedia
Jump to: navigation, search


Gets the quest log index of a watched quest.

questIndex = GetQuestIndexForWatch(watchIndex)


Arguments

watchIndex 
Number - The index of a quest watch; an integer between 1 and GetNumQuestWatches().


Returns

questIndex 
Number - The quest log's index of the watched quest.

Caveats

This function can return nil for valid watchIndex values if the watched quest isn't yet in the client cache. This can happen when logging in after clearing the cache.