View Single Post
12-18-21, 01:43 PM   #7
DahkCeles
A Cliff Giant
 
DahkCeles's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 73
Here's something rudimentary for a complete copy of the quest log contents, including headings and invisible content.

Each quest will be table, with the information described at Wowpedia.


Lua Code:
  1. local quests = {}
  2. local frame = CreateFrame("Frame")
  3. frame:RegisterEvent("QUEST_LOG_UPDATE")
  4. frame:SetScript("OnEvent", function(__, event)
  5.     if event == "QUEST_LOG_UPDATE" and not QuestMapFrame.ignoreQuestLogUpdate then
  6.         wipe(quests)
  7.         for i=1, C_QuestLog.GetNumQuestLogEntries() do
  8.             quests[i] = C_QuestLog.GetInfo(i)
  9.         end
  10.     end
  11. end)

Last edited by DahkCeles : 12-18-21 at 01:45 PM.
  Reply With Quote