[REQUEST] User join Script

By Krawalli on Jul 22, 2013

Hey Guys,
amazing work u did there on this website :) i got lot of help with your scripts!
I need a Script who did the follow:

I CANT POST IN THE FORUM :( dont know why, geting stuckd on "Submit" white site opend nothing happen!

1. the script should automatically write the last username who joined my chat into a .txt file whos called "names.txt"

Example:
Toni joind the room > Script save: Toni
Smilie123 joind the room > Remove Toni > Script save: Smilie123

2. I found this Script:

On *:join:#fragharry: { splay C:file\soundfile.wave }

But i want to play different sounds for specific users!

Example:

On *:join:#fragharry: {
Username 1 splay C:file\soundfile1.wave
Username 2 splay C:file\soundfile2.wave
Username 3 splay C:file\soundfile3.wave
Username 4 splay C:file\soundfile4.wave
}

Would be awesome if someone can help me :)

Comments

Sign in to comment.
Yama   -  Jul 22, 2013

On *:join:#fragharry: {
/write -c names.txt $nick
if ( $nick == Peter ) { splay peter.wav }
elseif ( $nick == David ) { splay david.wav }
elseif ( $nick == Tony ) { splay tony.wav }
}
If you raname the soundfiles exactly like the usernames, you can remove line 3-5 and put this:
/splay $nick $+ .wav
You don't need to set the path to sound files that are in the sounds folder in mIRC.
The names.txt will be created in %appdata% or next to mirc.exe (deppends on your installation).

nox`  -  Jul 22, 2013

On *:join:#:fragharry {
write -c names.txt $nick
if ($istok(Peter David Tony,$nick,32)) sound $nick $+ .wav
}

Krawalli  -  Jul 23, 2013

First i have to say: Thank you! :)
Part with names.txt works very fine!

But it didnt play the sounds :/
Iam useing mirc for twitch.tv is there any difference to other channels?

Yama  -  Jul 23, 2013

If you use Nox´s code, replace 'sound' with 'splay'.
And look in the server status window for errors and tell us.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.