API GetQuestsCompleted

Returns a list of quests the character has completed in its lifetime.

questsCompleted = GetQuestsCompleted([table])

Arguments

 * table : Table - If supplied, GetQuestsCompleted will add or replace keys in this table instead of creating a new table.

Returns

 * questsCompleted : Table - The list of completed quests. For each completed quest, there will be a key equal to its id (as in a questString) with the value true.  Other keys will be unchanged (if the table argument was supplied) or nil.

Example
local qc = GetQuestsCompleted

Result

This is a fresh Draenei who has only completed two starter quests. qc = { [9279] = true, -- [9280] = true, -- [9369] = true, -- Non-draenei version of                      --   (not actually done by this character) }

Details

 * Completed quest information is only available after has been called and  has fired.  Before that, GetQuestsCompleted will return an empty table.  Quests completed since the last QUEST_QUERY_COMPLETE event will not appear in the list.
 * A quest appears in the list only after it has been completed and turned in, not while it is in your log.
 * Completing certain quests can cause other quests (alternate versions, etc.) to appear completed also.
 * Some quests are invisible. These quests are not offered to players but suddenly become "completed" due to some other in-game occurrence.
 * Daily quests appear completed only if they have been completed that day.

History

 * Added in Patch 3.3.0.