-- 특정 버프 중앙에 띄워놓기
local f = CreateFrame("Frame",nil,UIParent)
f:SetFrameStrata("BACKGROUND")
f:SetWidth(30)
f:SetHeight(30)

local t = f:CreateTexture(nil,"BACKGROUND")
t:SetAllPoints(f)
f:SetPoint("CENTER",100,40)

local c = CreateFrame("Cooldown", nil, f, "CooldownFrameTemplate")
f:Hide()

f:RegisterEvent("UNIT_AURA")
f:SetScript("OnEvent", function(self,event)

local name, icon, _, _, duration, a = AuraUtil.FindAuraByName("꾸준한 집중", "player")  --HELPFUL buffs. HARMFUL debuffs.
if name == "꾸준한 집중" then
t:SetTexture(icon)
f:Show()
c:SetCooldown (a-duration, duration)
elseif name == nil then
f:Hide()
end
end)

lua에 추가.
기록 겸 남겨둡니다. 질문은 댓글

다들 위크오라 쓰는건 알지만 매크로로만 인터페이스 짜서 쓰는 인간입니다. 끝