mIRC Home    About    Download    Register    News    Help

Print Thread
WAV sound #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.

Re: WAV sound [Re: balrug] #256561 28/01/16 02:05 PM
Joined: Jul 2006
Posts: 3,749
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,749
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


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: WAV sound [Re: balrug] #256562 28/01/16 02:18 PM
Joined: Feb 2015
Posts: 19
Y
Y4kuzi Offline
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:#:{


ProvisionIRCd - advanced mIRC based IRC daemon.
http://www.provisionircd.tk