mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline OP
Hoopy frood
OP Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
I have a very simple line of code here that basically makes a sound when people type in a channel.

What I'd like it to do is to ONLY make a sound when I'm AWAY, just to get my attention when people are typing in the channel.

Can any experienced script writer help me make this happen?

Code:
on *:TEXT:*:#:{ if (circuit isin $chan) { splay C:\WINDOWS\Media\ding.wav } 

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Code:

on *:TEXT:*:#: {
  if ((circuit isin #) && ($away)) splay C:\WINDOWS\Media\ding.wav
}



If the channel name is #circuit you could do...

Code:

on *:TEXT:*:#circuit: {
  if ($away) splay C:\WINDOWS\Media\ding.wav
}




Link Copied to Clipboard