Highlight Script V1.4

By Jamiie on Jun 07, 2008

This script logs all messages containing $me, $anick, and nick set by /hnick .

/hnick
/mecount: display's how many times you've been highlighted, who it was by and the message.
/hl: opens a window containing all highlights logged.

Thanks to Jethro_ for improving the coding for me.

Load in a new Remotes Section(Alt+R)

Update: Added menu for easy access instead of typing.

alias hnick {
  set %h3nick $$1
  echo -a 3rd highlight nick has been set as: $1
}
on *:text:*:#:{
  if $regex($1-,/(\s\Q $+ $me $+ \E\b)|(\s\Q $+ $anick $+ \E)|(\s\Q $+ %h3nick $+ \E)|$&
    $+ (\s\Q $+ nick4 $+ \E)|(\s\Q $+ nick5 $+ \E)|(\s\Q $+ nick6 $+ \E)|$&
    $+ (\s\Q $+ nick8 $+ \E)|(\s\Q $+ nick9 $+ \E)|(\s\Q $+ nick10 $+ \E)\b/iS) { hl }
}
alias -l hl {
  write highlight.txt $+($chr(40), $asctime(mmm/dd/yyyy),$chr(41)) $+($chr(40),$time(hh:nn:ss TT),$chr(41)) $+($chr(40),$nick,$chr(41)) $1-
  echo -a 7 $nick 14 said your name in7 $chan 14at7 $time 14with the following message:7 $1- $+ 14.
  inc %me 1
  set %hnick $nick
  set %hmessage $1-
  set %htime $time
  set %hchan $chan
}
alias hl { if $isfile(highlight.txt) { window -e @highlights | loadbuf -ip @highlights highlight.txt } }
alias mecount { msg $chan 14I have been highlighted7 %me 14times. Last person to highlight me $&
  was7 %hnick 14in channel:7 %hchan $+ 14. With the message:7 ( $+ %htime $+ ) ( $+ %hnick $+ ) %hmessage $+ 14. }

menu * {
  Highlight Script V1.4
  .Alternate Name: hnick $$?*="Enter an Alternate Nick"
  .Highlight Count: mecount
  .All Highlights: if $isfile(highlight.txt) { window -e @highlights | loadbuf -ip @highlights highlight.txt
  }
}

Comments

Sign in to comment.
Jenny   -  Nov 21, 2010

Thank you very much :)

 Respond  
Jamiie   -  Nov 21, 2010

@Jenny

I added the menu like you requested.

 Respond  
Jamiie   -  Nov 21, 2010

@Jenny

Search one of the key points in the script using Ctrl+F in the Remote Window, select the script and remove it.

 Respond  
Jenny   -  Nov 21, 2010

I also have the problem of a double echo. If the bot is loaded 2 times, how do I unload one?

 Respond  
Jenny   -  Nov 20, 2010

Thank you Jamiie I appreciate it

 Respond  
Jamiie   -  Nov 18, 2010

Thanks for the update Jethro_ I've been needing to update it for a while lol.

 Respond  
Jamiie   -  Nov 18, 2010

Yeah Jenny, I'll try to work on it maybe tonight or this weekend.. Haven't been on in quite a while.

 Respond  
Jenny   -  Nov 15, 2010

Great snippet! I am not much of a scripter myself but would like to know if it would be possible to add a menu to this so that you can just right click and select it instead of trying to remember the /hnick /hl /mecount commands? If you could do that this would even be better thnx

 Respond  
Jethro   -  Jul 02, 2010

Jamiie's script could be improved a bit:

