Jump to content
  • 0

[Help] Pvp Color System


Question

Posted

Hello every Body i have a little question ask you.

 

http://www.maxcheaters.com/forum/index.php?topic=28059.0

 

My question is:

 

+    			// PVP Name Color System configs - Start
+    			PVP_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePvPColorSystem", "false"));
+    			PVP_AMOUNT1 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount1", "500"));
+    			PVP_AMOUNT2 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount2", "1000"));
+    			PVP_AMOUNT3 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount3", "1500"));
+    			PVP_AMOUNT4 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount4", "2500"));
+    			PVP_AMOUNT5 = Integer.parseInt(L2JModSettings.getProperty("PvpAmount5", "5000"));
+    			NAME_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount1", "00FF00"));
+    			NAME_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount2", "00FF00"));
+    			NAME_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount3", "00FF00"));
+    			NAME_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00"));
+    			NAME_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("ColorForAmount4", "00FF00"));
+    			// PvP Name Color System configs - End
+    			
+    			// PK Title Color System configs - Start
+    			PK_COLOR_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("EnablePkColorSystem", "false"));
+    			PK_AMOUNT1 = Integer.parseInt(L2JModSettings.getProperty("PkAmount1", "500"));
+    			PK_AMOUNT2 = Integer.parseInt(L2JModSettings.getProperty("PkAmount2", "1000"));
+    			PK_AMOUNT3 = Integer.parseInt(L2JModSettings.getProperty("PkAmount3", "1500"));
+    			PK_AMOUNT4 = Integer.parseInt(L2JModSettings.getProperty("PkAmount4", "2500"));
+    			PK_AMOUNT5 = Integer.parseInt(L2JModSettings.getProperty("PkAmount5", "5000"));
+    			TITLE_COLOR_FOR_PK_AMOUNT1 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount1", "00FF00"));
+    			TITLE_COLOR_FOR_PK_AMOUNT2 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount2", "00FF00"));
+    			TITLE_COLOR_FOR_PK_AMOUNT3 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount3", "00FF00"));
+    			TITLE_COLOR_FOR_PK_AMOUNT4 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount4", "00FF00"));
+    			TITLE_COLOR_FOR_PK_AMOUNT5 = Integer.decode("0x" + L2JModSettings.getProperty("TitleForAmount5", "00FF00"));
+    			//PK Title Color System configs - End

 

If i understand

 

If the player have the some PVP he will have a name color

And if the player have some PK he will have a tittle color

 

Right?

 

But if:

 

PVP = Name Color

PK = Tittle Color

 

But why the Subject is PVP Color System? and not PVP/PK COlor system?

 

Also i have a request

 

I want

 

PVP = Name Color

PVP = Tittle Color

 

I try delete all the Pk and remplace By Pvp but when i compile some error.

 

Who can make this for me please

 

 

Recommended Posts

  • 0
Posted

ENTERWORLD:

 

+        // =================================================================================
+        // Color System checks - Start =====================================================
+        // Check if the custom PvP and PK color systems are enabled and if so ==============
+        // check the character's counters and apply any color changes that must be done. ===
+        if (activeChar.getPvpKills()>=(Config.PVP_AMOUNT1) && (Config.PVP_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvpKills());
+        if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVPTITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills());
+        // Color System checks - End =======================================================
+        // =================================================================================

 

 

 

 

 

 

L2PCINSTANCE

 

