Quantcast
WoWInterface - View Single Post - Frame temporary properties (frame.86c52870)
View Single Post
01-01-21, 10:33 PM   #9
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 402
Lua Code:
  1. hooksecurefunc(QUEST_TRACKER_MODULE, "SetBlockHeader", function(self, block)
  2.     print("QuestID:", block.id)
  3.     print("QuestHeader:", block.HeaderText:GetText())
  4.     print("QuestObjectives:")
  5.     local objectives = block.lines
  6.     if objectives.QuestComplete then
  7.         print(("[?] %s"):format(objectives.QuestComplete.Text:GetText()))
  8.     else
  9.         for index = 1, #objectives do
  10.             print(("[%s] %s"):format(index, objectives[index].Text:GetText()))
  11.         end
  12.     end
  13. end)
  Reply With Quote