Development / Events WOW Addon

Not sure if this is a suitable programming question or not; but here goes ....

I wrote a very simple add-on that displays text / plays sound when some spells become available (Overpower / Revenge).

But I could not find a suitable event for listening to check this. My hack-ish approach is simply to check the state of the spells that concern me when an event is passed to me.

Is there a specific event that I can use? I looked through the documents on WoWWiki and did not find anything suitable.

+4
source share
2 answers

There used to be an addon that kept you posted, I forgot its name ... it was BIG! For a while I had more anger than I knew what to do. But Blizzard decided that it took too much action from the hands of the players, so they stopped generating events for this kind. In particular, since about 2 years ago their policy was that no playerโ€™s actions (moving, casting, etc.) could be triggered by game events.

Currently, add-ons capture things like navigation keys and check the status of spells when a player moves. It is klutzy, but reasonably reasonable in what you want.

However, you do not want to initiate a playerโ€™s action, just play with a graphical interface. It should be possible. Look Lemm ...

One of the best resources for programming WOW add-ons is the WoW Wiki , from which I just provided a link to the buff list event. It looks like the UNIT_AURA event may be the one you are looking for, but go it yourself!

+5
source

I would recommend using COMBAT_LOG_EVENT_UNFILTERED . I use it in the addon that I wrote to notify me of some spell curses, and it works great.

I usually use wowprogramming.com for API documentation, but in this case wowwiki has a better description of the event and how to use it.

With recent patch 3.3, this event does not fire correctly for certain spell processes, so just keep that in mind if it does not work for you.

+1
source

All Articles