+	// Custom PVP Color System - Start
+	public void updatePvPColor(int pvpKillAmount)
+	{
+		if (Config.PVP_COLOR_SYSTEM_ENABLED)
+		{
+			//Check if the character has GM access and if so, let them be.
+			if (isGM())
+				return;
+			{
+				if ((pvpKillAmount >= (Config.PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
+				{
+					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT1);
+				}
+				else if ((pvpKillAmount >= (Config.PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
+				{
+					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT2);
+				}
+				else if ((pvpKillAmount >= (Config.PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
+				{
+					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT3);
+				}
+				else if ((pvpKillAmount >= (Config.PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
+				{
+					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT4);
+				}
+				else if (pvpKillAmount >= (Config.PVP_AMOUNT5))
+				{
+					getAppearance().setNameColor(Config.NAME_COLOR_FOR_PVP_AMOUNT5);
+				}
+			}
+		}
+	}
+	//Custom PVP Color System - End
+	
+	// Custom PVP Title Color System - Start
+	public void updatePvPTitleColor(int pvpKillAmount)
+	{
+		if (Config.PVPTITLE_COLOR_SYSTEM_ENABLED)
+		{
+			//Check if the character has GM access and if so, let them be, like above.
+			if (isGM())
+				return;
+			{
+				if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pkKillAmount <= (Config.PVP_AMOUNT2)))
+				{
+					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT1);
+				}
+				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pkKillAmount <= (Config.PVP_AMOUNT3)))
+				{
+					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT2);
+				}
+				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pkKillAmount <= (Config.PVP_AMOUNT4)))
+				{
+					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT3);
+				}
+				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pkKillAmount <= (Config.PVP_AMOUNT5)))
+				{
+					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT4);
+				}
+				else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5))
+				{
+					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT5);
+				}
+			}
+		}
+	}
+	//Custom PVP Title Color System - End
+	
     @Override
     public final void updateEffectIcons(boolean partyOnly)
     {
-4996,6 +5065,10 @@
         // Add karma to attacker and increase its PK counter
         setPvpKills(getPvpKills() + 1);

+      //Update the character's name color if they reached any of the 5 PvP levels.
+        updatePvPColor(getPvpKills());
+        broadcastUserInfo();
+
         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
         sendPacket(new UserInfo(this));
     }
-5047,6 +5120,10 @@
         setPkKills(getPkKills() + 1);
         setKarma(getKarma() + newKarma);

+        //Update the character's title color if they reached any of the 5 PK levels.
+        updatePvPTitleColor(getPvPKills());
+        broadcastUserInfo();
+        
         // Send a Server->Client UserInfo packet to attacker with its Karma and PK Counter
         sendPacket(new UserInfo(this));
     }

 

 

 

Don't forget: You must add the stuff that has a "+" in the beginning of the line..

  • 0
Posted

Edit: Sorry for the double Post

 

Ok Coyote i try and i have a error

 

