Jump to content
  • 0

Leader Clan Color


Question

8 answers to this question

Recommended Posts

  • 0
Posted

Sou eftiaxa to Code an to xreiazesai

### Eclipse Workspace Patch 1.0
#P L2_GameServer_It
Index: java/net/sf/l2j/Config.java
===================================================================
--- java/net/sf/l2j/Config.java	(revision 4001)
+++ java/net/sf/l2j/Config.java	(working copy)
@@ -847,6 +847,8 @@
     public static int L2JMOD_CHAMPION_REWARD;
     public static int L2JMOD_CHAMPION_REWARD_ID;
     public static int L2JMOD_CHAMPION_REWARD_QTY;

     /** Team vs. Team Event Engine */
     public static boolean TVT_EVENT_ENABLED;
@@ -881,6 +883,12 @@
     public static boolean L2JMOD_WEDDING_SAMESEX;
     public static boolean L2JMOD_WEDDING_FORMALWEAR;
     public static int L2JMOD_WEDDING_DIVORCE_COSTS;
+  
+    public static int   CLAN_LEADER_COLOR; 

     // Packet information
     /** Count the amount of packets per minute ? */
@@ -1841,6 +1849,8 @@
                 L2JMOD_CHAMPION_REWARD                 = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItem", "0"));
                 L2JMOD_CHAMPION_REWARD_ID             = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemID", "6393"));
                 L2JMOD_CHAMPION_REWARD_QTY            = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemQty", "1"));

                 TVT_EVENT_ENABLED                        = Boolean.parseBoolean(L2JModSettings.getProperty("TvTEventEnabled", "false"));
                 TVT_EVENT_INTERVAL                        = Integer.parseInt(L2JModSettings.getProperty("TvTEventInterval", "18000"));
@@ -1858,6 +1868,12 @@
                 L2JMOD_WEDDING_SAMESEX                  = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingAllowSameSex", "False"));
                 L2JMOD_WEDDING_FORMALWEAR               = Boolean.parseBoolean(L2JModSettings.getProperty("WeddingFormalWear", "True"));
                 L2JMOD_WEDDING_DIVORCE_COSTS            = Integer.parseInt(L2JModSettings.getProperty("WeddingDivorceCosts", "20"));
+                
+                CLAN_LEADER_COLOR                      = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderColor", "00FF00"));
+                

                 if (TVT_EVENT_PARTICIPATION_NPC_ID == 0)
                 {
Index: java/config/l2jmods.properties
===================================================================
--- java/config/l2jmods.properties	(revision 4001)
+++ java/config/l2jmods.properties	(working copy)
@@ -132,3 +132,9 @@
# ex.: 1;2;3;4;5;6
# no ";" at the start or end
TvTEventDoorsCloseOpenOnStartEnd =
+
+#Clan Leader Color Name
+ClanLeaderColor= 00FF00
Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(revision 4001)
+++ java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java	(working copy)
@@ -148,6 +148,11 @@
                     activeChar.getAppearance().setNameColor(Config.GM_NAME_COLOR);
             }
         }
+        
+		if(activeChar.isClanLeader())
+		{
+			activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR);
+		}

         if (Config.PLAYER_SPAWN_PROTECTION > 0)
             activeChar.setProtection(true);

relocked

Guest
This topic is now closed to further replies.


×
×
  • Create New...