diff --git a/overlay.lua b/overlay.lua
index 4c2675e..efc25fb 100644
--- a/overlay.lua
+++ b/overlay.lua
@@ -5,6 +5,8 @@ if not (_NPCScan and _NPCScan.Overlay) then return end
local core = LibStub("AceAddon-3.0"):GetAddon("SilverDragon")
local overlay = LibStub("AceEvent-3.0"):Embed({})
+local first, printed = true, {}
+
local achievements, quests
local function scan()
for index, achievement in next, achievements do
@@ -13,7 +15,7 @@ local function scan()
local name, ctype, completed, _, _, _, _, npcid = GetAchievementCriteriaInfo(achievement, i)
if ctype == 0 and completed then
overlay:SendMessage("NpcOverlay_Remove", npcid, "SilverDragon")
- --print("Objective complete:", npcid, name)
+ if not first and not printed[npcid] then printed[npcid] = true print("Objective complete:", npcid, name) end
numCompleted = numCompleted + 1
end
if numCompleted == numCriteria then
@@ -25,33 +27,34 @@ local function scan()
for npcid, quest in next, quests do
if IsQuestFlaggedCompleted(quest) then
overlay:SendMessage("NpcOverlay_Remove", npcid, "SilverDragon")
- --print("Quest complete:", quest, npcid)
+ if not first and not printed[npcid] then printed[npcid] = true print("Quest complete:", quest, npcid) end
quests[npcid] = nil
end
end
+ first = nil
end
function overlay:PLAYER_REGEN_ENABLED()
- C_Timer.After(0.3, scan)
+ C_Timer.After(2, scan)
end
function overlay:PLAYER_LOGIN()
self:SendMessage("NpcOverlay_RegisterScanner", "SilverDragon")
-
+
for _, mobs in next, core.db.global.mobs_byzoneid do
for id in next, mobs do
self:SendMessage("NpcOverlay_Add", id, "SilverDragon")
end
end
-
+
for _, mobs in next, _NPCScan.Overlay.PathData do
for id in next, mobs do
self:SendMessage("NpcOverlay_Add", id, "SilverDragon")
end
end
-
+
self:RegisterEvent("PLAYER_REGEN_ENABLED")
- scan()
+ C_Timer.After(5, scan)
end
overlay:RegisterEvent("PLAYER_LOGIN")
@@ -81,6 +84,7 @@ quests = {
[87579]=35731,--Ba'ruun
[82085]=35335,--Bashiok
[86257]=37369,--Basten
+[78150]=34130,--Beastcarver Saramor (Huntmaster Kuang)
[92552]=38609,--Belgork
[82826]=35735,--Berserk T-300 Series Mark II
[85907]=36597,--Berthora
@@ -111,6 +115,7 @@ quests = {
[80242]=34843,--Chillfang
[72294]=33014,--Cindermaw
[90519]=37990,--Cindral the Wildfire
+[78169]=34130,--Cloudspeaker Daber (Huntmaster Kuang)
[77513]=34129,--Coldstomp the Griever
[76914]=34131,--Coldtusk
[87577]=34131,--Coldtusk
@@ -168,6 +173,8 @@ quests = {
[81038]=36391,--Gelgor of the Blue Flame
[80471]=34929,--Gennadian
[71665]=32918,--Giant-Slayer Kul
+[77519]=34130,--Giantbane (Huntmaster Kuang)
+[78144]=34130,--Giantslayer Kimla (Huntmaster Kuang)
[87352]=37380,--Gibblette the Cowardly
[87029]=37393,--Giga Sentinel
[77719]=34189,--Glimmerwing
@@ -192,6 +199,7 @@ quests = {
[82758]=35714,--Greatfeather
[84431]=36186,--Greldrok the Cunning
[82912]=35784,--Grizzlemaw
+[78128]=34130,--Gronnstalker Dawarn (Huntmaster Kuang)
[88583]=37375,--Grove Warden Yal
[85572]=36919,--Grrbrrgle
[80312]=34865,--Grutush the Pillager
@@ -283,6 +291,7 @@ quests = {
[92411]=38580,--Overlord Ma'gruth
[92274]=38557,--Painmistress Selora
[78606]=34470,--Pale Fishmonger
+[78134]=34130,--Pathfinder Jalog (Huntmaster Kuang)
[88208]=37637,--Pit Beast
[87846]=37397,--Pit Slayer
[91374]=38282,--Podlord Wakkawam