mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2013
Posts: 6
R
rntd111 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2013
Posts: 6
So I've been trying to make the chat more readable in mIRC and decided that adding automatic nick colours as well as bold nicks would help. Now, I've looked around and found a script for the automatic nick colours which is:

on ^*:TEXT:*:#:if (!$cnick($nick)) cnick -m1 $nick $rand(1,16)


My problem is I can't find/don't know how to create a script for making all nicks bold in chat while also maintaining the nick colours. Any help with this would be very much appreciated!

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You would have to edit the text in the channel to do that - hide everything that appears in the channel and display it in a custom way. There isn't any built-in bold for nicks the way there is built-in color for nicks.

Btw, you don't need ^ on the script you pasted.


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2013
Posts: 6
R
rntd111 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2013
Posts: 6
Please excuse my noobiness but I'm not exactly sure how to do what you're asking. If you could explain more in-depth I'd be very grateful.

Also I found a script on this page which makes all nicks bold but they are only black, it doesn't allow nick colours at the same time:

http://crrpg.com/forums/mirc-scripts/%28bobbold%29-bold-nicks-%28ingame-nicks-and-irc-nicks%29/

Not sure if there is something I'd need to alter in the script to make it function the way I'd want it to.

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You need to halt the default text in the channel.
Code:
on *:text:*:#: {
  ; first halt the default text in the channel.
  haltdef

 ; now echo to the channel what we want to see.
 echo -mt $nick >> $1-
}

Untested, just added it as an example, if you want to halt your own text, take a look at: /help on input


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jul 2013
Posts: 6
R
rntd111 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2013
Posts: 6
I tried the script out but it doesn't make the nicks bold. It only adds the text to the status window.

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
You need to use the BOLD sign, CTRL + B will return a sign for you.
Same goes for the color, CTRL + K.
Code:
on *:text:*:#: {
  haltdef

 ; replace COLOR with the CTRL + K sign.
 ; You press CTRL and K at the same time.
 ; The 04 will return red color.

 ; Replace BOLD with the bold sign. 
 ; Press CTRL + B at the same time.

 echo -mt $+(COLOR,04,BOLD,$nick,BOLD,COLOR) >> $1-
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Jul 2013
Posts: 6
R
rntd111 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2013
Posts: 6
So what happens now is the text is added to the status window and it appears in bold in whatever colour i choose. The script doesn't actually change anything in the channel window which is ultimately what I'd like.

Also my goal is for it to assign a random colour instead of just choosing one colour for every nick.

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
The color and bold codes are embedded in this text even though you cannot see them on the forum, copy this text into your remote editor.

Code:
on ^*:text:*:#:{
  if (!$cnick($nick)) cnick -m1 $nick $rand(1,16)
  echo -itmlbf # $+(<,$cnick($nick).color,$left($remove($nick(#,$nick).pnick,$nick),1),$nick,>) $1-
  haltdef
}

Joined: Jul 2013
Posts: 6
R
rntd111 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2013
Posts: 6
Thank you very, very much. Works like a charm.

I've also been wondering if it's possible to make the timestamp bold and 1 colour. I have no idea how to do this, does anybody have a script that could do this?

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
Just set that in the options. Options > IRC > Messages > Timestamp

It looks like you can't enter the control codes in the textbox itself, but you can paste them in. Just type whatever you want it to be in the editbox and then paste it in the options.

ctrl+b ctrl+k 12[hh:nn:ss] ctrl+k ctrl+b

Joined: Jul 2013
Posts: 6
R
rntd111 Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
R
Joined: Jul 2013
Posts: 6
Thanks a lot! Works exactly how I'd want it to.


Link Copied to Clipboard