[javac] C:\xxx\xxx\xxx\L2JTeon-Core\java\net\sf\l2j\Config.java:2705: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT1
   [javac] location: class net.sf.l2j.Config
   [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount1", "DDC0CB"));
   [javac] 				^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2706: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT2
   [javac] location: class net.sf.l2j.Config
   [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount2", "808080"));
   [javac] 				^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2707: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT3
   [javac] location: class net.sf.l2j.Config
   [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount3", "808080"));
   [javac] 				^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2708: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT4
   [javac] location: class net.sf.l2j.Config
   [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount4", "FF0000"));
   [javac] 				^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2709: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT5
   [javac] location: class net.sf.l2j.Config
   [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount5", "000000"));
   [javac] 				^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT1
   [javac] location: class net.sf.l2j.Config
   [javac] 				if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
   [javac] 				                             ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: illegal start of type
   [javac] 				if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
   [javac] 				                      ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3715: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT1
   [javac] location: class net.sf.l2j.Config
   [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT1);
   [javac] 					                                    ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT2
   [javac] location: class net.sf.l2j.Config
   [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
   [javac] 				                                  ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: illegal start of type
   [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
   [javac] 				                           ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3719: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT2
   [javac] location: class net.sf.l2j.Config
   [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT2);
   [javac] 					                                    ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT3
   [javac] location: class net.sf.l2j.Config
   [javac]     			else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
   [javac]     			                                  ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: illegal start of type
   [javac]     			else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
   [javac]     			                           ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3723: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT3
   [javac] location: class net.sf.l2j.Config
   [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT3);
   [javac] 					                                    ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT4
   [javac] location: class net.sf.l2j.Config
   [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
   [javac] 				                                  ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: illegal start of type
   [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
   [javac] 				                           ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3727: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT4
   [javac] location: class net.sf.l2j.Config
   [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT4);
   [javac] 					                                    ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT5
   [javac] location: class net.sf.l2j.Config
   [javac] 				else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5))
   [javac] 				                                 ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: illegal start of type
   [javac] 				else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5))
   [javac] 				                          ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3731: cannot find symbol
   [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT5
   [javac] location: class net.sf.l2j.Config
   [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT5);
   [javac] 					                                    ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4920: cannot find symbol
   [javac] symbol  : method getPvPKills()
   [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
   [javac]         updatePvPTitleColor(getPvPKills());
   [javac]                             ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol
   [javac] symbol  : method getPvPKills()
   [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
   [javac]         if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills());
   [javac]                       ^
   [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol
   [javac] symbol  : method getPvPKills()
   [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
   [javac]         if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills());
   [javac]                                                                                                                                                  ^
   [javac] Note: C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API.
   [javac] Note: Recompile with -Xlint:deprecation for details.
   [javac] 23 errors

BUILD FAILED

 

here > http://www.zshare.net/download/706840911bda2bd6/

you have my L2PCinstance/ENTERWORLD/Config

 

thanks for your help

  • 0
Posted

Edit: Sorry for the double Post

 

Ok Coyote i try and i have a error

 

[javac] C:\xxx\xxx\xxx\L2JTeon-Core\java\net\sf\l2j\Config.java:2705: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT1
    [javac] location: class net.sf.l2j.Config
    [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT1 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount1", "DDC0CB"));
    [javac] 				^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2706: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT2
    [javac] location: class net.sf.l2j.Config
    [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT2 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount2", "808080"));
    [javac] 				^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2707: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT3
    [javac] location: class net.sf.l2j.Config
    [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT3 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount3", "808080"));
    [javac] 				^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2708: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT4
    [javac] location: class net.sf.l2j.Config
    [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT4 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount4", "FF0000"));
    [javac] 				^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\Config.java:2709: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT5
    [javac] location: class net.sf.l2j.Config
    [javac] 				TITLE_COLOR_FOR_PVP_AMOUNT5 = Integer.decode("0x" + L2JTeonCustom.getProperty("TitleForAmount5", "000000"));
    [javac] 				^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT1
    [javac] location: class net.sf.l2j.Config
    [javac] 				if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
    [javac] 				                             ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3713: illegal start of type
    [javac] 				if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT1)) && (pvpKillAmount <= (Config.PVP_AMOUNT2)))
    [javac] 				                      ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3715: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT1
    [javac] location: class net.sf.l2j.Config
    [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT1);
    [javac] 					                                    ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT2
    [javac] location: class net.sf.l2j.Config
    [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
    [javac] 				                                  ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3717: illegal start of type
    [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT2)) && (pvpKillAmount <= (Config.PVP_AMOUNT3)))
    [javac] 				                           ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3719: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT2
    [javac] location: class net.sf.l2j.Config
    [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT2);
    [javac] 					                                    ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT3
    [javac] location: class net.sf.l2j.Config
    [javac]     			else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
    [javac]     			                                  ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3721: illegal start of type
    [javac]     			else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT3)) && (pvpKillAmount <= (Config.PVP_AMOUNT4)))
    [javac]     			                           ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3723: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT3
    [javac] location: class net.sf.l2j.Config
    [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT3);
    [javac] 					                                    ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT4
    [javac] location: class net.sf.l2j.Config
    [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
    [javac] 				                                  ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3725: illegal start of type
    [javac] 				else if ((pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT4)) && (pvpKillAmount <= (Config.PVP_AMOUNT5)))
    [javac] 				                           ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3727: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT4
    [javac] location: class net.sf.l2j.Config
    [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT4);
    [javac] 					                                    ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT5
    [javac] location: class net.sf.l2j.Config
    [javac] 				else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5))
    [javac] 				                                 ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3729: illegal start of type
    [javac] 				else if (pvpKillAmount >= (Config.TITLE_COLOR_FOR_PVP_AMOUNT5))
    [javac] 				                          ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:3731: cannot find symbol
    [javac] symbol  : variable TITLE_COLOR_FOR_PVP_AMOUNT5
    [javac] location: class net.sf.l2j.Config
    [javac] 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PVP_AMOUNT5);
    [javac] 					                                    ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\model\actor\instance\L2PcInstance.java:4920: cannot find symbol
    [javac] symbol  : method getPvPKills()
    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
    [javac]         updatePvPTitleColor(getPvPKills());
    [javac]                             ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol
    [javac] symbol  : method getPvPKills()
    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
    [javac]         if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills());
    [javac]                       ^
    [javac] C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\network\clientpackets\EnterWorld.java:275: cannot find symbol
    [javac] symbol  : method getPvPKills()
    [javac] location: class net.sf.l2j.gameserver.model.actor.instance.L2PcInstance
    [javac]         if (activeChar.getPvPKills()>=(Config.PVP_TITLE_AMOUNT1) && (Config.PVP_TITLE_COLOR_SYSTEM_ENABLED)) activeChar.updatePvPColor(activeChar.getPvPKills());
    [javac]                                                                                                                                                  ^
    [javac] Note: C:\Documents and Settings\utilisateur\Bureau\L2JTeon-Core\java\net\sf\l2j\gameserver\GeoEngine.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 23 errors

BUILD FAILED

 

here > http://www.zshare.net/download/706840911bda2bd6/

you have my L2PCinstance/ENTERWORLD/Config

 

thanks for your help

 

asdsadsadasdsadsadsadsa

I will make a patch and share ti 2day >_>

 

EDIT:

 

I found the typos that ruinned it.

I will rework on teon's pvp system and give you the patch.

 

EDIT 2:

 

Well, it was not working because of typos.

I fixed 'em tho and the code works fine.

http://www.maxcheaters.com/forum/index.php?topic=111514.0

  • 0
Posted

ok if i understand the Code for the pvp system is this link:

 

http://www.maxcheaters.com/forum/index.php?topic=111514.0 ??

 

yes.

you couldn't add it cuz:

1) Vago's patch had mistakes

