mIRC Home    About    Download    Register    News    Help

Print Thread
#256546 27/01/16 12:00 AM
Joined: Jan 2016
Posts: 5
B
balrug Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Jan 2016
Posts: 5
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.

balrug #256561 28/01/16 02:05 PM
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
balrug #256562 28/01/16 02:18 PM
Joined: Feb 2015
Posts: 19
Y
Pikka bird
Offline
Pikka bird
Y
Joined: Feb 2015
Posts: 19
Make sure you add a second parameter after the !english command.
Or change the first line to on *:text:!english:#:{


Link Copied to Clipboard