mIRC Homepage
Posted By: l0GicAL VERY simple join/part/quit script - 06/03/07 07:50 PM
Hello,

I'm trying to write a script where if a certain nick on a certain channel either joins, parts or quits, a .wav file will play and open a new window:

Code:
on *:QUIT:*:#channel: {
  if ($nick == JohnDoe) { 
    splay alert.wav  
    window -b @NOTICE
    aline -hpi @NOTICE 7[ $+ $time(hh:nn:ss) $+ 7] 4 $+ $1- 
  }
}



Obviously, the above script for quit doesn't work. Again, it's for join, part & quit.




Thank you.
Posted By: DJ_Sol Re: VERY simple join/part/quit script - 06/03/07 08:03 PM
I suggest you take a look at the mIRC help file. Look up "On Join" "On Quit" and "On Part".

Quit doesn't use a channel in the event. It is:

on *:quit:{ commands }

The code you have looks like it will work well for an on join command or on part as long as you get rid of the second asterik. Thats only used in a text event.

On *:join:#:{ commands }
on *:part:#:{ commands }
© mIRC Discussion Forums