|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
Helllo, I am webmaster of [spam deleted] en recently we have open a chatchannel, both webbased via javaapplet as tru Mirc 6.03
Because I am the moderator of the room it was very handy that there was a sound (wav file) hearing when someone enters the room. If I am correct it was a womans voice saying "entering channel" (but I dont know for sure enymore) But now It is not working anymore! I have tried everything in the configuration tool, checked my soundfiles, checked and rechecked but is wound work anymore.
Is there someone out there who has the super tip. I want to hear when someone enters the room, because I dont have to stay and sit behind my computer all the time. Thanks
Last edited by Hammer; 23/08/03 10:45 AM.
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
ON *:JOIN:#:splay joinsound.wav
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:JOIN:[color:red]#Channel[/color]: {
if ($nick != $me) {
splay path to wav
;i.e splay C:\mIRC\Sounds\Join.wav
}
}
Edit: Watchdog beat me to it.
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
new username: tidy_trax
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
Please explane. I am a newbie
Tx
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
I just thought I'd let you know that that code Watchdog gave will play that wave everytime someone joins including yourself, which is why I added if ($nick != $me), just incase you didn't want to play the wav when you join.
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
Thanks guys, you are very helpful!
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
You're welcome pal.
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
still one question left...
Do I have to put the code all the way down, on the last row, or do I have to put the code on top?
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Either way.. This is correct..
on 1:JOIN:#Channel: { if ($nick != $me) { splay file.wav } }
This is also correct..
on 1:JOIN:#Channel: {
if ($nick != $me) {
splay file.wav
}
}
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
I understand, sorry I am a little stupid here, but do I have to put "On 1" to the line, or is that means that I have to put the code on "line 1"
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
i think he means in the mirc editor(remote)
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
No no, On JOIN is the event. The number one is the user level.
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
"on 1" means that on the user level of 1 trigger the event JOIN.
It doesn't really matter which line mIRC script is placed in a file, but remember that mIRC reads each file line-by-line, so the less lines mIRC has to sort through, the quicker the script will be.
- Jason
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
Oke, here I have copied the last piece of code, include the line for the wav file. Is thit correct?
.$_(ps016): query $$input($_(cp005),129) .$_(ps017): nick $$input($_(cp007),129) $iif($server,$_(pa000)) .$iif($away == $false,$_(pa001)): awayon .$iif($away,$_(pa002)): awayoff .- .$_(pa003): var %tmp = $shortfn($logdir) $+ awaylog.txt | if ($exists(%tmp)) { run %tmp } | else { fx comply | a $^err $_(ca000) | h } .$_(pa004): write -c $shortfn($logdir) $+ awaylog.txt .$_(pa005): ctrl 8 .- .$_(BPHelp): hlp away $iif($server,$_(ps018): list) - $iif($server,$_(ps019)): quit }
;EOF on 1:JOIN:#Channel: {if ($nick != $me) {splay path to wav;i.e splay C:\mirc\system\sound\notify.wav}}
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
I dont have the join.wav file, so I took another
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
Well, earlier I did say path to wav, as in you choose the path to your wave file.
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
so, did I something wrong, because it is still not working .
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
on 1:JOIN:[color:red]#[/color]: {
if ($nick != $me) { splay C:\mirc\system\sound\notify.wav
}
}
If you want this to trigger in all channels you are in, leave the # there, if not, if you want it to trigger in a certain channel for instance in #Help..Use this..
on 1:JOIN:[color:red]#Help[/color]: {
if ($nick != $me) { splay C:\mirc\system\sound\notify.wav
}
}
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
Oke, this is my last try... The folowing code is the last piece of code, including the line you just given me. But still no sound!! Damn! I am doing something wrong!!
.$iif($away == $false,$_(pa001)): awayon .$iif($away,$_(pa002)): awayoff .- .$_(pa003): var %tmp = $shortfn($logdir) $+ awaylog.txt | if ($exists(%tmp)) { run %tmp } | else { fx comply | a $^err $_(ca000) | h } .$_(pa004): write -c $shortfn($logdir) $+ awaylog.txt .$_(pa005): ctrl 8 .- .$_(BPHelp): hlp away $iif($server,$_(ps018): list) - $iif($server,$_(ps019)): quit }
;EOF on 1:JOIN:#: { if ($nick != $me) { splay C:\mirc\system\sound\notify.wav }}
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
on !*:JOIN:#: { splay -w C:\mirc\system\sound\notify.wav }
Last edited by pheonix; 22/08/03 11:26 PM.
new username: tidy_trax
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
Put a space between the last two }'s and it should be fine.
- Jason
|
|
|
|
Joined: Aug 2003
Posts: 12
Pikka bird
|
OP
Pikka bird
Joined: Aug 2003
Posts: 12 |
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
|
|
|
|
|