From 8e5f1ad1c7ea98addb504c726ab780527d6bbf45 Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Wed, 3 Dec 2014 15:27:04 +0100 Subject: [PATCH] Don't auto-accept the weekly seal quests --- QuickQuest.lua | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/QuickQuest.lua b/QuickQuest.lua index cecd7d1..a99059b 100644 --- a/QuickQuest.lua +++ b/QuickQuest.lua @@ -32,6 +32,10 @@ function QuickQuest:Register(event, method, override) end end +local function GetNPCID() + return tonumber(string.match(UnitGUID('npc') or '', 'Creature%-.-%-.-%-.-%-.-%-(.-)%-')) +end + local function IsTrackingTrivial() for index = 1, GetNumTrackingTypes() do local name, _, active = GetTrackingInfo(index) @@ -41,7 +45,17 @@ local function IsTrackingTrivial() end end +local ignoreQuestNPC = { + [88570] = true, -- Fate-Twister Tiklal + [87391] = true, -- Fate-Twister Seress +} + QuickQuest:Register('QUEST_GREETING', function() + local npcID = GetNPCID() + if(ignoreQuestNPC[npcID]) then + return + end + local active = GetNumActiveQuests() if(active > 0) then for index = 1, active do @@ -71,10 +85,6 @@ local function IsGossipQuestTrivial(index) return not not select(((index * 6) - 6) + 3, GetGossipAvailableQuests()) end -local function GetNPCID() - return tonumber(string.match(UnitGUID('npc') or '', 'Creature%-.-%-.-%-.-%-.-%-(.-)%-')) -end - local ignoreGossipNPC = { -- Bodyguards [86945] = true, -- Aeda Brightdawn (Horde) -- 1.7.9.5