/
if ( select(2, UnitClass("player")) == "DEATHKNIGHT" ) then |
local f = CreateFrame("Frame") |
local spellName = GetSpellInfo(49576) -- Death Grip |
f:SetScript("OnEvent", |
function(self, event, arg1, arg2) |
if arg1 == "player" and strfind(arg2, spellName) then |
if event == "UNIT_SPELLCAST_SENT" then |
SendChatMessage("Get over here!", "YELL") |
end |
end |
end |
) |
f:RegisterEvent("UNIT_SPELLCAST_SENT") |
f:RegisterEvent("UNIT_SPELLCAST_SUCCEEDED") |
end |
<Ui> |
<Frame name="AbilitySayings"> |
<Scripts> |
<OnLoad> print("Ability Sayings v0.1 By Nobgul Now Loaded "); </OnLoad> |
</Scripts> |
</Frame> |
</Ui> |
## Interface: 30300 |
## Title: AbilitySayings |
## Notes: Various class and ability sayings. |
DeathKnight\DeathGrip.lua |
OnLoad.xml |