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