WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Search/Requests (https://www.wowinterface.com/forums/forumdisplay.php?f=6)
-   -   a simple addon request (3-5 lines ish) (https://www.wowinterface.com/forums/showthread.php?t=18656)

007license 10-16-08 11:04 PM

a simple addon request (3-5 lines ish)
 
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
Quote:

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.


All times are GMT -6. The time now is 11:02 AM.

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