2) I had made some typos like.. instead of getPvp, I was writing getPvP.

  • 0
Posted

Ok for me the Compile is Ok

 

Just have the problem with the Geoengine.java but not real a problem (i think)

 

i will try the server tomorrow, now go to sleep xD

 

Thanks Coyote real good Job :D

  • 0
Posted

Ok for me the Compile is Ok

 

Just have the problem with the Geoengine.java but not real a problem (i think)

 

i will try the server tomorrow, now go to sleep xD

 

Thanks Coyote real good Job :D

 

thanks.

BTW Geoengine is not a problem caused because of the use of my code.

You must have done something different, or l2jteon has done something.

Guest
This topic is now closed to further replies.


  • Posts

    • POLAND — New VPS Location Our new VPS location in Poland is now available. Promo code: POLAND • 40% off new VPS orders in the Poland location • Offer valid until July 29, 2026 Enter the promo code POLAND during checkout to receive your discount.
    • In your place l will join to Mobius community to get something decent or just go to Lucera 2 ( ofc no source) if you want interlude on Classic client, coz Acis not have have it yet.
    • The client and the system aren't working very well; the screen is black, and some things aren't loading.  😞 
    • LINEAGE2.SK Summer Season is Comming! GRAND OPENING - 14.08.2026 at 20:00 GMT+1  OBT - 07.08.2025 at 20:00 GMT+1   Website :https://lineage2.sk Discord : https://discord.gg/gj7AC5juGP       Server Features and Rates Xp – 20x Sp – 20x Adena – 10x Drop – 15x Spoil - 15x  Epic Raid Boss  - 1x Regular RB - 5x  Quest - 5x Fame - 2x Epaulette - 15x Manor - 15x     Special Features Somik Interface Limited AutoFarm Vote System Champions System Achievement System And more in information below     Enchant Settings  Safe Enchant: +3  Max Enchant: +16 Enchant Chance: 63%  Attribute Stone Chance: 50%  Attribute Crystal Chance: 30%     NPC Buffer all buffs, songs, dances including 3rd prof + resists Buff Slots: 24 (+4) / 12 Buff Duration: 2 Hours     Epic Bosses & Respawns Queen Ant: 24 hours +/-8h Core: 3 days +/-8h Orfen: 2 days +/-8h Baium: 5 days +/-8h Beleth: 7 days +/-8h Antharas: 7 days +/-8h Valakas: 7 days +/-8h     Instances Zones Zaken: 6 players Normal Freya: 6 players Hard Freya: 12 Players Frintezza: 6 Players Tiat: 6 Players Beleth: 12 Players     GM Shop weapon/armor/jwl (max S grade) shots/spiritshots (max S grade) mana potions (1000 MP, 10s)      Global Gatekeeper all towns including cata/necro ToI Gracia Hellbound ...     Olympiad period 7 days (Monday) no class participants min 6 base class participants min 6 max enchant +6 Start points 20     Class Transfer for Adena     Subclass Quest Not required Max Subclass 3 Subclass Max LvL 85     Events Team vs Team Capture the Flag Death Match Last Hero Korean Style Treasure Hunt      Clans All new clans start with Clan LvL 5! Clan Skills/LvL for Clan Coins     Others  max 3 windows per HWID  BoM/MoM spawned in towns Auto-learn skills Autoloot Retail LvL of Epic Bosses Cancellation return buff system (30sec) Cancellation return buff -  not effect olympiad
  • Topics

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