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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock