Secret Experience

Secret Experience (https://secretexperience.net/)
-   [Lineage] Java Mods (https://secretexperience.net/lineage-java-mods/)
-   -   [L2JServer] Clan Leader Name e Tile Color (https://secretexperience.net/lineage-java-mods/24301-clan-leader-name-e-tile-color.html)

Mazokista 13-08-2010 04:51 PM

Clan Leader Name e Tile Color
 
1 Anexo(s)
Creditos : Guma
Adaptacao de Codigos : Mazokista

Código:

Index: Trunk\L2JStep_CORE\config\Custom\L2JMods.properties
===================================================================

--- Trunk\L2JStep_CORE\config\Custom\L2JMods.properties
+++ Trunk\L2JStep_CORE\config\Custom\L2JMods.properties

@@ -93,4 +93,8 @@


+#-----------------------------------------------
+#        Clan Leader Color Title Name        #
+#-----------------------------------------------
+# Clan Name Color Enabled?
+ClanLeaderNameColorEnabled = False
+ClanLeaderColor = 00BFFF
+ClanLeaderColorAtClanLevel = 5
+# Clan Title Color Enabled?
+ClanLeaderTitleColorEnabled = False
+ClanLeaderTitle = 00BFFF
+ClanLeaderTitleAtClanLevel = 5



Index: Trunk\L2JStep_CORE\java\com\l2jstep\config.java
===================================================================

--- Trunk\L2JStep_CORE\java\com\l2jstep\config.java
+++ Trunk\L2JStep_CORE\java\com\l2jstep\config.java

@@ -561,4 +561,6 @@

+          public static boolean CLAN_LEADER_COLOR_ENABLED;
+        public static int    CLAN_LEADER_COLOR;
+      public static int    CLAN_LEADER_COLOR_CLAN_LEVEL;
+      public static boolean CLAN_LEADER_TITLE_ENABLED;
+        public static int    CLAN_LEADER_TITLE;
+      public static int    CLAN_LEADER_TITLE_CLAN_LEVEL;



@@ -561,4 +561,6 @@


+                              CLAN_LEADER_COLOR_ENABLED = Boolean.parseBoolean(L2JModsSettings.getProperty("ClanLeaderNameColorEnabled", "False"));
+                                CLAN_LEADER_COLOR = Integer.decode("0x" + L2JModsSettings.getProperty("ClanLeaderColor", "00BFFF"));
+                                CLAN_LEADER_COLOR_CLAN_LEVEL = Integer.parseInt(L2JModsSettings.getProperty("ClanLeaderColorAtClanLevel", "1"));
+                              CLAN_LEADER_TITLE_ENABLED = Boolean.parseBoolean(L2JModsSettings.getProperty("ClanLeaderTitleColorEnabled", "False"));
+                                CLAN_LEADER_TITLE = Integer.decode("0x" + L2JModsSettings.getProperty("ClanLeaderTitle", "00BFFF"));
+                                CLAN_LEADER_TITLE_CLAN_LEVEL = Integer.parseInt(L2JModsSettings.getProperty("ClanLeaderTitleAtClanLevel", "1"));

 
 
Index: Trunk\L2JStep_CORE\java\com\l2jstep\gameserver\clientpackets\EnterWorld.java
===================================================================

--- Trunk\L2JStep_CORE\java\com\l2jstep\gameserver\clientpackets\EnterWorld.java
+++ Trunk\L2JStep_CORE\java\com\l2jstep\gameserver\clientpackets\EnterWorld.java

@@ -213,5 +213,13 @@

+        // Apply color settings to clan leader when entering
+        if (activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_COLOR_ENABLED && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_COLOR_CLAN_LEVEL)
+        { 
+                activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR);
+        }
+
+        if (activeChar.getClan() != null && activeChar.isClanLeader() && Config.CLAN_LEADER_TITLE_ENABLED && activeChar.getClan().getLevel() >= Config.CLAN_LEADER_TITLE_CLAN_LEVEL)
+        { 
+                activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_TITLE);
+        }



Horários baseados na GMT -3. Agora são 06:52 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0