Jump to content

[Share]Color Player


Vkouk

Recommended Posts

  • 1 month later...

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

Link to comment
Share on other sites

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