Jump to content
  • 0

Colour gia title(CODES)


Question

Posted

loipon 8a h8ela an exete proxira ta codes gia ta colour gia title se char  osa pio pola mporite......8a me boh8agate poli....exw kanei search ala den exw bri swsta codes..

6 answers to this question

Recommended Posts

  • 0
Posted

An 8es gia PvP/PK Color.Auto einai to swsto.

 

Index: java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(revision 47)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2PcInstance.java	(working copy)
@@ -3583,6 +3583,74 @@
         	DuelManager.getInstance().broadcastToOppositTeam(this, update);
         }
	}
+	
+	// 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 Pk Color System - Start
+	 	public void updatePkColor(int pkKillAmount)
+	 	{
+	 		if (Config.PK_COLOR_SYSTEM_ENABLED)
+	 		{
+	 			//Check if the character has GM access and if so, let them be, like above.
+	 			if (isGM())
+	 				return;
+	 			{
+	 				if ((pkKillAmount >= (Config.PK_AMOUNT1)) && (pkKillAmount <= (Config.PVP_AMOUNT2)))
+					{
+	 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT1);
+	 				}
+	 				else if ((pkKillAmount >= (Config.PK_AMOUNT2)) && (pkKillAmount <= (Config.PVP_AMOUNT3)))
+	 				{
+	 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT2);
+	 				}
+	 				else if ((pkKillAmount >= (Config.PK_AMOUNT3)) && (pkKillAmount <= (Config.PVP_AMOUNT4)))
+	 				{
+	 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT3);
+	 				}
+	 				else if ((pkKillAmount >= (Config.PK_AMOUNT4)) && (pkKillAmount <= (Config.PVP_AMOUNT5)))
+	 				{
+	 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT4);
+	 				}
+	 				else if (pkKillAmount >= (Config.PK_AMOUNT5))
+	 				{
+	 					getAppearance().setTitleColor(Config.TITLE_COLOR_FOR_PK_AMOUNT5);
+	 				}
+	 			}
+	 		}
+	 	}
+	 	//Custom Pk Color System - End	

	/**
	 * Send a Server->Client packet UserInfo to this L2PcInstance and CharInfo to all L2PcInstance in its _KnownPlayers.<BR><BR>
@@ -4471,6 +4539,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();
+        
         addExpAndSp(Config.ADD_EXP, Config.ADD_SP);
         {
         	sendMessage("You win Exp and Sp From Pvp Kills!");
@@ -4540,6 +4612,11 @@
			setPkKills(getPkKills() + 1);
			setKarma(getKarma() + newKarma);
		}
+        
+       //Update the character's title color if they reached any of the 5 PK levels.
+       updatePkColor(getPkKills());
+       broadcastUserInfo();
+        
		if(Config.CUSTOM_PK_SYSTEM)
		{
			setPvpKills(getPvpKills() + 1);
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 48)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -882,6 +882,31 @@
     public static boolean L2JMOD_WEDDING_FORMALWEAR;
     public static int L2JMOD_WEDDING_DIVORCE_COSTS;
     
+    /** Custom PvP Color System - Start */
+    public static boolean		PVP_COLOR_SYSTEM_ENABLED;
+    public static int			PVP_AMOUNT1;
+    public static int			PVP_AMOUNT2;
+    public static int			PVP_AMOUNT3;
+    public static int			PVP_AMOUNT4;
+    public static int			PVP_AMOUNT5;
+    public static int			NAME_COLOR_FOR_PVP_AMOUNT1;
+    public static int			NAME_COLOR_FOR_PVP_AMOUNT2;
+    public static int			NAME_COLOR_FOR_PVP_AMOUNT3;
+    public static int			NAME_COLOR_FOR_PVP_AMOUNT4;
+    public static int			NAME_COLOR_FOR_PVP_AMOUNT5;
+    public static boolean		PK_COLOR_SYSTEM_ENABLED;
+    public static int			PK_AMOUNT1;
+    public static int			PK_AMOUNT2;
+    public static int			PK_AMOUNT3;
+    public static int			PK_AMOUNT4;
+    public static int			PK_AMOUNT5;
+    public static int			TITLE_COLOR_FOR_PK_AMOUNT1;
+    public static int			TITLE_COLOR_FOR_PK_AMOUNT2;
+    public static int			TITLE_COLOR_FOR_PK_AMOUNT3;
+    public static int			TITLE_COLOR_FOR_PK_AMOUNT4;
+    public static int			TITLE_COLOR_FOR_PK_AMOUNT5;
+    /** Custom PvP Color System - End */
+    
     /** Customs - Start            */
     public static boolean 	ALT_OLY_SAME_IP;
     public static boolean 	PACKET_HANDLER_DEBUG;
@@ -1884,6 +1909,30 @@
                 L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));

