Jump to content

Recommended Posts

Posted

in l2pcinstance.java

 

public void increasePvpKills(L2PcInstance activeChar) {
if (activeChar.getPvpKills() >= 1000)
        {
       activeChar.sendMessage ("you Reached 1k PvPs!");
        activeChar.getAppearance().setNameColor(0xff7f00);
    }
if (activeChar.getPvpKills() >= 2000)
        {
       activeChar.sendMessage ("you Reached 2k PvPs!");
        activeChar.getAppearance().setNameColor(0xff0000);
    }
if (activeChar.getPvpKills() >= 3000)
	{
	activeChar.sendMessage ("you Reached 3k PvPs!");
	activeChar.getAppearance().setNameColor(0x00ffff);
}
}

Posted

if i wanna make code for

 

 

1000 pvp Title Red Name Green

 

2000 PvP  Tittle Green Name Orange

 

This can work?

 

Sure it should...

public void increasePvpKills(L2PcInstance activeChar) {
if (activeChar.getPvpKills() >= 1000)
        {
       activeChar.sendMessage ("you Reached 1k PvPs!");
        activeChar.getAppearance().setNameColor(0xff7f00);
    }
if (activeChar.getPvpKills() >= 2000)
        {
       activeChar.sendMessage ("you Reached 2k PvPs!");
        activeChar.getAppearance().setNameColor(0xff0000);
    }
if (activeChar.getPvpKills() >= 3000)
	{
	activeChar.sendMessage ("you Reached 3k PvPs!");
	activeChar.getAppearance().setNameColor(0x00ffff);
}
}

		activeChar.getAppearance().setTitleColor(0x00ffff);

Posted

Nice, but i think this would work one time only, on the default version there's a code added in the EnterWorld.java packet. So the name color must be changed every time u log on or most likely be default when u log.

Posted

Nice, but i think this would work one time only, on the default version there's a code added in the EnterWorld.java packet. So the name color must be changed every time u log on or most likely be default when u log.

 

True will work only once...

  • 2 weeks later...
  • 1 month later...

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

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..