color...

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
loss25
Posts: 32
Joined: Mon Feb 10, 2014 3:49 pm

color...

Post 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?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: color...

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
loss25
Posts: 32
Joined: Mon Feb 10, 2014 3:49 pm

Re: color...

Post by loss25 »

can you explain more how to do that?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: color...

Post 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.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
loss25
Posts: 32
Joined: Mon Feb 10, 2014 3:49 pm

Re: color...

Post by loss25 »

ech dont understand you....
loss25
Posts: 32
Joined: Mon Feb 10, 2014 3:49 pm

Re: color...

Post by loss25 »

can you make a small guide pls??
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: color...

Post by jurchiks »

The guides you need are programming tutorials. Go get them.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
loss25
Posts: 32
Joined: Mon Feb 10, 2014 3:49 pm

Re: color...

Post 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>
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: color...

Post 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.
Image
loss25
Posts: 32
Joined: Mon Feb 10, 2014 3:49 pm

Re: color...

Post by loss25 »

yes i know, so i am asking that to do...?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: color...

Post 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?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
NosBit
L2j Veteran
L2j Veteran
Posts: 314
Joined: Mon Mar 11, 2013 4:19 pm

Re: color...

Post 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.
Image
User avatar
foxmulder
Posts: 19
Joined: Tue Feb 25, 2014 2:17 pm
Location: Sweden

Re: color...

Post 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 :)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: color...

Post 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...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: color...

Post 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.
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
Post Reply