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

    • Our sales are ongoing. Bump. 08 July 2025 Telegram: ContactDiscordAccS
    • Our sales are ongoing. Bump. 08 July 2025 Telegram: ContactDiscordAccS
    • Hi there, I am interested. How can I contact you?
    • Server Hardware Configuration:   Recommended Configuration: CPU i7 with 3.0GHz frequency, 6 cores or more, solid-state drive, 16GB RAM or more. Recommended to use Experience Mode for gaming with no less than 1000 FakePlayers on the server. For optimal gaming experience, FakePlayer levels in Immersive Mode need to be higher than the script requirements. Siege War: Clan members must be level 40 or above to run siege war scripts. Olympics: Must be level 76 or above to run Olympics scripts.   Game Mode Introduction:   Immersive Mode: FakePlayers start from level 1, simulating real player growth paths, suitable for nostalgic and new players. Experience Mode: FakePlayers are randomly assigned levels 1-85, with fixed levels, suitable for quick game experience or veteran players revisiting classics. Mode Switching Guide: Default setting is Experience Mode. To switch to Immersive Mode, edit the GameMode item in \gameserver\config\jf_config.properties file, changing the value from True to False.   Clan System Features:   FakePlayers automatically create and manage clans, supporting player declarations of war against them. Automatically identifies enemy clans and organizes teams for battle. Players can easily manage clan members through custom commands, including teaming, summoning, resting, and other functions.   Classes and Custom Commands:   Considering the single-player environment, some classes have been merged and optimized, such as Bard, Support, and Dwarf classes. FakePlayers automatically utilize fashion, vehicles, transformation, and bracelet systems to enhance game diversity. Provides rich custom commands such as .RandomTeam, .SummonTeammate, etc., enhancing interaction between players and FakePlayers.   Activity Participation:   FakePlayers can automatically join TVT battles, GVG competitions, CtF capture the flag, and other exciting activities, providing players with rich gaming experiences.   Siege War Instructions: In the GM menu, you can apply, withdraw, and teleport to castle-related maps.When it's not siege event time, you can manually start siege wars.   FakePlayer siege behavior is controlled by scripts. During sieges, you can form regular teams and alliance teams, but cannot form clan teams or use clan summoning commands.   Siege Time Settings:   Siege application deadline modified to 5 minutes before registration closes. Siege duration changed from 2 hours to 30 minutes. Next siege time after siege ends adjusted to once per week. After FakePlayers obtain castle ownership, they automatically announce the next siege time as the nearest Sunday around 8 PM. When real players obtain castles, they need to manually set the next siege time or use default time.   Siege War Process: FakePlayers automatically apply for sieges, automatically conduct siege activities every Sunday and obtain castle ownership.   When castle is initially owned by NPCs: When there's only 1 attacking clan, obtaining the castle seal ends the siege war. When there are 2 or more attacking parties, in the first attack, attacking clans automatically form temporary alliances, players won't be selected and won't attack alliance members. After one party successfully seals, enters castle ownership alternation phase. Temporary alliance dissolves, battlefield transforms to full attack state where both attackers and defenders can attack each other. When castle is initially owned by FakePlayer clans or real players: After obtaining castle seal, enters castle ownership alternation phase.   Olympics Competition Instructions: Default activity time is daily from 18:00 to 00:00 the next day. Can be activated through GM console outside time periods.Non-time period activation method: GM console > Olympics > Start Olympics   Players must be nobles in main class state to participate in Olympics. FakePlayers automatically obtain noble status when participating in Olympics. Recommended to enable script control, this setting allows FakePlayers to automatically register for Olympics to generate real FakePlayer Olympics data. Setting activation: jf_config.properties --> lines 314, 321, 328. After players register for classless, individual class, and unlimited team competitions, FakePlayers and FakePlayer teams will automatically be generated for companionship. Scoring rules are consistent with official servers. Olympics runs monthly cycles, with settlement days on the 1st and 15th of each month. At cycle end, FakePlayers automatically apply to become heroes, players need to manually perform hero certification to become heroes.   Update Notes:   Optimized team system, fixed abnormal teammate name issues. GM console element enhancement menu fully localized, more convenient operation. Game mode switching simplified, one-click switching between Immersive and Experience modes. Reduced FakePlayer server-wide chat frequency, creating a more harmonious gaming environment. FakePlayer AI logic fully upgraded, reducing lag phenomena and improving game fluidity. FakePlayer clan joining events optimized, manual clan invitation function fixed. Introduced FakePlayer 1V1 duel system, enhancing combat fun. Integrated simple auto-assist system, optimizing game experience. Activated automatic potion supply function, reducing player operation burden. Implemented alliance and federation construction between real players and FakePlayers. FakePlayers automatically join team waiting queues, enhancing social interaction. Added FakePlayer private shops, enriching the trading system. Bulletin board built-in auction house upgrade, FakePlayers sell high-level items, players can also list items, FakePlayers randomly purchase. Opened some advanced dungeons accessible to FakePlayers, including Purgatory Abyss series, Immortal/Destruction/Annihilation Seed dungeons and multiple classic maps. Added normal boss respawn time settings Fixed new character Chinese title garbled text Fixed character shop setup not leveling Fixed TVT activity score anomalies In Experience Mode, teaming with FakePlayers modified to: FakePlayers normally gain experience and level up Fixed bug where FakePlayer accessories couldn't be completely replaced in Immersive Mode Fixed some issues with wild FakePlayers not fighting back Fixed bug where FakePlayers could still attack normally when under fear or loss of control debuff states Added Divine Knight FakePlayer class summoning small undead bird skill Optimized Knight class third job skill usage Optimized FakePlayer Wizard class combat logic in Olympics events Fixed Hero "one sentence" function Fixed bug where units couldn't be assigned when inviting FakePlayers to join clan Fixed bug of attacking wild BOSS followers while AFK Fixed bug of FakePlayers attacking wild BOSS followers when not AFK Fixed VIP member system Optimized Knight team combat logic Corrected boss teleport point confusion FakePlayers can enter "4 Cups" dungeon without restrictions "4 Cups" series quest localization corrections FakePlayers can enter Small Baium dungeon without restrictions Fixed alliance channel teammate auto-leaving bug Fixed alliance channel summon attacking teammates bug Fixed alliance channel code recursive infinite loop bug under certain probability Added alliance channel FakePlayer death resurrection script Fixed bug where FakePlayers could only equip S80 equipment at maximum Added custom FakePlayer crafting workshop and private shop (MS system) - see detailed instructions Added FakePlayer generation speed and initial level settings for Experience and Immersive modes Optimized database connections, breaking through 3000 player limit Fixed bug of wild same-clan FakePlayers fighting each other Siege War (test) real player difficulty appropriately increased Added Arrogance, Forge, Monastery, Imperial Tomb, Dragon Valley, various tombs, temples and other FakePlayer leveling maps, thanks to: TaoXiaoSan Quest testing and htm localization corrections, thanks to: Floating Cloud To reduce server burden, temporarily disabled FakePlayer item pickup function (won't update data but still has pickup actions) Modified auction house listing item logic (whether to close this service?) Fixed TVT, GVG, Ctf, LastHero, team events conflicting with siege events and Olympics bugs Added robot chat interface (private chat only) Added Dwarf race summoning robot Golem (non-siege) Reconstructed FakePlayer resurrection logic Restored in-game item shop When team hunting BOSS, Priest classes only provide healing services, debuff usage probability increased Opened FakePlayer equipment enhancement custom permissions Added server FakePlayer clan quantity settings   Download   Note: This LineageII l2jserver is not fully English!!!  
  • 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