Highlight with log, auto-reply and watcher
mIRC Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | May 24, 2009 |
| Last Updated | Nov 04, 2009 |
| Tags | higlight log mirc monitor |
Introduction
Instructions are included.
Logs whenever you get highlighted in a channel and can also auto-reply if a message is not given.
By default automatic replies are turned off and highlights are turned on.
Strips color codes before checking so people can't bypass it by using rainbow text.

The log after being highlighted with a message.

The log after being highlighted without a message and multi-servers turned on

The log with "Watcher" on after a message-less highlight followed by "Highlight with watcher on"
Tested in mIRC 6.17 and 6.35
Version 0.8
Added multi-server support
Multi-server report is default off
Added timer controlled monitoring period. ("Watcher")
Watcher is default off.
Time to watch after highlight is default 10 seconds.
Added pretty colors and help text.
Also added echos to let you know if you know if /highlights commands worked.
Changed watcher to support multiple nick watching for you hectic people. Works well enough but doesn't keep in its nice little neat places.
Added use of $tips and cleaned it up a bit. $tips may not be supported in versions before 6.3. Tips are default on.
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on May 24, 2009 9:56 pm
Posted on May 24, 2009 9:56 pm
Never seen this done with a window before, few things
Are not needed if you use "tokenize 32 $strip($1-)" after the on text line. Not really a needed but "($2 == $null)" can be "(!$2)" just shortens it a little.
| Code: |
var %hilit = $strip($1-) var %h1lit = $strip($1) |
Are not needed if you use "tokenize 32 $strip($1-)" after the on text line. Not really a needed but "($2 == $null)" can be "(!$2)" just shortens it a little.
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on May 24, 2009 10:18 pm
Posted on May 24, 2009 10:18 pm
or instead of useing var %hilit = $strip($1-) and tokenize 32 $strip($1-) you can make ur on text event like this
then use $regml(1) instead of $1-
| Code: |
| on $*:text:/(.+)/iS:#:{ |
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on May 25, 2009 3:28 am
Posted on May 25, 2009 3:28 am
I have something similar but just tossed together. I'd probably switch to yours if you got timers or something to get the next few lines in that channel.
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on May 25, 2009 5:02 am
Posted on May 25, 2009 5:02 am
@blitzjager Yeah, thats a great idea. I'll probably do that next.
Scratch that, just did it. Its a little buggy only letting one nick be watched although I could probably fix that by changing "set %hinick $nick" to "set %hinick. $+ $nick" and then change "if (%hinick == $nick)" to "if (%hinick* == $nick)" although i dunno if that would work. It also only works in case there is no message with the highlight (For cleanliness reasons) although thats easily changed and I can do that if you think it would be better.
@slacker & Aucun50 I was trying to space it out and make it much more easily customizable. I was kind of expecting people to mess with it to optimize it. But thanks for the tips.
Scratch that, just did it. Its a little buggy only letting one nick be watched although I could probably fix that by changing "set %hinick $nick" to "set %hinick. $+ $nick" and then change "if (%hinick == $nick)" to "if (%hinick* == $nick)" although i dunno if that would work. It also only works in case there is no message with the highlight (For cleanliness reasons) although thats easily changed and I can do that if you think it would be better.
@slacker & Aucun50 I was trying to space it out and make it much more easily customizable. I was kind of expecting people to mess with it to optimize it. But thanks for the tips.
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on May 25, 2009 6:21 am
Posted on May 25, 2009 6:21 am
hi
u use if $me isin %var
if your nick is "bam" and we type bamboo u will hightlight??? dont use isin here use $findtok is better
u can replace it by
and u can replace aline by echo i u want
why u put /window -e u dont need edit box no?!!
"if (%highlights == off) { halt }" is unless u can remove it
so u can do this
for alias highlights & alias hrep u can do it like this
better use 1 & 0 for variable then u'll use it like this
if (%var) <do cmd> <==== if %var = 1 the commande will be execute if %var = 0 it's dont
so finaly your code can be like this
u use if $me isin %var
if your nick is "bam" and we type bamboo u will hightlight??? dont use isin here use $findtok is better
| Code: |
| if (%hiservers == on) { aline @highlight 7 $+ $server $nick 14highlighted you at 7 $+ $time 14in 7 $+ $chan } if (%hiservers == off) { aline @highlight 7 $+ $nick 14highlighted you at 7 $+ $time 14in 7 $+ $chan } |
u can replace it by
| Code: |
| aline @highlight 7 $+ $iif(%hiservers == on,$server) $nick 14highlighted you at 7 $+ $time 14in 7 $+ # |
and u can replace aline by echo i u want
why u put /window -e u dont need edit box no?!!
"if (%highlights == off) { halt }" is unless u can remove it
so u can do this
| Code: |
| on *:text:*:#:{ tokenize 32 $strip($1-) if (%highlights == on) { if $findtok($1-,$me,32) { if ($2 == $null) && (%hrep == on) { msg # $nick $+ ? aline @highlight 0....14Replied? 7y } aline @highlight 7 $+ $iif(%hiservers == on,$server) $nick 14highlighted you at 7 $+ $time 14in 7 $+ # aline @highlight 0..14With message: 7 $+ $iif($2,$1-,No message) } } } |
for alias highlights & alias hrep u can do it like this
| Code: |
| alias hrep if ($istok(on.off,$1,46)) set %hrep $1 alias highlights { if ($istok(on.off,$1,46)) { set %highlights $1 window $iif($1 == on,-enxz,-c) @highlight } elseif ($1 == clear) dline @highlight 1- $+ $line(@highlight,0) elseif (($1 == servers) && ($istok(on.off,$2,46))) set %hiservers $2 } |
better use 1 & 0 for variable then u'll use it like this
if (%var) <do cmd> <==== if %var = 1 the commande will be execute if %var = 0 it's dont
so finaly your code can be like this
| Code: |
| on *:LOAD:{ echo -a Highlight script by sloth loaded. echo -a To turn it on /highlights on echo -a To turn it off /highlights off echo -a To clear highlight log /highlights clear echo -a To set automatic replies on or off echo -a use /hrep on or /hrep off echo -a Use /highlights servers on to enable multi-server logging echo -a Use /highlights servers off to disable multi-server logging echo -a version 0.4 set %highlights 1 set %hrep 0 set %hiservers 0 } on *:text:*:#:{ tokenize 32 $strip($1-) if (%highlights) { if $findtok($1-,$me,32) { if ($2 == $null) && (%hrep) { msg # $nick $+ ? aline @highlight 0....14Replied? 7y } aline @highlight 7 $+ $iif(%hiservers,$server) $nick 14highlighted you at 7 $+ $time 14in 7 $+ # aline @highlight 0..14With message: 7 $+ $iif($2,$1-,No message) } } } alias hrep if ($istok(on.off,$1,46)) set %hrep $iif($1 == on,1) alias highlights { if ($istok(on.off,$1,46)) { set %highlights $iif($1 == on,1) window $iif($1 == on,-enxz,-c) @highlight } elseif ($1 == clear) dline @highlight 1- $+ $line(@highlight,0) elseif (($1 == servers) && ($istok(on.off,$2,46))) set %hiservers $iif($2 == on,1) } |
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on May 25, 2009 6:32 am
Posted on May 25, 2009 6:32 am
@WorldDMT Yeah I know it can be much shorter, but I personally like spacing scripts out more because:
1) It allows for people to customize it more as I said
and 2) It means if I'm updating it and I get an error, I get a line that has one clear command on it, makes it easier for me when I'm making it. I'm lazy like that.
But thanks a bunch for the input.
1) It allows for people to customize it more as I said
and 2) It means if I'm updating it and I get an error, I get a line that has one clear command on it, makes it easier for me when I'm making it. I'm lazy like that.
But thanks a bunch for the input.
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on May 25, 2009 2:28 pm
Posted on May 25, 2009 2:28 pm
I like it.. I see alot of these things about.. but I like this one.
Good job, and it works which is a bonus, lol. I like to really space my codes out aswell.. it just looks a little neater to me.
If it works, don't worry about it I say :P
I dislike how everyone is beggining to get into this 'trend' of pushing everything onto one line now :/
:D
Er sorry getting sidetracked, 7/10 it works :D and before someone picks that apart >_> I know okay.
Good job, and it works which is a bonus, lol. I like to really space my codes out aswell.. it just looks a little neater to me.
If it works, don't worry about it I say :P
I dislike how everyone is beggining to get into this 'trend' of pushing everything onto one line now :/
| Code: |
| on *:TEXT:*IRC scripting*:#:{ goto $location(desk) { describe $chan rambles } else { mode $chan +sigh } } |
:D
Er sorry getting sidetracked, 7/10 it works :D and before someone picks that apart >_> I know okay.
mIRC Snippet:
Highlight with log, auto-reply and watcher
Posted on Nov 4, 2009 11:34 am
Posted on Nov 4, 2009 11:34 am
Haha, yeah. I don't know when everyone got into this cramping up stuff. I remember when people used to tell me to space my scripts out even more.
Also updated because I finally upgraded to 6.35
Also updated because I finally upgraded to 6.35





