mIRC Home    About    Download    Register    News    Help

Print Thread
#117292 14/04/05 12:55 PM
Joined: Aug 2004
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 44
Ok guys/gals let me see if i can explain this a little better. I have a .txt file with this on it in my mirc folder

C:\mIRC\sounds\join.wav
C:\mIRC\sounds\kick.wav
C:\mIRC\sounds\ban.wav
C:\mIRC\sounds\op.wav
C:\mIRC\sounds\deop.wav
C:\mIRC\sounds\failed.wav
C:\mIRC\sounds\failed.wav
C:\mIRC\sounds\complete.wav
C:\mIRC\sounds\startup.wav
C:\mIRC\sounds\DISCON~1.WAV
C:\mIRC\sounds\PAGE.WAV
C:\mIRC\sounds\complete.wav
C:\mIRC\sounds\voice.wav
C:\mIRC\sounds\devoice.wav
C:\mIRC\sounds\message.wav
C:\mIRC\sounds\click.wav
C:\mIRC\sounds\ignoreon.wav
C:\mIRC\sounds\error.wav
C:\mIRC\sounds\paging.wav
C:\mIRC\sounds\part.wav
C:\mIRC\sounds\alarm.wav

they are .wav and .mp3 files that i have in my sound folder in mirc. What i would like to have happen is when certain actions happen while using mirc say someone gets kicked is for it to play the kick.wav and so on but read from the above txt file (if possible). I dont know anything about coding so please explain in newbie terms. If you look at the above wavs you can see what actions i'd like to have sound for. Thanx in advance for any help

#117293 14/04/05 02:26 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Easier to just code each sound separtely, since most (if not all) of them are events not actions.
For example joining a room is handled with the ON JOIN event
being kick ON KICK
banned ON BAN

and so on

Some of them, like join.wav, are fairly obvious as to when you want that particular file to play. But some aren't so easy to determine, for example the paging & alarm wav files.

Code:
on *:join:#: .splay -w join.wav
on *:kick:#: .splay -w kick.wav
on *:ban:#: .splay -w ban.wav
on *:op:#: .splay -w op.wav
on *:deop:#: .splay -w deop.wav
on *:start: .splay -w startup.wav
on *:disconnect: .splay -w discon~1.wav
on *:voice:#: .splay -w voice.wav
on *:devoice:#: .splay -w devoice.wav
 


There's a few to give you an idea as to how they would be formatted.

For more assistance regarding events look in your help file

#117294 14/04/05 03:00 PM
Joined: Aug 2004
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 44
Yeah your way works alot better. When i first join a channel how can i make mirc wait like 5 secounds before giving me ops

#117295 14/04/05 03:29 PM
Joined: Dec 2002
Posts: 59
A
Babel fish
Offline
Babel fish
A
Joined: Dec 2002
Posts: 59
the server usually gives you op not mIRC. .timerdelayopsound 1 5 .splay... would delay the sound though.

#117296 14/04/05 05:02 PM
Joined: Aug 2004
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 44
How can i make mirc wait 15 sec before connecting to server after i hit the connect button. I have a 15 sec wav i'd like to have play after i hit connect then have mirc start

#117297 14/04/05 05:52 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
I don't think it's possible to have a delay after clicking the connect button on the toolbar. Just make mIRC connect after 15 seconds when mIRC starts up. Something like..

Code:
On *:Start: {
  splay file.wav
}

On *:WaveEnd: {
  if ($filename == $mircdirSounds\file.wav) {
    server the.server.name
  }
}

#117298 14/04/05 06:42 PM
Joined: Aug 2004
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 44
dont i need to set a timer so that the script dont try to connect till after the wav is done ?? the wav is 23 sec long
Cause this one just plays the wav at startup but nothing else

#117299 14/04/05 07:02 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
No, it will connect when the song has finished.

#117300 14/04/05 07:04 PM
Joined: Jun 2003
Posts: 994
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
Options >> Connect >> Options .. uncheck "Connect on startup" .. then it won't connect 'til the .wav file completes.
You DO need to put your server in the script, ie: server irc.undernet.org (or whatever your server of choice happens to be). smile


I refuse to engage in a battle of wits with an unarmed person. wink
#117301 14/04/05 07:22 PM
Joined: Aug 2004
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 44
Here's what I have

On *:Start: {
splay startup.mp3
}

On *:WaveEnd: {
if ($filename == $mircdirSounds\startup.mp3) {
server irc.rizon.net
}
}

It plays the startup.mp3 but does not connect after the mp3 ends it just sits there confused

#117302 14/04/05 07:27 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Change "waveend" to "mp3end".


Invision Support
#Invision on irc.irchighway.net
#117303 14/04/05 07:34 PM
Joined: Aug 2004
Posts: 44
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2004
Posts: 44
ahhh that makes sense thanx

#117304 14/04/05 07:45 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
on songend will catch midis, mp3s and wavs (Possibly wmas and oggs too) ending so you might want to use that in case you decide to change the sound file later.


New username: hixxy
#117305 14/04/05 07:59 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Hm... That is good to know. I like learning things. laugh


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard