From cac415f5a03e21f45683b869702c83532658cfe7 Mon Sep 17 00:00:00 2001 From: p3lim Date: Tue, 28 Dec 2010 02:19:11 +0100 Subject: [PATCH] Automaticly finish the quests in watchframe --- Automate.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Automate.lua b/Automate.lua index d1268e8..11b235d 100644 --- a/Automate.lua +++ b/Automate.lua @@ -49,6 +49,16 @@ addon:Register('QUEST_COMPLETE', function(...) end end) +addon:Register('QUEST_AUTOCOMPLETE', function() + for index = 1, GetNumAutoQuestPopUps() do + local quest, type = GetAutoQuestPopUp(index) + + if(type == 'COMPLETE') then + ShowQuestComplete(GetQuestLogIndexByID(quest)) + end + end +end) + addon:Register('UNIT_INVENTORY_CHANGED', function(unit) if(unit ~= 'player') then return end -- 1.7.9.5