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.

  • 0
Posted

Thanks for Share!! Perfect work in l2jserver!!

 

:)

 

Thanks for share in request help section ? -.-'

 

First warning.

 

Locked.

Guest
This topic is now closed to further replies.


  • Posts

    • A New Chapter Begins We're Rebuilding – Join Our Staff Team After many years of activity, growth, and challenges, it’s finally time for our community to restructure and move forward. We’re ready to turn a new page and evolve into something greater — but we can’t do it without the help of passionate and committed people. That’s why we’re now opening up staff applications for those who want to actively shape the future of our community. If you have the motivation, time, and patience to contribute to something meaningful, this is your chance to step in and make a real impact. What We're Looking For We’re building a fresh and dedicated team of individuals who are ready to support and grow this project. Open roles include: Moderators – to keep the forum clean, safe, and organized Gaming Moderators – to help manage gaming boards (e.g., Lineage, GTA FiveM) Content Creators – to post updates, guides, and articles Community Managers – to engage users and drive activity Technical Staff – for development, backend, and server work We’re not focusing only on Lineage anymore. Our vision is expanding to new areas — including GTA FiveM and other multiplayer games you might have expertise in. If you have a good idea, a server plan, or something new to suggest — we’re open to it. Now’s the time to bring it forward. Requirements We’re looking for individuals who have: A history of activity on the forum (preferred) Available time to contribute consistently A sense of teamwork and responsibility A genuine interest in gaming and community building If you're interested, just send a private message to me or Celestine. (or just reply here) Tell us a few things about yourself and how you’d like to contribute. Let’s bring this community back to life. Let’s rebuild something great — together.   M M G A 
    • Lineage2Network - Interlude Reimagined   Embark on a revitalized journey through the classic Interlude era with Lineage2.Network. Our server is meticulously crafted by veteran players to deliver a seamless and engaging experience, blending the nostalgia of the Chaotic Chronicle with modern enhancements.     Server details   Chronicle: Interlude + Classic Rates: EXP x30 | Adena x10 | Drop x10 | Spoil x10     Server features   Daily Missions - complete special tasks for daily rewards Attendance Rewards - get rewards for online time Custom Events - TVT, DM, CTF NPC buffer duration - 2 hours   Mana Potions - restores 1000 MP, 10s cooldown Ring of Core additional stats: +1 STR Earring of Orfen additional stats: +1 INT Shadow Earring of Zaken - 7 days Shadow Ring of Queen Ant - 7 days   Max buff count - 24 (20 + 4 with Divine Inspiration) Noblesse, Heroic Valor, Flames of Invincibility and Celestial Shield don't take buff slot Reworked Cancel, Mage and Warrior Banes – removed buffs reappear after 30s Block Buffs - block all incoming buffs except from self/party Sweeper Festival added to Spoiler class   Subclass – retail or purchasable Noblesse – retail or purchasable up to Barakiel; collect 8 fragments for full staff 1st & 2nd class free, 3rd needs 700 Halisha Marks or is purchasable New Olympiad System: new stadiums with NPC buffer,  1 week period.     Key dates     Beta Launch: April 14, 2025 Official Launch: May 9, 2025     Check out full server details in our website And visit our discord   Join us and be part of community where classic gameplay meets innovative updates. Whether you're a solo adventurer or part of a formidable clan, Lineage2.Network offers a dynamic and balanced environment for all.  
  • Topics

×
×
  • Create New...