alias hnick { 
  set %h3nick $$1
  echo -a 3rd highlight nick has been set as: $1
}
on *:text:*:#:{
  if $regex($1-,/(\s\Q $+ $me $+ \E\b)|(\s\Q $+ $anick $+ \E)|(\s\Q $+ %h3nick $+ \E)|$&
    $+ (\s\Q $+ nick4 $+ \E)|(\s\Q $+ nick5 $+ \E)|(\s\Q $+ nick6 $+ \E)|$&
    $+ (\s\Q $+ nick8 $+ \E)|(\s\Q $+ nick9 $+ \E)|(\s\Q $+ nick10 $+ \E)\b/iS) { hl }
}
alias -l hl {
  write highlight.txt $+($chr(40), $asctime(mmm/dd/yyyy),$chr(41)) $+($chr(40),$time(hh:nn:ss TT),$chr(41)) $+($chr(40),$nick,$chr(41)) $1-
  echo -a 7 $nick 14 said your name in7 $chan 14at7 $time 14with the following message:7 $1- $+ 14.
  inc %me 1
  set %hnick $nick
  set %hmessage $1-
  set %htime $time
  set %hchan $chan
}
alias hl { if $isfile(highlight.txt) { window -e @highlights | loadbuf -ip @highlights highlight.txt } }
alias mecount { msg $chan 14I have been highlighted7 %me 14times. Last person to highlight me $&
  was7 %hnick 14in channel:7 %hchan $+ 14. With the message:7 ( $+ %htime $+ ) ( $+ %hnick $+ ) %hmessage $+ 14. }

rayrayray, now all you have to do is replace nick4, nick5, etc...with the nicks you want to watch out for.

 Respond  
rayrayray   -  Jul 02, 2010

can you have more then one nick one this one ?

 Respond  
Jamiie   -  May 04, 2010

@Epik-Fail

Check if you have the bot loaded twice.

 Respond  
Epik-Fail   -  Apr 21, 2010

For some reason it echo's (Display's more then once for the same message)

[02:44] (~Darth_GaGa_DarkLordOfTheSith) y?
Eric_Cartman said your name in #ThePrefix at 02:45:05 with the following message: Prefix.
Eric_Cartman said your name in #ThePrefix at 02:45:05 with the following message: Prefix.
[02:45] (@Prefix) Ugh.

 Respond  
datahawkee   -  May 05, 2009

cool Highlight Script , thanks

 Respond  
Jamiie   -  Jun 08, 2008

Oh, Thanks. :D

 Respond  
Jamiie   -  Jun 08, 2008

I just added a month, date, and year feature to the logger, now it will log the month, date, year, and time you was highlighted.

 Respond  
PuNkTuReD   -  Jun 08, 2008

well sounds like youve thought of everything :P - 9

 Respond  
Jamiie   -  Jun 08, 2008

That\'s where /hl comes in. :P

 Respond  
Jamiie   -  Jun 08, 2008

Well, they are logged in a window. The log is used for future uses to see who highlighted you at one point and time. The echo\'s are just for if your active and it lets you know right then.

 Respond  
PuNkTuReD   -  Jun 08, 2008

maybe instead of echoing , have them logged in a custom window .
just a thought .

 Respond  
PuNkTuReD   -  Jun 08, 2008

8

 Respond  
Jamiie   -  Jun 08, 2008

What was the score you gave me, out of curiosity. :P

 Respond  
PuNkTuReD   -  Jun 08, 2008

nt from me man , its pretty damn gd .

 Respond  
Jamiie   -  Jun 08, 2008

Thanks, is there any suggestions? :)

 Respond  
PuNkTuReD   -  Jun 07, 2008

nice man

 Respond  
Jamiie   -  Jun 07, 2008

Thanks LucSatise. :)

@EL: Yeah, I was just in a hurry to get it done for a friend and didn\'t sit and think thoroughly through it. Thanks for the idea tho. :)

 Respond  
EL   -  Jun 07, 2008

Why now use $me and $anick or maybe have them set a var for each one and make it easily changeable so they dont haev to go into the code an change the trigger words.`-.-´

 Respond  
LucSatise   -  Jun 07, 2008

Nice Idea.
I know that you can set highlight in options to notify u on things but at least yours logs as well. gj

 Respond  
Jamiie   -  Jun 07, 2008

Thanks `Joel :)

 Respond  
`Joel   -  Jun 07, 2008

Very well done, easy to use.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.