|
Joined: May 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: May 2003
Posts: 40 |
I did following to give the Nicks in the Chan window a special look:
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..
gr33tz NiGHtOwL
|
|
|
|
Joined: Dec 2002
Posts: 3,547
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,547 |
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.
|
|
|
|
Joined: Dec 2002
Posts: 417
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 417 |
I think this link may be what your looking for web page
Intelligence: It's better to ask a stupid question, then to prove it by not asking....
|
|
|
|
Joined: May 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: May 2003
Posts: 40 |
No, I am sorry. First thanks for help... 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.
gr33tz NiGHtOwL
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
That's the hard way of doing it, just use:
on *:INPUT:*: {
if ($left($1,1) == $readini($mircini,text,commandchar)) { return }
else { echo -at < $+ $me $+ > $1- | halt }
}
Last edited by lammkott; 01/07/03 02:53 AM.
- Jason
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
That doesn't send the text.. on *:INPUT:*: {
if ( ( $left($1,1) != $readini($mircini,text,commandchar) ) && ( $left($1,1) != / ) ) {
echo $colour(own) -at < $+ $me $+ > $1-
.msg $active $1-
halt
}
}
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
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.
- Jason
|
|
|
|
Joined: May 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: May 2003
Posts: 40 |
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
gr33tz NiGHtOwL
|
|
|
|
Joined: Dec 2002
Posts: 395
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 395 |
on *:INPUT:*: {
if (($left($1,1) == / || $left($1,1) == $readini($mircini,text,commandchar)) && (!$ctrlenter)) return
.msg $active $1-
echo $color(own) -atmi2 11«0 $+ $nick($chan,$nick).pnick $+ 11» $1-
halt
}
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
on *:INPUT:*: {
if ($left($1,1) == $readini($mircini,text,commandchar)) { return }
.msg $active $1-
echo $color(own) -at < $+ $nick($active,$me).pnick $+ > $1-
halt
}
Last edited by lammkott; 01/07/03 11:57 AM.
- Jason
|
|
|
|
Joined: May 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: May 2003
Posts: 40 |
Monosex, Lammkott, thanks to both of you.... 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:
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)) && (!$ctrlenter)) return
.msg $active $1-
echo $color(own) -atmi2 11«0 $+ $nick($chan,$nick).pnick $+ 11» $1-
halt
}
Somebody any ideas, pls? ...any ideas?
gr33tz NiGHtOwL
|
|
|
|
Joined: Dec 2002
Posts: 395
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 395 |
Try this:
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)) && (!$ctrlenter)) return
.msg $active $1-
var %nick = $iif($chan,$nick($chan,$nick).pnick,$nick)
echo $color(own) -atmi2 11«0 $+ %nick $+ 11» $1-
halt
}
|
|
|
|
Joined: May 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: May 2003
Posts: 40 |
Monosex, thank you... 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
gr33tz NiGHtOwL
|
|
|
|
Joined: Dec 2002
Posts: 395
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 395 |
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:
var %nick = $iif($chan,$left($nick($chan,$nick).pnick,1) $+ $nick,$nick)
Yes, i know it's ugly
|
|
|
|
Joined: May 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: May 2003
Posts: 40 |
Don't slap me 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.
gr33tz NiGHtOwL
|
|
|
|
Joined: Dec 2002
Posts: 395
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 395 |
Lol, try this:
var %nick = $iif($chan,$left($remove($nick($chan,$nick).pnick,$nick),1) $+ $nick,$nick)
|
|
|
|
Joined: May 2003
Posts: 40
Ameglian cow
|
OP
Ameglian cow
Joined: May 2003
Posts: 40 |
Bingo! It works.... this was bugging me a long time Thanks a lot my friend
gr33tz NiGHtOwL
|
|
|
|
|