mIRC Home    About    Download    Register    News    Help

Print Thread
#97687 15/09/04 12:41 PM
Joined: Feb 2004
Posts: 24
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2004
Posts: 24
Well, I've read a few post on how to change <nick> to (nick) or something while chatting, but I've become a little confused. When I use this code that I got from a post *hopes he doesn't get in trouble*
Code:
 on ^*:text:*:*:echo -mbflirt $iif(#,#,$nick) ( $+ $nick $+ ) $1- | haltdef 


It disables the colors I used to identify my friends in the chatroom. I was wondering how to reenable them. Thanks in advance.

#97688 15/09/04 06:01 PM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
hi

i'm a noob with this stuff myself but at a quick glance, i think i see your problem.

echo -mbflirt

you have the -r switch enabled which strips the control codes from the text IE:bold,color,underline,ect,,,,,

i think if you take that out you should be ok..

#97689 15/09/04 06:12 PM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Try this instead:
on ^*:text:*:*:echo $cnick($nick(#,$nick).pnick).color -mbflirt $iif(#,#,$nick) ( $+ $nick $+ ) $1- | haltdef

clutz1572:
Not entirely correct. -r actually applies the strip settings from mIRC Options, which is probably what he wants, or he wouldn't have enabled stripping at all.

In this case I believe he is referring to the settings in the Colors tab of the address book (Alt+B), which the addition of $cnick will apply (regardless of -r and his strip settings).

#97690 15/09/04 06:35 PM
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
ok,
heh like i said i'm a noob too, thanks for the correction on that.


#97691 16/09/04 01:20 AM
Joined: Feb 2004
Posts: 24
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Feb 2004
Posts: 24
Thanks, script works great, but how would I only be able to highlight their nick instead of their nick and text. sorry for the inconvienience.


Link Copied to Clipboard