WoW API: GetQuestsCompleted

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetQuestsCompleted to API GetQuestsCompleted without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetQuestsCompleted

Returns a table of quests, that you have completed.

table = { GetQuestsCompleted() }

Returns

table
Completed quests IDs are stored as keys and all values should be "TRUE". {1="TRUE", 7="TRUE", 298="TRUE",...}

Notes

Only available after QUEST_QUERY_COMPLETE event. To have quest IDs as values you can use this code:

QuestIDs = {}
for k,v in pairs({GetQuestsCompleted()}) do if v == "TRUE" then tinsert(QuestIDs, k) end end