mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2006
Posts: 23
L
l0GicAL Offline OP
Ameglian cow
OP Offline
Ameglian cow
L
Joined: Dec 2006
Posts: 23
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.

Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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 }


Link Copied to Clipboard