From 4c702619dfe499a57f7865682652d623413fe7ce Mon Sep 17 00:00:00 2001 From: p3lim Date: Wed, 5 Jan 2011 13:24:08 +0100 Subject: [PATCH] Add some useful notes for later --- Monomyth.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Monomyth.lua b/Monomyth.lua index fbf8c09..487b6b7 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -71,6 +71,9 @@ addon:Register('QUEST_COMPLETE', function() for index = 1, GetNumQuestChoices() do local link = GetQuestItemLink('choice', index) if(not link) then + -- QUEST_COMPLETE can be a bit early, and so the items + -- are not added to the frame yet (cache missing perhaps). + -- either cache items or queue then try again return end @@ -89,6 +92,9 @@ addon:Register('QUEST_AUTOCOMPLETE', function() local quest, type = GetAutoQuestPopUp(index) if(type == 'COMPLETE') then + -- can sometimes fail to complete + -- the quest is not considered complete by the quest system + -- perhaps queue and try again later ShowQuestComplete(GetQuestLogIndexByID(quest)) end end @@ -100,6 +106,8 @@ addon:Register('BAG_UPDATE', function(bag) for slot = 1, GetContainerNumSlots(bag) do local _, id, active = GetContainerItemQuestInfo(bag, slot) if(id and not active) then + -- can sometimes cause a disconnect + -- most likely because the item is not cached yet UseContainerItem(bag, slot) end end -- 1.7.9.5