WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Need help with spell activation overlay (https://www.wowinterface.com/forums/showthread.php?t=58881)

Ariya021 08-10-21 09:27 AM

Need help with spell activation overlay
 
hi i wan to make addon to show blizzard spell alert like hot strike fire mage but when this buff proc on bm hunter 'Flayer's Mark' anyone can help me with that ? its simple i try to change this code but its not show the overlay.

local frame = CreateFrame("FRAME")
frame:RegisterEvent("UNIT_AURA")

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

if AuraUtil.FindAuraByName("Flayer's Mark", "player", "HELPFUL") then
SpellActivationOverlay_ShowOverlay(SpellActivationOverlayFrame, 263725, "Textures\\SpellActivationOverlays\\GenericTop_01.BLP", "TOP", 1, 255, 190, 205)
else
SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 263725)
end
end)


tnx


All times are GMT -6. The time now is 07:40 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI