View Full Version : Notification when boss uses spell.

11-08-2013, 12:33 PM
Hello again! I was thinking on adding notification on a specific spell, I want to send a notification to the players in the instance like 5 seconds before he uses Bladestorm that says for example "BossName prepares to use Bladestorm - Take cover" or something.

I couldn't get it to work really, I'm not sure what hook to use, I tried using CREATURE_EVENT_ON_SPELL_HIT_TARGET to notify the player when they get hit by a specific spell but that won't work if the tank dodges it or something, and also I don't think it'll notify any other than the target that get hit so... ^^'

So I'm asking if someone knows a better way to notify players before the use of a specific spell.

Lightning Blade
11-08-2013, 12:38 PM
I think you would be better off with registering an event, make it run 5 seconds before the actual spell event is runned.

11-08-2013, 02:09 PM
Yeah I was thinking that, but I'm not quite sure on how I would do that :s

11-08-2013, 03:11 PM
Main on combat function calls warning function. Warning function then calls spell function. Fairly straightforward really, you should be able to do it just fine.