mIRC Home    About    Download    Register    News    Help

Print Thread
#72649 24/02/04 12:07 PM
Joined: Feb 2004
Posts: 1
P
Parin Offline OP
Mostly harmless
OP Offline
Mostly harmless
P
Joined: Feb 2004
Posts: 1
I'm trying to have mirc beep me and highlight the channel if people say certain words in a line. Currently, I use commas to seperate the words, but then it highlights if any of the words are shown, and not if all in the same line together.

For example:
I want mirc to highlight the channel if someone says:
Parin + you + suck

If i put in the highlight options:
Parin, you, suck

Then it beeps everytime someone says 'you' as well.
I only want it to beep if those three words appear in a sentence together.
But not necessarily one after the other.

For example:
Parin, lewser, you know what, you really suck.
--> i want it to beep on that as well, because all three words are in that sentence.

Know what I mean? wink
So is this possible?

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on ^*:text:$($+(*,$me,*)):#:{
  if $istok($1-,you,32) && $istok($1-,suck,32) {
    echo $highlight($me).color -bfirt # $+(<,$nick,>) $1-
    window -g2 #
    haltdef
  }
}

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
*parin*you*suck* as highlight text if you want to use the internal mIRC highlights options


If it ain't broken, don't fix it!

Link Copied to Clipboard