View Single Post
10/03/17, 02:06 PM   #6
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by ObjectMetadata View Post
Hi votan,
your solution prints all quests that are currently tracked. However I just need the ID of the one quest that is currently displayed in the top right corner, not all quests. Or am I missing something in your solution?
ah, yes. How stupid, I forgot:
Lua Code:
  1. for i = 1,QUEST_TRACKER:GetNumTracked() do
  2.     local entry = QUEST_TRACKER:GetTrackedByIndex(i)
  3.     if GetTrackedIsAssisted(TRACK_TYPE_QUEST, entry:GetJournalIndex()) then
  4.         d(GetJournalQuestName(entry:GetJournalIndex()))
  5.     end
  6. end
  Reply With Quote