Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-08-12, 09:30 AM   #1
gr0by
A Deviate Faerie Dragon
Join Date: Oct 2008
Posts: 18
if Buff on me in combat only iam log on warri

Code:
if class == "WARRIOR" then
    whoaUnitFrames.config.repositionPartyText = false

local frame = CreateFrame("FRAME")
frame:RegisterEvent("UNIT_AURA")
frame:RegisterEvent("PLAYER_REGEN_ENABLED")
frame:RegisterEvent("PLAYER_REGEN_DISABLED")
frame:SetScript("OnEvent", function(_, event)
   if event == "PLAYER_REGEN_ENABLED" then
     SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 6673) 
   elseif event == "PLAYER_REGEN_DISABLED" then

-- powerauras
frame:SetScript("OnEvent", function(self, event, ...)
        local unitid = ... if unitid ~= "player" then return end

        if not UnitBuff("player", "Schlachtruf") and not UnitBuff("player", "Befehlsruf") then
                SpellActivationOverlay_ShowOverlay(SpellActivationOverlayFrame, 6673, "INTERFACE\\ICONS\\Ability_Warrior_BattleShout.blp", "TOP", 1.1, 139, 65, 239, false, false)
        else
                SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 6673)
        end
end)


   end
end)
[COLOR="rgb(72, 61, 139)"]end[/color]
[COLOR="rgb(72, 61, 139)"]A[/color] Whoa unitframes

Iam new whit Lua and I've stolen a lot of things together
what it should do?!?
When I'm warrior and not Commanding Shout or Battle Shout in the fight on me than show a icon over me.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » if Buff on me in combat only iam log on warri


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off