![]() |
|
05-17-2012
|
1 |
|
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
NPC light
How do i change a light npc to green? Like if you use the premade light npc, what gs1 code do i add to this code to make that light be green? PHP Code:
|
|
05-17-2012
|
2 |
|
Professional iPhone Hater
Join Date: Sep 2011
Location: Canada
Posts: 454
|
setcoloreffect 1,1,1,0.99; Red Green Blue Alpha Want green? Take out Red and Blue. 0 1 0 0.99 |
|
05-17-2012
|
3 |
|
Levels<3
Join Date: Dec 2011
Location: Fairfax, Virginia
Posts: 997
|
Thanks so much! Is there a way to know the number code for the light colors? Also how do I make it red?
|
|
05-17-2012
|
4 |
|
Registered User
Join Date: Sep 2011
Location: Germany
Posts: 6,122
|
How I do it: since its in 'red, green, blue, alpha' I just open paint.net, draw the color i want and note the rgb in the script. Since it can only go up to 1 in the script I divide it by 255 (you can do the same with the alpha). So it does look like (which won't work) PHP Code:
PHP Code:
Not everyone will agree with that way but I think that's the easiest way to do it. |
|
05-17-2012
|
5 | |
|
The Unwanted Critic
Join Date: Sep 2011
Posts: 3,639
|
you're using gs1, I recommend gs2 if you plan to make it for a live server other than Graal Reborn. PHP Code:
|
|