Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add quests completing to the tracked list aswell

  • Loading branch information...
commit 1eadd1a2bcfc856655553847ebf40b1608dcd896 1 parent 518824f
@p3lim p3lim authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 Monomyth.lua
View
11 Monomyth.lua
@@ -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
@@ -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)
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.