mIRC Homepage
Posted By: balrug WAV sound - 27/01/16 12:00 AM
So far everything I've designed on my bot is working wonderfully thanks to the community here. Cheers to that.

I'm now working on having my bot play a WAV file from the sounds folder that I have. This should be a relatively easy script but for some reason I just can't get it to run. Do I need the WAV file open for it to play? Also the msg itself doesn't even broadcast into the channel which is why I think it's getting hung up.

Here's the script

ON *:TEXT:!english *:#: {
/splay -w C:\Users\capn_matt\AppData\Roaming\mIRC\sounds\english.wav
msg $chan well do you? Kappa
}

Thank you again for your help.
Posted By: Wims Re: WAV sound - 28/01/16 02:05 PM
The script is correct, if you don't get a /splay error, makes sure you have sound enabled, you can see that with alt + o > sounds
Posted By: Y4kuzi Re: WAV sound - 28/01/16 02:18 PM
Make sure you add a second parameter after the !english command.
Or change the first line to on *:text:!english:#:{
© mIRC Discussion Forums