Skip to content

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

Featured Replies

deleted

OoOoOoOOo is best share Exelent Vent m8!!

Dosent need support at RequestBypassToServer too?...Or the change_namecolor command is declared already for the admin commands? :)

  • Author

deleted

but its not saved against l2phax user they can change the color what they want

 

but do you need to move every time you change it?

 

 

or not??

 

 

it may be a stupid question but it would be very annoying :/

  • Author

yes u have .. i dunno how to fix that .. i am not pro .. if someone knows a better code reply :)

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!

  • Author

what to say .. big thanks ! it works ! you dont need to move now .. 1rst post edited ! Big thanks .!!

youre welcome pal ^^ I see some cool real java shares from you last days...No more npcs, changed items stat and other shit...some cool shares at least ^^

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

  • Author

deleted after restart :D and back to normal color

Lawl this would be in all servers tahts cool xD  all servers should have this option =P

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 ^^

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.