Well this is pretty much my first regex script.....
When i say it, i mean, i built it from scratch, all my other regex scripts i had someone else do regex, didn't really understand it but yeah ;)
had a bit of help from the coders in #mricscripting on Undernet :) they're legends and know who they are :P
Enjoy :)
P.S. Change Furb(y|ster)?|Sasuke to your nicknames
Example: Your nick = Test
you want to be highlighted if they say Te|Tes|Test change it to
Te(s|st)? :)
on $*:text:/(Furb(y|ster)?|Sasuke)+/Si:#:{
if (%highlight. [ $+ [ $nick ] ]) { halt }
else {
set -u10 %highlight. [ $+ [ $nick ] ] 1
beep
if ($window(@HighlightMe)) {
aline @HighlightMe $nick in $chan on $network just said your name in the following sentence.
aline @HighlightMe $replace($1-,$regml(1),$+(04,$regml(1),))
aline @HighlightMe $str(-,100)
}
else {
window @HighlightMe
aline @HighlightMe $nick in $chan on $network just said your name in the following sentence.
aline @HighlightMe $replace($1-,$regml(1),$+(04,$regml(1),))
aline @HighlightMe $str(-,100)
}
}
}