I want a very simple addon to track the time left on overkill with a Deadly Boss Mods timer...
like the one that displays when you type
/script DBM.StartStatusBarTimer(6, "Overkill",nil,false);
in game
but I want it to trigger once every time the rogue exits stealth mode
edit: to clarify:
so once the "player" exits stealth, execute the above script
edit: tandanu gave me this code to try
local mod = DBM:NewBossMod("Overkill", "Overkill Timer", nil, DBM_OTHER, DBM_NO_GUI_TAB, 0)
mod:RegisterEvents(
"SPELL_AURA_REMOVED",
)
function mod:OnEvent(event, args)
if event == "SPELL_AURA_REMOVED" then
if args.spellId == 1787 then
self:StartStatusBarTimer(6, "Overkill", 58427, false)
end
end
end
|
but that won't seem to work either.