Trigger PlaySound upon keyword event
I'm looking to create a macro/script/addon where if I receive a system message that any of my auction items expired or sold, I would hear a sound cue.
So basically it would search anything from CHAT_MSG_SYSTEM by keywords and triggers a PlaySound, example:
The word 'sold' appears, it activates PlaySound(5274) and ...
The word 'expired' appears, it activates PlaySound(5275).
I used to have this but lost it when I forgot to make a backup. Any advice or instruction would be very helpful.
Thanks.
Note: I'm a complete newbie with this so I don't know how to even set this up.
|