Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   RGB Colors in player.colors[] (https://forums.graalonline.com/forums/showthread.php?t=134267341)

MattKan 11-05-2012 03:02 AM

RGB Colors in player.colors[]
 
Is it possible to give RGB formatted color codes to the character colors?

PHP Code:

player.colors[1] = {24713812}; 

Something like that? I know it's done on iClassic.

DustyPorViva 11-05-2012 04:02 AM

No, v6 has an expanded list of colors via an extensive list of HTML colors.

scriptless 11-05-2012 07:10 AM

Quote:

Originally Posted by DustyPorViva (Post 1707000)
No, v6 has an expanded list of colors via an extensive list of HTML colors.

I really never was familiar with the old or new system.. could you maybe explain it for us?

Crow 11-05-2012 09:23 AM

Quote:

Originally Posted by scriptless (Post 1707014)
I really never was familiar with the old or new system.. could you maybe explain it for us?

There are 16 (I believe) "regular" colors that we had for ages, which you can either reference by an integer from 0 to 15, or by a name (white, black, orange, green, darkgreen and so on). Now that I think about it, there may be more.. up to you to figure out :p At some point, Stefan added support for HTML colors in v6, which I believe you can only reference by name. Colors with the same name that existed prior keep their original RGB values though (like orange). A list of all HTML or "web colors" can be found here.

shrimps 11-05-2012 09:44 AM

Or..... THIS? I found it somewhere. o.o

http://www.graaldepot.com/the-status-code-guide

Crow 11-05-2012 10:00 AM

Quote:

Originally Posted by shrimps (Post 1707020)
Or..... THIS? I found it somewhere. o.o

http://www.graaldepot.com/the-status-code-guide

Nope, that's just some HTML stuff. Also, there are 20 original body colors, not 16. Checked again. Should be 0 to 19, then. Not sure if the HTML colors have numerical indexes.

shrimps 11-05-2012 10:02 AM

Oh well, it works in PMs at least. lol :(


All times are GMT +2. The time now is 04:08 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.