LoadAddOn("Blizzard_ArchaeologyUI")
ArcheologyDigsiteProgressBar:Hide()
ArcheologyDigsiteProgressBar.Show = function() end
local Progress, Compute = Progress, Compute
local found = CreateFrame("frame")
found:RegisterEvent("ARCHAEOLOGY_FIND_COMPLETE")
found:SetScript("OnEvent", function(self, event, arg1, arg2)
if event == "ARCHAEOLOGY_FIND_COMPLETE" then
Progress = arg1.."/"..arg2.." ";
Compute = (arg1 / arg2) == 1;
RaidNotice_AddMessage(RaidWarningFrame, Progress.." 루팅하세요~!", Compute and ChatTypeInfo["AFK"] or ChatTypeInfo["BN_WHISPER"])
end
end)
ChatFrame_AddMessageEventFilter("CHAT_MSG_CURRENCY", function(self, event, msg)
for i = 1, GetNumArchaeologyRaces() do
local Name, _, ItemID, FCol, FReq, maxF = GetArchaeologyRaceInfo(i)
if msg:match(strsub(Name, 0, 13)) then
local color = ((0.85 < (FCol / maxF)) and "|cffff0077" or Compute and "|cffff7eff" or "|cff00ff00")
local aName = GetItemInfo(ItemID)
if aName then
aName = Progress..Name.." "..FCol.."("..FReq..")/"..maxF.." "..aName.."("..GetItemCount(ItemID)..")"
if not (IsResting() or GetMinimapZoneText() == "지식의 연단" or Progress == nil) then
C_Timer.After(.1, function() print(color..aName) end)
RaidNotice_AddMessage(RaidBossEmoteFrame, aName, Compute and ChatTypeInfo["AFK"] or ChatTypeInfo["GUILD"])
end
end
end
end
end)