Color Font 1.2

By pope
Platform:  mIRC
Published  Jan 24, 2009
Updated  Jan 29, 2009
This is just a simple script that eliminates the need to use [ctrl]+[k] every time you want to type in a colored font. Its one of 50 million here on hawkee but its all together scripted well. This isnt my first script by any means, but i just got a Hawkee account to its the first one im posting.

To Use:
1. Open the Script Editor (->Tools ->Script Editor)
2. Create a NEW file called COLORFONT (From Script Editor: ->File ->New)
3. Paste in this snippet and hit OK (or ->File ->Save)
4. Rightclick in any channel window and click COLOR FONT to turn this script on and for options.

*NOTE: If you use the script and it doubles whatever you say (once in plain text and once in colored text) it means that you have another script using the ON INPUT trigger. This script (or any like it) WILL NOT WORK unless you disable the other script using the ON INPUT trigger. ;COLOR FONT 1.2 script by pope
;PEERCOMMONS chat.peercommons.net 6667
;#scripters.united
;thanks to Vox91 for the !iswmcs suggestion
;
menu * {
COLOR FONT
.on/off: {
if (!%cf.font) {
set %cf.font 1
}
if (!%cf.bkgrd) {
set %cf.bkgrd 0
}
if (!%colorfont) {
set %colorfont 1
echo -a 4 Color Font Now Active.
halt
}
unset %colorfont
echo -a 4 Color Font Now Inactive.
halt
}
.underline: {
if (!%cf.und) {
set %cf.und 1
halt
}
unset %cf.und
}
.bold: {
if (!%cf.bld) {
set %cf.bld 1
halt
}
unset %cf.bld
}
.text color
..0 white: set %cf.font 0
..1 black: set %cf.font 1
..2 blue: set %cf.font 2
..3 green: set %cf.font 3
..4 lightred: set %cf.font 4
..5 brown: set %cf.font 5
..6 purple: set %cf.font 6
..7 orange: set %cf.font 7
..8 yellow: set %cf.font 8
..9 lightgreen: set %cf.font 9
..10 cyan: set %cf.font 10
..11 light-cyan: set %cf.font 11
..12 lightblue: set %cf.font 12
..13 pink: set %cf.font 13
..14 grey: set %cf.font 14
..15 lightgrey: set %cf.font 15
.background color
..0 white: set %cf.bkgrd 0
..1 black: set %cf.bkgrd 1
..2 blue: set %cf.bkgrd 2
..3 green: set %cf.bkgrd 3
..4 lightred: set %cf.bkgrd 4
..5 brown: set %cf.bkgrd 5
..6 purple: set %cf.bkgrd 6
..7 orange: set %cf.bkgrd 7
..8 yellow: set %cf.bkgrd 8
..9 lightgreen: set %cf.bkgrd 9
..10 cyan: set %cf.bkgrd 10
..11 light-cyan: set %cf.bkgrd 11
..12 lightblue: set %cf.bkgrd 12
..13 pink: set %cf.bkgrd 13
..14 grey: set %cf.bkgrd 14
..15 lightgrey: set %cf.bkgrd 15
}
on *:input:#: {
if ((/ !isin $left($1,1)) && (%colorfont)) {
set %color.font  $+ %cf.font $+ , $+ %cf.bkgrd
if (%cf.bld) {
set %color.font  $+ %color.font
}
if (%cf.und) {
set %color.font $+ %color.font
}
msg $chan %color.font $+ $strip($1-)
halt
}
}

Comments

Sign in to comment.
blackvenomm666   -  Jun 21, 2011
why have the default set as white? you could just have no background at all ya know
 Respond  
ManicWaldo   -  Jun 21, 2011
Since I didn't like being forced to use a background color .. white background on a white field is okay if the reader is using a white background .. but looks harsh on a black background .. I modified it slightly this way:

; this one will give you a choice for a colored background, default is white
; set %color.font  $+ %cf.font $+ , $+ %cf.bkgrd
; this one removes the colored background
set %color.font  $+ %cf.font
 Respond  
blackvenomm666   -  May 02, 2011
ok this is a nice script but only complaint i have is that it only uses color i nchannels. and some people i know who use it would like it to work in p2p's i edited it for em so it would and im sure you know how. so should edit it to make it do both channel and p2p:)
 Respond  
The_Fuzzy_Wookie   -  Dec 15, 2009
it is good, but i cant seem to kill the echo..
`Chewba
 Respond  
miniCruzer   -  Aug 21, 2009
Haha peercommons is dead :P
 Respond  
pope   -  Jan 26, 2009
bleh, done.
 Respond  
knoeki   -  Jan 26, 2009

Quote

And when mode +c is activated on a channel that no coloring is allowd?


mind you, that mode isn't the same on all IRCd's... adding such an option would be doable, but it's way overkill and much easier to just have the user turn it off.
 Respond  
pope   -  Jan 25, 2009
ok PunkTuReD, you win :)
 Respond  
PuNkTuReD   -  Jan 25, 2009
how about a menu option, to let the person choose their color?
set it as a var, much easier than going through the code
 Respond  
pope   -  Jan 25, 2009
haha like i said i wrote it on-the-spot and didnt think of every possible thing. thanx for the advice tho i will edit that in ASAP :)
 Respond  
Vox91   -  Jan 24, 2009
And when mode +c is activated on a channel that no coloring is allowd? maybe adding this to your script:

Code

 
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.