ccenturionnMC {l Wrote}:So could someone please tell me how to bind it so I can write in red all the time?
ballist1c {l Wrote}:put the bind in your autoexec, so that you dont have to type it every time, that is quite silly :P
Unnamed {l Wrote}:You have to use the /say or /sayteam command. Then you have to write ^f and the next character is the colour (r for red, y for yellow,...). For example /say "^fctest".
Insted of a character you can write something like ^f[0xAA80AA] (hexadecimal).
With ^fz (instead of ^f) and two colours you can make text with alternating colour.
ccenturionnMC {l Wrote}:So what letter would be a dark red and a black?
bind "RETURN" [saycommand "^f["(getcolour -1)"]"]
qreeves {l Wrote}:Someone make a ticket for the ability to set chat colour, I'll put it in for 1.5.
For the location of config files and how to use them, please see our wiki.
Dratz-_C {l Wrote}:I added your example along with a comment that ZeroKnights "Chat Colours GUI" might also be useful to take a look at, even if guinoautotab doesn't work anymore.
cg505 {l Wrote}:I'm using svn, and I've noticed that my own chats are the color of my weapon. It seems like this is a very recent change, but I don't think I've set any variables. To me, it's a little over the top to have colors flying everywhere, so I'm wondering why this happens and is there a setting to turn it off, and if not, why/where is the code that I can comment out.
Sorry for the badly worded sentence.
// hue color scripts by bonifarz
colorstep = 8 // the larger the step size, the smaller the palette of hues in use
ccount = 0 // just a counter
colorfromhue = [ // color by hue = $arg1*60° + $arg2/255*60°
hi = $arg2
hd = (- 255 $hi)
case $arg1 0 [ // red to yellow
result (+ 0xff0000 (* $hi 0x000100))
] 1 [ // yellow to green
result (+ 0x00ff00 (* $hd 0x010000))
] 2 [ // green to cyan
result (+ 0x00ff00 (* $hi 0x000001))
] 3 [ // cyan to blue
result (+ 0x0000ff (* $hd 0x000100))
] 4 [ // blue to magenta
result (+ 0x0000ff (* $hi 0x010000))
] 5 [ // magenta to red
result (+ 0xff0000 (* $hd 0x000001))
]
]
newgui rainbowchatinfo [
guitext "Usage: /rainbowchat message"
guitext "Note: Only ~150/12 chars per line."
guitext "Author: Bonifarz."
guilist [
guitext "Test the color stepsize: "
guifield colorstep 2
]
loop h6 5 [
guilist [
loop i (div 255 $colorstep) [
h256 = (* $i $colorstep)
guitext (concatword "^f[" (colorfromhue $h6 $h256) "]*")
]
]
]
]
rainbowchat = [
msg = ""
argi = "arg1"
loopwhile i 25 [ (strlen $$argi) ] [
argi = (concatword "arg" (+ 1 $i) )
msg = (concat $msg $$argi)
]
echo "DEBUG: msg is"
echo $msg
saycommand (loopconcatword i (strlen $msg) [
ccount = (+ $colorstep $ccount)
h256 = (mod $ccount 256)
h6 = (mod (div $ccount 256) 6)
result (concatword "^f[" (colorfromhue $h6 $h256) "]" (substr $msg $i 1) )
] )
]
setcomplete "rainbowchat" 1
showgui rainbowchatinfo
Users browsing this forum: No registered users and 1 guest