Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-09-20, 12:59 PM   #1
VeenixO
A Murloc Raider
Join Date: Dec 2020
Posts: 7
Need help with spell activation overlay

Hi all, new here!

First time trying to make an addon and wanted to make something that in my mind seems simple.
Seems that it's not as simple as I thought.

Basically I want to make an addon that shows a texture when Hammer of Wrath procs or is useable (like when Blade of Justice procs). This is the code I have atm but it doesn't seem to work.

local f = CreateFrame("Frame")
local spellID = 24275 --Hammer of Wrath

f:RegisterEvent("SPELL_ACTIVATION_OVERLAY_SHOW")
f:RegisterEvent("SPELL_ACTIVATION_OVERLAY_HIDE")

f:SetScript("OnEvent", function(self,event, spellID, ...)
if event == "SPELL_ACTIVATION_OVERLAY_SHOW" then
if (arg1 == "24275") then
print("Hello, WoW!")
end
end

if event == "SPELL_ACTIVATION_OVERLAY_HIDE" then
if (arg1 == "24275") then
print("Bye")
end
end

end)

Could anyone give me some advice on how to check when Hammer of Wrath procs/is useable?

Thanks alot in advance!
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Need help with spell activation overlay


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