Jump to content

Recommended Posts

  • 1 month later...
Posted

I just installed this, and added my own colors and added a few more.. This is not the problem, the problem is that the characters only gain the first color from the code and all the other codes is just ignored.. How can this be? :o

 

===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 4092)
+++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -174,6 +174,51 @@
             engage(activeChar);
             notifyPartner(activeChar,activeChar.getPartnerId());
         }
+        
+        // PvP Color System
+        
+        if (Config.ENABLE_COLOR_PVP)
+        {
+        	if (activeChar.getPvpKills()>= 100)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PVP_100);
+        	}
+        	if (activeChar.getPvpKills()>= 500)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PVP_500);
+        	}
+        	if (activeChar.getPvpKills()>= 1000)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PVP_1000);
+        	}
+        	if (activeChar.getPvpKills()>= 5000)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PVP_5000);
+        	}
+        }
+        	
+        // Pk Color System
+        	
+        if (Config.ENABLE_COLOR_PK)
+        {
+        	if (activeChar.getPkKills()>= 100)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PK_100);
+        	}
+        	if (activeChar.getPkKills()>= 500)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PK_500);
+        	}
+        	if (activeChar.getPkKills()>= 1000)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PK_1000);
+        	}
+        	if (activeChar.getPkKills()>= 5000)
+        	{
+        		activeChar.getAppearance().setNameColor(Config.COLOR_PK_5000);
+        	}
+        }
+        

Worked my problem out, I just delete "Else" like above...

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