I'm trying to create a sound alert which will play when I am given a challenge. I've got the sound part figured out, all that's left is something to read the chat and know if it is a trade/duel challenge.
if chatBox.findText(['wishes to duel', 'staked']) then
PlaySound('sound.wav');
This is one of the things I have tried. It didn't work, needless to say.
I think I need a chat-reading function, but perhaps it is more complicated. I'd like to hear anyone's thoughts about this.