mIRC Homepage
Posted By: Deep3D $me - 23/12/03 08:34 PM
If somone type my name in a channel, then mark as red..

eg: Hello Deep3D, how are you doing?

How to make an easy fast script for this?
Posted By: Hitchhiker Re: $me - 23/12/03 08:44 PM
you don't have to, use alt O > IRC > Highlight,
click on add , then just add $me to the list choose the colour, but i think thatl highlights the whole line.
otherwise you would need to use an on ^*:text and use $reptok or $replace to replace your nick with a coloured one.
Posted By: Deep3D Re: $me - 23/12/03 08:48 PM
yes, but i don't want it on the whole line.. That is so "ugly"... :tongue:

whats the difference between ^*: and *:

But can somone make a fast example? Or the whole script? Its not that big.. so.. :tongue: but i rally don't know how to make it..
Posted By: Hitchhiker Re: $me - 23/12/03 09:21 PM
^ halts the default echo, read /help halting default text for more info
this will only replace if your nick is a whole word, might want to think about removing other colour codes for the reptok, if there when in the same would as your nick then you would wouldnt be shown red. try this:
Code:
on ^*:text:$(* $me *):*:{ 
  echo -imt $iif(#,#,$nick) < $+ $nick $+ > $reptok($1-,$me,$+($chr(3),04,$me,$chr(3)),32)
  haltdef
} 

Posted By: Deep3D Re: $me - 23/12/03 10:02 PM
thanks.. I'm using this one now..

Code:
on ^*:text:*:#: {
  if ($me isin $1-) {
    echo -t $chan < $+ 5 $+ $nick $+  $+ > $1-
    haltdef
  }
  else return
}

E.g:
[23:07:10] <somedude> Hublah, wazz up?
© mIRC Discussion Forums