![]() |
[C4]Colored name.
For everyone that wants a colored name with C4 files:
Code:
insert into user_name_color (char_id, color_rgb)and rgb code for red = 255 Code:
insert into user_name_color (char_id, color_rgb)*hint: use google to find rgb codes* |
Thank for the info
|
Nice man :D !
|
what about blue and green values?
|
sweet, thanks
|
Quote:
|
i mean:
values(1,255) the 255 is only for red, what if i want to enter the value like, 34, 24, 255? |
then read above...
|
Amazing, thanks a ton :)
|
|
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/Setu...ge%20Utils.exe |
should i put that in the AI folder?
|
mssql database.
|
any one actually get a color other then red to work, would love to get the color format
|
Quote:
example... FF FF 00 - yellow now... reverse RGB colors... 00 FF FF... transform to DECIMAL.... 65535 Thats all. |
Quote:
the person you want to give the number of recs to must be your target (as with all //setparam commands) |
Quote:
|
Quote:
Code:
$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 ) );Code:
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 |
Quote:
0 255 0 its green so you have to put 02550 on the color |
No not really. for example red is (#)FF0000. flip 0000FF, and use your calculator to convert it to decimals.
|
Is there any way to do it via client or CasheD?
|
Only way i know is table update (SQL).
|
| All times are GMT. The time now is 23:27. |