PDA

View Full Version : [C4]Colored name.


Phantom2005
07.08.2006, 09:54
For everyone that wants a colored name with C4 files:

insert into user_name_color (char_id, color_rgb)
values(char_id_here,rgbcode_here)

for example: char_id = 1
and rgb code for red = 255

insert into user_name_color (char_id, color_rgb)
values(1,255)

http://upload4.postimage.org/795348/Shot00000.jpg (http://upload4.postimage.org/795348/photo_hosting.html)

*hint: use google to find rgb codes*

MuNLoK
07.08.2006, 11:32
Thank for the info

javas
07.08.2006, 14:56
Nice man :D !

kgptzac
07.08.2006, 19:55
what about blue and green values?

Battlestorm
07.08.2006, 20:30
sweet, thanks

Met45
07.08.2006, 21:01
what about blue and green values?
use google or paint/photoshop to get the values lol ^^

kgptzac
08.08.2006, 05:51
i mean:

values(1,255)

the 255 is only for red, what if i want to enter the value like, 34, 24, 255?

ateh
08.08.2006, 06:07
then read above...

Megajynx
08.08.2006, 19:45
Amazing, thanks a ton :)

TheOrder
08.08.2006, 20:50
RGP Collors (http://www.pitt.edu/~nisg/cis/web/cgi/rgb.html)

BTW Phantom that Image link is not working !!!

rodier
09.08.2006, 00:40
anyone know ingame GM commands to give target X recommends?
and how to set one Hero? only via db?
I tired //set_hero 1 or ns_hero 0 and nothing (I dont light..)

where in db is stored who is hero & how much recommends who have?


and btw.. yes.. how to insert more than one value?
I mean how to insert
106 90 205 rgbvalue? (char_id,10690205) ?? couse 106,90,205 not working

Kenjiro
09.08.2006, 06:18
My guess would be R+256*G+65536*B for an integer value. It's only a guess, i do not have test it.

rodier
09.08.2006, 12:13
u can generate it with this
http://www.lmstudio.ru/data/prg/Setup%20LineAge%20Utils.exe

crayola
10.08.2006, 07:07
should i put that in the AI folder?

Phantom2005
10.08.2006, 08:20
mssql database.

GMan
02.11.2006, 20:35
any one actually get a color other then red to work, would love to get the color format

FidoW
02.11.2006, 20:40
any one actually get a color other then red to work, would love to get the color format

Is very easy, get color in HEX RGB format...

example...
FF FF 00 - yellow

now... reverse RGB colors... 00 FF FF... transform to DECIMAL.... 65535

Thats all.

poltomb
03.11.2006, 01:04
anyone know ingame GM commands to give target X recommends?

//setparam social [0-255]

the person you want to give the number of recs to must be your target (as with all //setparam commands)

GMan
03.11.2006, 01:37
Is very easy, get color in HEX RGB format...

example...
FF FF 00 - yellow

now... reverse RGB colors... 00 FF FF... transform to DECIMAL.... 65535

Thats all.
Thank you, i just figured that out using http://www.shodor.org/stella2java/rgbint.html and seeing that some programs use GBR :)

Kenjiro
03.11.2006, 08:43
Thank you, i just figured that out using http://www.shodor.org/stella2java/rgbint.html and seeing that some programs use GBR :)
You could use that to save value to database:

$color_rgb= ( hexdec ( substr ( $_GET [ "name_color" ], 0, 2 ) ) + ( hexdec ( substr ( $_GET [ "name_color" ], 2, 2 ) ) << 8 ) + ( hexdec ( substr ( $_GET [ "name_color" ], 4, 2 ) ) << 16 ) );

and this to show in form field:

printf ( "%02X%02X%02X", $color_rgb & 0xff, ( $color_rgb & 0xff00 ) >> 8, ( $color_rgb & 0xff0000 ) >> 16 );

Dubie
03.11.2006, 16:19
Here is a good list of colors
Use the Access code

http://cloford.com/resources/colours/500col.htm

Should help a couple ppl

pirulo
06.11.2006, 14:32
i mean:

values(1,255)

the 255 is only for red, what if i want to enter the value like, 34, 24, 255?

its like this

0 255 0 its green

so you have to put 02550 on the color

Phantom2005
06.11.2006, 18:59
No not really. for example red is (#)FF0000. flip 0000FF, and use your calculator to convert it to decimals.

RumanticK
26.11.2006, 22:59
Is there any way to do it via client or CasheD?

Kenjiro
27.11.2006, 07:12
Only way i know is table update (SQL).

hex0id
27.11.2006, 08:01
Is there any way to do it via client or CasheD?

Where's no need to do it via cached cause all colors that you set would be apllied after char relogin.

Kenjiro
27.11.2006, 09:52
Nope, colors are set when cached loads character, and do not reload after that - maybe there is cached function which reload char stats from db?

P.S. There is //col_setcolor l2server function, but I do not know what is 'color' parameter in:
//col_setcolor color time_l2(min)