World of Warcraft/[WoW] 위크오라

[WoW] 클릭 가능한 위크오라 만드는 방법

레임3D 2021. 3. 9.

 

 

▶ 영상에 나오는 샘플 공용 위크오라 reims.tistory.com/364

 

▼ 스킬 위크오라(동작 - 사용자 설정)

local button = CreateFrame("Button",
    "WA_PoisonReminder",
    aura_env.region,
"SecureActionButtonTemplate")

button:SetAllPoints()
--button:SetAttribute("unit","player")
button:RegisterForClicks("LeftButtonDown")
button:SetAttribute("type1", "spell")
button:SetAttribute("spell1", 324739) -- 뒤에 번호에 스킬ID 입력하세요

▼ 아이템 위크오라 (동작 - 사용자 설정)

if not aura_env.clickableFrame then
    local r = aura_env.region
    aura_env.clickableFrame = CreateFrame("Button", "ConsumeButton", r, "SecureActionButtonTemplate")  
end

aura_env.clickableFrame:SetAllPoints()
aura_env.clickableFrame:SetAttribute("type", "macro")

aura_env.clickableFrame:SetAttribute("macrotext", [[
/use item:177278]])  --아이템ID를 입력하세요

 

▼ 아이템 위크오라 (디스플레이 - 공통 문자)

function()
    local pot = GetItemCount(177278, nil, true)
    if pot == 0 then 
        return string.format("0")
    else 
        return string.format(pot)
    end    
end


 

 

 

 

 

💲 추천 글