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*
what about blue and green values?
Battlestorm
07.08.2006, 20:30
sweet, thanks
what about blue and green values?
use google or paint/photoshop to get the values lol ^^
i mean:
values(1,255)
the 255 is only for red, what if i want to enter the value like, 34, 24, 255?
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 !!!
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
My guess would be R+256*G+65536*B for an integer value. It's only a guess, i do not have test it.
u can generate it with this
http://www.lmstudio.ru/data/prg/Setup%20LineAge%20Utils.exe
should i put that in the AI folder?
Phantom2005
10.08.2006, 08:20
mssql database.
any one actually get a color other then red to work, would love to get the color format
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.
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)
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 :)
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 );
Here is a good list of colors
Use the Access code
http://cloford.com/resources/colours/500col.htm
Should help a couple ppl
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?
Only way i know is table update (SQL).
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.
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)