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

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
Reply to this topic...

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

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