mIRC Homepage
I did following to give the Nicks in the Chan window a special look:

Code:
on ^*:TEXT:*:#:{
  echo -tm # 11«0 $+ $nick(#,$nick).pnick $+ 11» $1-
  haltdef
}


that works fine as long other ppl talk in the channel or in queries.... But when I write something.... all gone, I mean no prefixes, like I want them to have....

How can the code be changed that this works too when I write something. Any solutions? Thanx in advance.. smile
Is this what you meant?

on *:INPUT:#: {
if (/ isin $1) { return $1- } { halt }
if (/me isin $1) { return $1- } { halt }
if (/ame isin $1) { return $1- } { halt }
if (/amsg isin $1) { return $1- } { halt }
if (/msg isin $1) { return $1- } { halt }
echo -t 11«0 $+ $me $+ 11» $1-
haltdef
}

I added the if statements because everytime I typed
"/me is testing."
It returned: [03:09] * SladeKraven /me is testing.
I think this link may be what your looking for
web page
No, I am sorry. First thanks for help... smile

Maybe I explain a little more... a colored nicklist I do have. Working no problem.

My above mentioned script line does following output:

<< Chatter >> Hello everybody

It should do that as well when I write something, but it shows like this:

<NiGHtOwL> hi Chatter

Why is that style missing, when I write something. And SladeKraven, when I tried yours... Well the colors and style is then the same...I can see what I wrote to the channel... but others can't or for example I do /j #futureworld... Then I can read in the channel /j #futureworld, but noone else and nothing else happens.
That's the hard way of doing it, just use:

Code:
on *:INPUT:*: {
  if ($left($1,1) == $readini($mircini,text,commandchar)) { return }
  else { echo -at &lt; $+ $me $+ &gt; $1- | halt }
}
That doesn't send the text..
Code:
on *:INPUT:*: {
  if ( ( $left($1,1) != $readini($mircini,text,commandchar) ) &amp;&amp; ( $left($1,1) != / ) ) { 
    echo $colour(own) -at &lt; $+ $me $+ &gt; $1-
    .msg $active $1-
    halt
  }
}
Only because I didn't add the /msg command, I was showing that there's no need for all those if statements when it can be done simply with one line.
that would work so far, but.... I tested... what happens is, that it does,t show usermodes with my nick... somewhere I am Op, some Channel HalfOp and some I got autovoice and others just my nick...

Could the above lines be altered in this way that it would show (when I am)

<@NiGHtOwL>
<%NiGHtOwL>
<+NiGHtOwL>
<NiGHtOwL>

Could someone give me the complete code here? Thanks smile
Code:
on *:INPUT:*: {
  if (($left($1,1) == / || $left($1,1) == $readini($mircini,text,commandchar)) &amp;&amp; (!$ctrlenter)) return
  .msg $active $1-
  echo $color(own) -atmi2 11«0 $+ $nick($chan,$nick).pnick $+ 11» $1-
  halt
}
Code:
on *:INPUT:*: {
  if ($left($1,1) == $readini($mircini,text,commandchar)) { return }
  .msg $active $1-
  echo $color(own) -at &lt; $+ $nick($active,$me).pnick $+ &gt; $1-
  halt
}
Monosex, Lammkott,
thanks to both of you.... smile

There is one little bug that remains.

In a private window, my nick isn't displayed... only the < > Further does the design not show in private when somebody writes something to me.

Here's what I got for all together so far:
Code:
on ^*:TEXT:*:#:{
  echo -tm # 11«0 $+ $nick(#,$nick).pnick $+ 11» $1-
  haltdef
}

on *:INPUT:*: {
  if (($left($1,1) == / || $left($1,1) == $readini($mircini,text,commandchar)) &amp;&amp; (!$ctrlenter)) return
  .msg $active $1-
  echo $color(own) -atmi2 11«0 $+ $nick($chan,$nick).pnick $+ 11» $1-
  halt
}


Somebody any ideas, pls?

...any ideas?
Try this:
Code:
on ^*:TEXT:*:*:{
  var %nick = $iif($chan,$nick($chan,$nick).pnick,$nick)
  var %window = $iif($chan,$chan,$nick)
  echo -tmi2 %window 11«0 $+ %nick $+ 11» $1-
  haltdef
}


on *:INPUT:*: {
  if (($left($1,1) == / || $left($1,1) == $readini($mircini,text,commandchar)) &amp;&amp; (!$ctrlenter)) return
  .msg $active $1-
  var %nick = $iif($chan,$nick($chan,$nick).pnick,$nick)
  echo $color(own) -atmi2 11«0 $+ %nick $+ 11» $1-
  halt
}
Monosex, thank you... smile nearly perfect.... just one little thing left to do and if I would know how to do then I won't bug you...

When I got voice in channel now, then it shows... when I get OP a little later in the chan... then the voice remains plus the @ appers.

first:
<+NiGHtOwL>

after being halfopped:

<+%NiGHtOwL>

and if I am opped then:

<+%@NightOwL>



Any more suggestions?

Thank you smile
Hmm, weird that it returns modes in that order for you.
It should return modes from most powerful to less powerful (@%+).

Well, if it's just a typo of yours, then you can change "var %nick =" lines to something like:

Code:
  var %nick = $iif($chan,$left($nick($chan,$nick).pnick,1) $+ $nick,$nick)

Yes, i know it's ugly grin
Don't slap me grin

It works, except when I don't have Voice, neither halfop or op.... then it displays now <NNiGHtOwL>

It doubles the first letter...

Maybe add somewhere if or elseif... bit I haven't got a clue about scripting.
Lol, try this:

Code:
var %nick = $iif($chan,$left($remove($nick($chan,$nick).pnick,$nick),1) $+ $nick,$nick)
Bingo! It works.... this was bugging me a long time smile

Thanks a lot my friend
© mIRC Discussion Forums