Skip to content

Commit

Permalink
Add quests completing to the tracked list aswell
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Mar 23, 2012
1 parent 518824f commit 1eadd1a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Monomyth.lua
Expand Up @@ -109,6 +109,7 @@ Monomyth:Register('QUEST_ITEM_UPDATE', function(...)
end
end)

local completing
Monomyth:Register('QUEST_COMPLETE', function()
local choices = GetNumQuestChoices()
if(choices <= 1) then
Expand All @@ -134,12 +135,20 @@ Monomyth:Register('QUEST_COMPLETE', function()
_G['QuestInfoItem' .. bestIndex]:Click()
end
end

completing = true
end)

local completedQuests = {}
Monomyth:Register('QUEST_FINISHED', function()
if(choiceFinished) then
choiceQueue = false
end

if(completing) then
completing = false
completedQuests[GetQuestID()] = true
end
end)

Monomyth:Register('QUEST_AUTOCOMPLETE', function(id)
Expand Down Expand Up @@ -167,7 +176,7 @@ Monomyth:Register('GUILDBANKFRAME_CLOSED', function()
atBank = false
end)

local completedQuests, query = {}
local query
Monomyth:Register('QUEST_QUERY_COMPLETE', function()
if(query) then
local bag = query
Expand Down

0 comments on commit 1eadd1a

Please sign in to comment.