This is just a simple highlight logger, logs any highlight of your nick in a separate window.
on $*:text:/\b/Si:#:{
tokenize 32 $strip($1-) {
if ($me isin $1-) {
window -De @highlights | echo @highlights $timestamp $nick has highlighted you in $chan on $network with the message: $1
}
}
}
Personally i wouldn't have even used regex at all. At the upmost i would have done something like.
on *:TEXT:$(* $me $+ ? *):*:{
if (!$window(@HighlightLog)) { window -ez @HighLightLog }
if (!$hget(HLFlood $+ $network,$wildsite)) {
hadd -mz $+(HLFlood,$network) $wildsite 30
aline -hi20 @HighlightLog Highlight - $nick ( $+ $wildsite $+ ) - $+($iif(#,#,Query),@,$network) - $timestamp $$1-
}
}
The reason i would use hashtables is because if you EXIT mIRC the variables are left in the VAR tab if the unset isn't triggered. Atleast hash tables are deleted automatically when you EXIT unless you have a method of saving them on exit. If you do you can simple exclude them from your method. That's just my two cents.
http://www.urbandictionary.com/define.php?term=napa
Correcting a mIRC script to the Nth degree, perfecting it with stupidly complicated methods which are most likely practical, but no-body understands.
Jim: What the hell is this script all about?
Jimbob: Looks like someone has done a napa on it ..
XDDDDDD <333 NAPA FTW.
oobi Said:
I don't see the need to change it any, it works exactly how it's supposed to, thanks for the usesless advice anyways though.
lmao that just made me laugh
well no real need for
tokenize 32 $strip($1-) {
cuz you are striping the color with the regex an if you are going to use regex why not use $regml as well.
you may want to add some sort of flood control to this or be flooded eh..
but all in all keep up the msl scripting.....
on $*:text:/(.+)/Si:#:{
if ($me isin $regml(1) && !$($+(%,highlightflood,.,$nick),2)) {
set -u30 $+(%,highlightflood,.,$nick) on
window -De @highlights
echo @highlights $timestamp $nick has highlighted you in # on $network with the message: $regml(1)
}
}
oh and @Ghost-writer
i think you ment
on *:text:$($+(*,$me,*)):#: {
Not
on $*:text:*$( $+ $me $+ )*:#: {
;x
on $*:text:/\b/Si:#:{
tokenize 32 $strip($1-) {
You do not to use that at all, And dont use | in a short code like this, it will miss up comments and slow the snippet down, | are never good, i dont want scroll sidways.
on $*:text:/\b/Si:#:{
tokenize 32 $strip($1-) {
if ($me isin $1-) {
window -De @highlights
echo @highlights $timestamp $nick has highlighted you in $chan on $network with the message: $1
}
}
}
Now if you dont want to stop ALL other text events you could do somthing like
on $*:text:*$( $+ $me $+ )*:#: {
...
That will trigger when somone says your name :).