Jump to content

[Share][Guide]Color your name by Npc!


Recommended Posts

Import this...

 

import net.sf.l2j.gameserver.serverpackets.UserInfo;

 

and use this code

 

           else if (command.startsWith("change_namecolor"))
            {
            player.getAppearance().setNameColor(Integer.decode("0x"+command.substring(16, 22).trim()));
 player.broadcastUserInfo();
            }

 

 

I have no idea if this works! Havent tested...Give it a try and let us know if it works!

Link to comment
Share on other sites

the Name Color Is permanent ? or will be deleted/come back into "white" after a Player/Server Restart ?

 

Could be made permanent too but need more java knowledge and more changes. When you set the color name, it should update in the database. Add a code to reset your name color to the one in database in EnterWorld and youre done! You got permanent too xD...But as I said it needs more code and one more column in the character table in the database ^^

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...