매크로 게시판

전체보기

모바일 상단 메뉴

본문 페이지

[공통] 특정 버프 캐릭터 옆에 띄우는 매크로

아이콘 Hisop
댓글: 3 개
조회: 2476
2021-03-21 20:37:56


-- 특정 버프 중앙에 띄워놓기
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에 추가.
기록 겸 남겨둡니다. 질문은 댓글

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

Lv71 Hisop

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

  • 와우
  • 게임
  • IT
  • 유머
  • 연예