Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 07.08.2006, 09:54   #1
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default [C4]Colored name.

For everyone that wants a colored name with C4 files:
Code:
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
Code:
insert into user_name_color (char_id, color_rgb)
values(1,255)


*hint: use google to find rgb codes*
Phantom2005 is offline  
Old 07.08.2006, 11:32   #2
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

Thank for the info
MuNLoK is offline  
Old 07.08.2006, 14:56   #3
javas
Архивный участник
 
Join Date: Jun 2006
Posts: 17
Default

Nice man !
javas is offline  
Old 07.08.2006, 19:55   #4
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

what about blue and green values?
kgptzac is offline  
Old 07.08.2006, 20:30   #5
Battlestorm
Архивный участник
 
Join Date: Aug 2006
Posts: 21
Default

sweet, thanks
Battlestorm is offline  
Old 07.08.2006, 21:01   #6
Met45
Архивный участник
 
Join Date: Jan 2006
Posts: 281
Default

Quote:
Originally Posted by kgptzac
what about blue and green values?
use google or paint/photoshop to get the values lol ^^
Met45 is offline  
Old 08.08.2006, 05:51   #7
kgptzac
Архивный участник
 
Join Date: Jan 2006
Posts: 363
Default

i mean:

values(1,255)

the 255 is only for red, what if i want to enter the value like, 34, 24, 255?
kgptzac is offline  
Old 08.08.2006, 06:07   #8
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

then read above...
ateh is offline  
Old 08.08.2006, 19:45   #9
Megajynx
Архивный участник
 
Join Date: Aug 2006
Posts: 3
Default

Amazing, thanks a ton
Megajynx is offline  
Old 08.08.2006, 20:50   #10
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

RGP Collors

BTW Phantom that Image link is not working !!!
TheOrder is offline  
Old 09.08.2006, 00:40   #11
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

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
rodier is offline  
Old 09.08.2006, 06:18   #12
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

My guess would be R+256*G+65536*B for an integer value. It's only a guess, i do not have test it.
Kenjiro is offline  
Old 09.08.2006, 12:13   #13
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

u can generate it with this
http://www.lmstudio.ru/data/prg/Setu...ge%20Utils.exe
rodier is offline  
Old 10.08.2006, 07:07   #14
crayola
Архивный участник
 
Join Date: Jul 2006
Posts: 11
Default

should i put that in the AI folder?
crayola is offline  
Old 10.08.2006, 08:20   #15
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

mssql database.
Phantom2005 is offline  
Old 02.11.2006, 20:35   #16
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

any one actually get a color other then red to work, would love to get the color format
GMan is offline  
Old 02.11.2006, 20:40   #17
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by GMan View Post
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.
FidoW is offline  
Old 03.11.2006, 01:04   #18
poltomb
Архивный участник
 
Join Date: Sep 2006
Posts: 81
Default

Quote:
Originally Posted by rodier View Post
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)
poltomb is offline  
Old 03.11.2006, 01:37   #19
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

Quote:
Originally Posted by FidoW View Post
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
GMan is offline  
Old 03.11.2006, 08:43   #20
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

Quote:
Originally Posted by GMan View Post
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:
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 ) );
and this to show in form field:
Code:
printf ( "%02X%02X%02X", $color_rgb & 0xff, ( $color_rgb & 0xff00 ) >> 8, ( $color_rgb & 0xff0000 ) >> 16 );
Kenjiro is offline  
Old 03.11.2006, 16:19   #21
Dubie
Архивный участник
 
Join Date: Mar 2005
Posts: 133
Default

Here is a good list of colors
Use the Access code

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

Should help a couple ppl
Dubie is offline  
Old 06.11.2006, 14:32   #22
pirulo
Архивный участник
 
Join Date: Sep 2006
Posts: 6
Default

Quote:
Originally Posted by kgptzac View Post
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
pirulo is offline  
Old 06.11.2006, 18:59   #23
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

No not really. for example red is (#)FF0000. flip 0000FF, and use your calculator to convert it to decimals.
Phantom2005 is offline  
Old 26.11.2006, 22:59   #24
RumanticK
Архивный участник
 
Join Date: Feb 2006
Posts: 66
Default

Is there any way to do it via client or CasheD?
RumanticK is offline  
Old 27.11.2006, 07:12   #25
Kenjiro
Архивный участник
 
Join Date: Apr 2006
Posts: 120
Default

Only way i know is table update (SQL).
Kenjiro is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:56.