+                /** Custom PvP Color System */
+                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"));
+                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"));
+                
				/**  Custom Features        */
				ALT_OLY_SAME_IP 						= Boolean.parseBoolean(L2JModSettings.getProperty("AltOlySameIp", "False"));
				PACKET_HANDLER_DEBUG 					= Boolean.parseBoolean(L2JModSettings.getProperty("PacketHandlerDebug", "False"));
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 48)
+++ java/config/l2jmods.properties	(working copy)
@@ -201,3 +201,61 @@

# Your Level Must Be Over
LevelNeededToUseNobleCustomItem = 76
+
+# ---------------------------------------
+# Section: PvP Title Color Change System by Level
+# ---------------------------------------
+# Each Amount will change the name color to the values defined here.
+# Example: PvpAmmount1 = 500, when a character's PvP counter reaches 500, their name color will change
+# according to the ColorForAmount value.
+# Note: Colors Must Use RBG format
+EnablePvPColorSystem = false
+
+# Pvp Amount & Name color level 1.
+PvpAmount1 = 500
+ColorForAmount1 = CCFF00
+
+# Pvp Amount & Name color level 2.
+PvpAmount2 = 1000
+ColorForAmount2 = 00FF00
+
+# Pvp Amount & Name color level 3.
+PvpAmount3 = 1500
+ColorForAmount3 = 00FF00
+
+# Pvp Amount & Name color level 4.
+PvpAmount4 = 2500
+ColorForAmount4 = 00FF00
+
+# Pvp Amount & Name color level 5.
+PvpAmount5 = 5000
+ColorForAmount5 = 00FF00
+
+# ---------------------------------------
+# Section: PvP Nick Color System by Level
+# ---------------------------------------
+# Same as above, with the difference that the PK counter changes the title color.
+# Example:  PkAmmount1 = 500, when a character's PK counter reaches 500, their title color will change
+# according to the Title For Amount
+# WAN: Colors Must Use RBG format
+EnablePkColorSystem = false
+
+# Pk Amount & Title color level 1.
+PkAmount1 = 500
+TitleForAmount1 = 00FF00
+
+# Pk Amount & Title color level 2.
+PkAmount2 = 1000
+TitleForAmount2 = 00FF00
+
+# Pk Amount & Title color level 3.
+PkAmount3 = 1500
+TitleForAmount3 = 00FF00
+
+# Pk Amount & Title color level 4.
+PkAmount4 = 2500
+TitleForAmount4 = 00FF00
+
+# Pk Amount & Title color level 5.
+PkAmount5 = 5000
+TitleForAmount5 = 00FF00
Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 47)
+++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -259,6 +259,15 @@
		Quest.playerEnter(activeChar);
		activeChar.sendPacket(new QuestList());

+		// =================================================================================
+		// 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.getPkKills()>=(Config.PK_AMOUNT1) && (Config.PK_COLOR_SYSTEM_ENABLED)) activeChar.updatePkColor(activeChar.getPkKills());
+		// Color System checks - End =======================================================
+		// =================================================================================
+		
		if (Config.NAME_COLOR_SYSTEM)
		{
			activeChar.getAppearance().setNameColor(Config.NAME_COLOR);

Guest
This topic is now closed to further replies.


  • Posts

    • if you are sending him clients i have no words mate that means you know him.
    • Looking to hire a skilled L2J developer or team to build a custom private server for solo play with advanced server-side AI bots. This is NOT for public launch — just a self-hosted project where I can simulate a full L2 experience alone or with a few friends. 🔹 What I Need A private L2J server ( High Five preferred, newer versions can work as well) with bots that: Farm 24/7 on their own (solo or in bot parties) Can be invited into party and follow basic orders (attack, follow, res, heal, etc.) Are able to join Olympiad, fight with proper logic (per class), and rank up Can coordinate for Raid Bosses (check spawn, move, assist, heal, DPS, etc.) Act like real players: town routines, rebuffing, restocking, even chatting if possible Have different roles: tanks, healers, nukers, archers, etc. Can interact through simple in-game commands or NPC interface 🔹 Your Job Set up the server and geodata Integrate a scalable bot system (written in Java or scriptable) Write clean, modular AI behavior (farming, PvP, party play, raid logic, etc.) Allow me to control/assign bots easily (in-game or config) Bonus: basic UI or GM panel for bot config 🔹 Payment Serious budget for serious work PayPal, crypto, or preferred method Project-based or hourly, negotiable Milestone-based OK 🔹 Contact Send me: Your experience with L2J or similar projects Any bot/AI systems you've built before Estimated timeframe Pricing expectations
    • Yeah, it’s wild how much gambling has changed. When I was growing up, even scratch-off tickets felt like a big thing, but now with so many casino apps and betting sites, it’s just everywhere. I know a few people who got caught up in online slots during lockdown and really struggled to stop, just because it was always on their phone.   I stick to in-game stuff like skin trading for games like CS2 or Dota, which to me feels less risky, especially if you know the value of the items. If you’re curious how these trades work or want to see some guides, just visit website—there’s a lot of info about trading without real gambling involved.
  • Topics

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