Jump to content
  • 0

How to change title color of NPC's ?


Question

9 answers to this question

Recommended Posts

  • 0
Posted

AbstractNpcInfo.java -> \l2jserver\gameserver\network

 

test this lines

 

writeD(0x00); // Title color 0=client default

writeD(0x00); //pvp flag

writeD(0x00); // karma

 

writeD(_npc.getAbnormalEffect()); // C2

writeD(_clanId); //clan id

writeD(_clanCrest); //crest id

writeD(_allyId); // ally id

writeD(_allyCrest); // all crest

writeC(_npc.isFlying() ? 2 : 0); // C2

writeC(0x00); // title color 0=client

  • 0
Posted

AbstractNpcInfo.java -> \l2jserver\gameserver\network

 

test this lines

 

writeD(0x00); // Title color 0=client default

writeD(0x00); //pvp flag

writeD(0x00); // karma

 

writeD(_npc.getAbnormalEffect()); // C2

writeD(_clanId); //clan id

writeD(_clanCrest); //crest id

writeD(_allyId); // ally id

writeD(_allyCrest); // all crest

writeC(_npc.isFlying() ? 2 : 0); // C2

writeC(0x00); // title color 0=client

I want do change title color only for specific npcs... it's client side or server side ?

  • 0
Posted

I want do change title color only for specific npcs... it's client side or server side ?

Then you must create a config where you will place the npc's id and their new color.

Or check the NpcName-e.dat and play with the RGB configs there are 3 colors for each npc try to change them and see what happens.

 

If you dont want to mess with ur system then u will have to do it from core.

  • 0
Posted

npcname-e.dat thing doesn't work.

What exactly did u changed on what?

Did u spawn the right npc?

 

I just want to know that u did it right to be sure about it.

  • 0
Posted

Yes I done it correctly, even tried setting serverside title to 0 on all npcs.

 

9C E8 A9 is the most common value. 9CE8A9 is the green colour. so find+replacing those with other values does not work. Even tried changing reserved from -1 to 0 to 1. still nothing.

  • 0
Posted

Then maybe u should try the core side, although i still have some doubts if its not possible through client modding, ill test it tomorrow too from client side and if it wont work ill try to make a code for custom npc color title with config and share it .. probly :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...