PDA

View Full Version : Event for activation of an ability or skill?


kjems
11-13-2004, 12:39 AM
Does anyone know the event for activation of a skill?
The SPELLCAST_START works for spells, but I need one for combat abilities/skills like warrior Harmstring.

sarf
11-13-2004, 01:24 AM
CHAT_MSG_SPELL_SELF_DAMAGE, or CHAT_MSG_SPELL_SELF_BUFF, or something like that, perhaps?

Basically, check in the chat messages using the chat menus, and then you can use the same event to get info in your script.

Sarf
---
Dead puppies aren't much fun.

kjems
11-13-2004, 01:50 AM
Cool CHAT_MSG_SPELL_SELF_DAMAGE does the trick. Thanks alot.
It doesent work on opening styles like charge and cheapshot. Ill try and work with some of the other CHAT_MSG_.

-Kjems.

kjems
11-13-2004, 04:18 PM
The in-game GUI has a settings tap for each of the chat windows where the color schema can be changed. In that settings tap, I found out that “Your Damage Spells” is equal to the CHAT_MSG_SPELL_SELF_DAMAGE event.

What events correspond to the following in-game names?:
“Creatures' Periodic Damage”
“Hostile Players' Periodic Damage”

Do I have to do a try-and-error?

sarf
11-13-2004, 04:35 PM
Check out the ChatFrame.lua, and see SPELL_PERIODIC_HOSTILEPLAYER_DAMAGE for starters.

Trial and error is good but not required.

Sarf
---
You know, that's a pretty daring move for a weatherman.