Page 1 of 1

color...

Posted: Sun Feb 23, 2014 11:45 am
by loss25
hi agian me :D who knows how chnage colors, i have been created gm shop with title p.s Test server
Gm shop

can i change Test server title color ? and npc name color ? if can, who knows how?

Re: color...

Posted: Sun Feb 23, 2014 12:05 pm
by jurchiks
Not available out of the box, but should be pretty simple to add, just add the nameColor/titleColor attributes to NPC XMLs and implement their usage in core. Would be nice if that was committed because it should require VERY little code.

Re: color...

Posted: Sun Feb 23, 2014 12:14 pm
by loss25
can you explain more how to do that?

Re: color...

Posted: Sun Feb 23, 2014 12:20 pm
by jurchiks
Take a look at the code that parses the NPC XMLs, specifically the usingServerSideName/usingServerSideTitle attributes. Then find the packet(s) that send the npc name/title to the server, specifically the part that sends the color (should be marked at least by a comment).
If you know java well enough, you should be able to add it.

Re: color...

Posted: Sun Feb 23, 2014 3:19 pm
by loss25
ech dont understand you....

Re: color...

Posted: Sun Feb 23, 2014 3:21 pm
by loss25
can you make a small guide pls??

Re: color...

Posted: Sun Feb 23, 2014 6:39 pm
by jurchiks
The guides you need are programming tutorials. Go get them.

Re: color...

Posted: Sun Mar 09, 2014 1:06 pm
by loss25
game\data\stats\npcs\custom i tried to add but then i cant spawn npc...there is my problem?

<npc id="555" displayId="32226" nameColor="0C0000" name="Gm Shop" usingServerSideName="true" titleColor="0C0000" title="Server" usingServerSideTitle="true" type="L2Merchant">
<collision>
<radius normal="10" />
<height normal="11" />
</collision>
</npc>

Re: color...

Posted: Sun Mar 09, 2014 1:53 pm
by NosBit
jurchiks wrote:Not available out of the box, but should be pretty simple to add, just add the nameColor/titleColor attributes to NPC XMLs and implement their usage in core. Would be nice if that was committed because it should require VERY little code.
I have tested this before when you apply a color name/title doesnt show up anymore.

Re: color...

Posted: Sun Mar 09, 2014 3:10 pm
by loss25
yes i know, so i am asking that to do...?

Re: color...

Posted: Fri Mar 14, 2014 5:04 pm
by jurchiks
Nos wrote:I have tested this before when you apply a color name/title doesnt show up anymore.
Are you saying it's impossible to change NPC name/title color? Or it isn't visible if the color is different from default?

Re: color...

Posted: Fri Mar 14, 2014 6:17 pm
by NosBit
jurchiks wrote:
Nos wrote:I have tested this before when you apply a color name/title doesnt show up anymore.
Are you saying it's impossible to change NPC name/title color? Or it isn't visible if the color is different from default?
When you set "color" if its really color as comment says the title or name is just removed no color is set.

Re: color...

Posted: Fri Mar 14, 2014 6:50 pm
by foxmulder
jurchiks wrote:Not available out of the box, but should be pretty simple to add, just add the nameColor/titleColor attributes to NPC XMLs and implement their usage in core. Would be nice if that was committed because it should require VERY little code.
This would be really cool to have on the server-side :)

Re: color...

Posted: Fri Mar 14, 2014 7:40 pm
by jurchiks
Nos wrote:When you set "color" if its really color as comment says the title or name is just removed no color is set.
Well, that's quite disappointing...

Re: color...

Posted: Sat Mar 15, 2014 1:45 am
by Hyrelius
Wait so in the past you could in theory adjust the color (at least I do know you could adjust colors of players - not for monsters?), but now it's impossible? I thought they are expected to adjust their color the same way L2PcInstance-objects adjust their color - no?

If not - it's weird .. I'd even dare to think it's a bug :x.