Weak Aura Sound notification

Hello!

Im looking for an option that will allow me to add a sound notification for debuffs i apply when they’re about to expire (say remain 4-5 seconds)

I used to have that in my UI but i updated my profiles and now i can’t find it anywhere in WA…

Say casting Rake and i want a sound when it has 4 seconds remaining.

Hello Deed,

you can do this by adding a condition in the Condition tab.

If you click on the Condition-Tab of your existing debuff weak aura, you can do the following:

  1. Click on “Add Condition”
  2. Choose for “If Trigger 1”: Remaining Duration
  3. Set the Operator and the Remaining Duration (in this case e.g. “< 5”
  4. For then select “Sound” for a sound notification and then “Play” to play the sound once (or loop if you want to hear it all the time :smiley: )
  5. Then select in the fields below the sound (e.g. Air Horn) and the channel (the channels can have different volumes depending on your configuration in your sound settings, check them out. If you are unsure just use Master)

Et voila.

Here is an example (beware: This is a string WA, you probably just want to look at the condition tab and not use this):

!ns1YYPooq0VM7IzrsHnpUzQkzbqbvskEniNjBOeryjBuIrYLEKbYc(2NULStiZSjfUmYT6ZPvF6UfnHMrjhOeo(al1ExLujOKLpLn7HftOKcTYrKFiOlstPeMsEG5KAf6S1XmoCb3Bcg36ovdyTICTIBPK4NknqOdcdtQ(5Exivs7(FS)aICDL2aawKeEsdV7gE3dFdUWL26k2PmXr4JFjp)4VQp)iLCAzrHv4Oth0Tx3(D72VFAAN(3K2JwCvVbuIrucXplepxaBH8OG)SK72dbQthi4ERtFaj(PAoZbo6B(N5HnGeip6ozkcfmNJ5K9sD8YSgwdlJwH1oJSSuySX0l7td4sJakGjyXbekf7GOXlcXF4aZC68lp65LIdcLdvfsqiA0uaiqatvch0EqA0c31yDRUwaEc6k527ayID(IIOqC)W1ZN(0S26agCGCVs8ogOqAdPMFx4BcatEKs2oEijBljB4A4G7TITEmjhrjnOwJb98lJ3lYF7l0RmIaAYQjZMfpKRyoNWO2IRryVjI8X2z1MDZ1CbYQTwuv9aVjJW9J56OGQT8B5gS7IVigDjC2iqXPe6n(wu)svU7UaZQlQhryfAOLiw8Ws97ISOhHJ2IRs6G78pAd)zdRMsE(Zvsfgcw1FdLBScTib6aFfAVKfNOKXtwKnznofuvSslrnB0YSSLZbG8Oq4ewmOQ89AtJlTOkmqsa9omhl0HeDAkAnwujJxpzYcihqYSdVp)1KY)yKVcNUufYYMUuns6uJ8JZV8xEgh578lzqUFSDs6QFpijnnjPt)b3m4p7(7b4O0nbA4Y2o)yRCEOyFrpnEYENzKSDvWrsCSwgBwZKyTwdA0TOdvE4R(Hj)9yv9lgJ7HtwAVI3CVXkyWVXcL8akYfSCXMHC(sLDZZc2BdHwy7M5cUKTHG(z3muAUxBuxRllBzddMsakYCMfibJFTbBiCFsVR5hPsZcxRc9H5HBA9voz7mDEfZA)FwT4DT)hJXXjOsTSUv6I(sjPxNKEDVRrfds(EP41C0)9d

14 Likes

hey!

thanks, that worked like a charm, much appreciated. :smiley:

I have one question though when im switching target then i return to the target with debuff less than 5 sec sound is being played again.
Is this intended or you can prevent it?

Hi,

out of the box you cannot prevent it unless you are willing to do some trade-offs. Here are some options you can use to prevent repeated sound if you switch targets:

  1. Just use a very light noise that you will not notice that much (e.g. “Arrow Swoosh” or “Shotgun”). This does not fix the issue but it will be less obvious and a small reminder rather then something that will basically force your attention.
  2. You create an “All Of” condition and then enter a condition that says “Remaining Duration < 5” and “Remaining Duration > 2” or similar and then add the sound. This will play a sound only at 2 possible seconds during the debuff duration and if you miss this moment you will hear nothing.
  3. You get more advanced logic.

For option 3 a few things on top of my head:

  • The issue with your request is that you would need to somehow read the target GUID (https://wowwiki.fandom.com/wiki/API_UnitGUID), save it in an environmental variable (this is easy) and add a boolean (true/false) variable which is mapped to that target id.
  • Then you could create an if statement which would entail the activation of the trigger.
  • Remember that you would also need to write a logic which has to reset the value for the target either by an event (which will require an event listener of some sort) or after a fixed duration. This could also be done by another invisible weak aura which is listening to certain events and set the boolean value to false again.
  • As clarification: An event is e.g. that Rake has been re-established on target with GUID xy or that Rake has fallen off.
  • An event can look like this: https://wow.gamepedia.com/UNIT_SPELLCAST_SUCCEEDED
  • If you want to see certain events in the game you can either look for them with your favorite search engine (e.g. "wow event ) or you can get familiar with the addon “EventTracker” which allows you to track game events when they happen and displays information about them
  • So if you could pull that off, then you could go to the “Actions” tab of the first aura and add the sound in the “On Show” sub menu.

As you may realise option 3 requires some technical know-how about the game and I do not possess a knowledge about lua implementation that deep yet. Therefore, if you really need this functionality and would like to pursue with option 3 rather than with option 1 or 2 I would recommend that you visit the weakaura discord and/or learn about this yourself: https://discordapp.com/invite/wa2

2 Likes

Alright, thanks a lot for help. Will do some research and see how it goes. :slight_smile:

Hi,
just to update the option 3 based on my own research: I tried a couple of things and later asked the guys in the WeakAuras discord.

I guess the smartest way is to use the weak aura already present but then add another condition to the already existing condition (just like described in option 2) and then write a small code which prevents the trigger to be activated during the remaining time of the debuff for that specific GUID.

Happy research :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.