Highlight Notifier

By GoldFish on Jun 22, 2010

This script notifies you when a highlight occurs. I know that most mIRC versions have a highlight setting, but I think this is a little easier to use. It also tells you the message right away.

If you use more than one nick and are called by a nick you don't always use, add || ( isin $1-) to line two. like this:

if ($me isin $1-) && (# != $active) {

is changed to

if ($me isin $1-) && (# != $active) || (FLOWERZZ isin $1-) {

meaning your other nick is "FLOWERZZ". Enjoy!

on &^*:text:*:#: {
  if ($me isin $1- || $anick isin $1-) && (# != $active) {
    echo -a 4You were highlighted in # $&
      by $nick $+ . $nick said " $+ $1- $+ " $+ . $&
      2To respond, type /msg # <your responce>.
  }
  elseif ($me isin $1-) && (# == $active) {
    haltdef
    echo -a 2< $+ $nick(#,$nick).pnick $+ > $1-
  }
}

Comments

Sign in to comment.
Sorasyn   -  Jul 03, 2010

@rayrayray if you dont like this one try looking up a different one?

 Respond  
rayrayray   -  Jul 02, 2010

Okay i need one for me, because i use 3 nicks can anyone re-wright it and post it me in mail, i would thank you ever so much

 Respond  
GoldFish   -  Jun 27, 2010

no...

 Respond  
Bielie   -  Jun 24, 2010

this looks like your getting highlighted on any text?

 Respond  
WorldDMT   -  Jun 23, 2010

lol you speak frensh now :D c'est bien :p

 Respond  
Jethro   -  Jun 23, 2010

oui oui :P lol

 Respond  
WorldDMT   -  Jun 23, 2010

WorldDMT, that regex won't work. You'll get an error.

i didnt test i told " i think" :/

 Respond  
Jethro   -  Jun 23, 2010

Yes, $iif is good in certain situations, but it has its downfall and a bit slower in the processing speed than a simple if and else statement.

 Respond  
Sorasyn   -  Jun 23, 2010

think of $iif as an nontraditional "IF" statement $iif(A == B,IF condition is true,IF condition is false) Can really come in handy in certain situations.

 Respond  
Jethro   -  Jun 23, 2010

WorldDMT, that regex won't work. You'll get an error.

 Respond  
WorldDMT   -  Jun 23, 2010

yeah it's same and i think we can change the regex with

$(/\s\Q $+ ($me|$anick) $+ \E\b/iS)

and about the "isin" i have spoken many times!! it is a bad idea

 Respond  
Jethro   -  Jun 23, 2010

World DMT's method is the same as as if-then-else, except he uses the $iif(), which, in turn, saves the repetition of an echo.

GoldFish, why would you need another elseif? An else condition will suffice (unless, of course, you only need your name called in the active channel to trigger the script., and negate the rest of common messages):> on &^:text::#: {
if ($me isin $1- || $anick isin $1-) && (# != $active) {
echo -a 4You were highlighted in # $&
by $nick $+ . $nick said " $+ $1- $+ " $+ . $&
2To respond, type /msg # .
}
else {
echo -a 2< $+ $nick(#,$nick).pnick $+ > $1-
haltdef
}
}Again, since you use $me isin $1-, you're gonna expect "false positives." And your current code won't work across networks if you have two rooms with the same name on them and are active in the second, where someone calls you in the first your command won't execute. That is why $activecid comes in handy.

 Respond  
GoldFish   -  Jun 23, 2010

Your scripts are so much better than mine >_> but I don't like using scripts I don't make cause people think there mine :P. I'll try to use Jethro's idea, it seems good. I'll add $anick too :D. No idea what $iif does xD

 Respond  
WorldDMT   -  Jun 23, 2010

$iif exist :D

remember the $anick too

on $^*:text:$(/\s\Q $+ $me $+ \E\b|(\s\Q $+ $anick $+ \E)\b/iS):#:{ haltdef | echo -abflimt $iif(# $cid != $active $activecid,You were highlighted in # by $nick saying:,$+(2,<,$nick(#,$nick).pnick,>)) $1- }

not tested

 Respond  
Jethro   -  Jun 22, 2010

Here: > echo -a 2< $+ $nick(#,$nick).pnick $+ > $1-

 Respond  
GoldFish   -  Jun 22, 2010

k ty Jethro! I will add $nick(#,$nick).pnick if I ever find out where to add it xD.

 Respond  
Jethro   -  Jun 22, 2010

GoldFish, the reason you didn't see the user mode prefix is that you didn't use the > $nick(#,$nick).pnickDon't use > if $me isin $1-, it results many false positives. This is all you need:

on $^*:text:$(/\s\Q $+ $me $+ \E\b/iS):#:{
  haltdef | if (# $cid != $active $activecid) {
    echo -bflimt You were highlighted in # by $nick saying: $1-
  }
  else { echo -abflimt $+($chr(3),2,<,$nick(#,$nick).pnick,>) $1- }
}
 Respond  
GoldFish   -  Jun 22, 2010

ok well I found out how! So far this is what I have, which I made myself after some thinking.

on &^:text::#: {
if ($me isin $1-) && (# != $active) {
echo -a 4You were highlighted in # $&
by $nick $+ . $nick said " $+ $1- $+ " $+ . $&
2To respond, type /msg # .
}
elseif ($me isin $1-) && (# == $active) {
haltdef
echo -a 2< $+ $nick $+ > $1-
}
}

The problem is, is someone said "Hi GoldFish" and they were voice and my prefixes were on, it would say:

Hi GoldFish but it should say <+person> Hi GoldFish I know I can add if ($nick isvoice) and all but im too lazy and it will take up way more bites than it should. Anyone?
 Respond  
GoldFish   -  Jun 22, 2010

oh thats usefull O_O idk much about that though. I can try to update with the colors.

 Respond  
Sorasyn   -  Jun 22, 2010

Seems a little vague, if your current $active is a busy channel etc.. highlight notices can get washed away.

Just a suggestion, you could color the line which triggered said script to stand out, making finding the highlight easier.

As for "Flowerzzz" if i remember right $anick returns your alternate nick.

 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.