Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------
- -- Лапа
- ---------------------------------------------
- if not iduh then
- local f = CreateFrame("Button", nil, UIParent, "UIPanelButtonTemplate")
- f:SetParent(MultiBarBottomLeftButton12)
- f:SetPoint("CENTER", 0, 0)
- f:SetSize(38, 38)
- f:RegisterForClicks("AnyDown")
- -- f:SetText("Духи!")
- local ptex = f:CreateTexture()
- ptex:SetTexture("Interface/Icons/Spell_Magic_GreaterBlessingofKings")
- ptex:SetTexCoord(0, 1, 0, 1)
- ptex:SetAllPoints()
- f:SetNormalTexture(ptex)
- DUHI = 1
- local ftex = f:CreateTexture()
- ftex:SetTexture("Interface/Icons/Spell_Holy_GreaterBlessingofKings")
- ftex:SetTexCoord(0, 1, 0, 1)
- ftex:SetAllPoints()
- f:SetNormalTexture(ftex)
- -- f:SetPushedTexture(ftex)
- f:SetScript("OnClick", function()
- if DUHI == 1 then
- DUHI = 2
- f:SetNormalTexture("Interface/Icons/Spell_Magic_GreaterBlessingofKings")
- else
- DUHI = 1
- f:SetNormalTexture("Interface/Icons/Spell_Holy_GreaterBlessingofKings")
- end
- end)
- iduh = true end
- if DUHI == 1 and not UnitBuff("player", GetSpellInfo(79062)) then
- -- Cast("Дух ястреба")
- end
- if DUHI == 2 and not UnitBuff("player", GetSpellInfo(79101)) then
- -- Cast("Дух гепарда")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement