Is there any way in mIRC to set up a sound to be played at certain times? I'm in a small traders group and would like to send a sound at the market open and close. We've done it manually for years but it has become quite tedious.
The easiest way to do this would require each person in the channel to have the same sound (or at least a sound with the same filename). There are other more complicated methods, but I'm not sure how they would actually be done.
Here's an example of the simplest method that I could think of
You should be getting a line number and script name with that message. Find the line specified in the script specified and see what you have there. My post (which you say you altered) works per your request.
sounds like you havent closed a } bracket somewhere and the next line is an event catch.(definition)
if the } isn't there then the line is being included in the last bit of code, meaning mirc is trying to use ON x as an alias.
bad-
Code:
alias stuff {
echo -s this is inside the alias
echo -s the next line is where the curly bracket should go but it's commented out
;}
on 1:input:*:{ stuff }
While playing around I did get lots of errors that listed the line and the error so I know what you're saying but this is a notice in the status screen. "ON Unknown command" still comes up but the script below is working.
Since we wanted it to be easy we chose something that most everyone would have....tada.wav. And since it's the same sound for open and close I was able to simplify it by using:
on me:*:join:#[our group]:{ timer 06:30:00 1 1 .sound tada.wav The market is open! { on *:WAVEEND:/timer 06:30:00 1 1 .sound tada.wav The market is open!} timer 13:00:00 1 1 .sound tada.wav The market is closed. Hope your day was good! { on *:WAVEEND:/timer 13:00:00 1 1 .sound tada.wav The market is closed. Hope your day was good!} }
This gets 2 timers queued. As soon as the one plays it resets for the next time set.
This seems to work great and I will add some form of if/then/goto to eliminate Saturday/Sunday alarms when I get a chance. I know nothing of this programing stuff so it takes a while.
And yes, yours worked but since we only had one sound I just couldn't leave well enough alone.