Jump to content

[Share]Clan Leader Name*Title & Members Title Color


Recommended Posts

Καλησπέρα.

Είχα ψάξει αλλά κάτι παρόμοιο δεν βρήκα.

Είναι και σε διαφορετικά για το εάν θέλετε να διαλέξετε ένα από αυτά.

 

config:
Index: sf/l2j/config/l2jmods.properties
ChampionRewardItemQty = 1
+
+#---------------------------------------------------------------
+# Clan Leader Name*Title & Members Title Color                 
+#---------------------------------------------------------------
+ClanNameLeaderColorSystem = True
+ClanNameLeaderColor = 00FF00
+
+ClanLeaderTitleColorSystem = True
+ClanLeaderTitleColor = 00FF00
+
+ClanMembersTitleColorSystem = True
+ClanMembersTitleColor = 00FF00
+
=====
Index: sf/l2j/config.java
      public static int L2JMOD_CHAMPION_REWARD_QTY;
+    public static boolean			CLAN_LEADER_NAME_COLOR_SYSTEM;
+    public static boolean			CLAN_LEADER_TITLE_COLOR_SYSTEM;
+    public static boolean			CLAN_MEMBERS_TITLE_COLOR_SYSTEM;
+    public static int			CLAN_LEADER_NAME_COLOR;
+    public static int			CLAN_LEADER_TITLE_COLOR;
+    public static int			CLAN_MEMBERS_TITLE_COLOR;


                L2JMOD_CHAMPION_REWARD_QTY            = Integer.parseInt(L2JModSettings.getProperty("ChampionRewardItemQty", "1"));
+                CLAN_LEADER_NAME_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("ClanLeaderNameColorSystem", "false"));
+                CLAN_LEADER_NAME_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderNameColor", "00FF00"));
+                CLAN_LEADER_TITLE_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("ClanLeaderTitleColorSystem", "false"));
+                CLAN_LEADER_TITLE_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderTitleColor", "00FF00"));
+                CLAN_MEMBERS_TITLE_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("ClanMembersTitleColorSystem", "false"));
+                CLAN_MEMBERS_TITLE_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanMembersTitleColor", "00FF00"));
=====
Index: sf/l2j/gameserver/clientpackets/EnterWorld.java
private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld";
+	private static final int CLAN_LEADER_NAME_COLOR = 0;
+	private static final int CLAN_LEADER_TITLE_COLOR = 0;
+	private static final int CLAN_MEMBERS_TITLE_COLOR = 0;

private static Logger _log = Logger.getLogger(EnterWorld.class.getName());


	Quest.playerEnter(activeChar);
	activeChar.sendPacket(new QuestList());

+		                       //** Clan leader Name Color **//
+				        if (Config.CLAN_LEADER_COLOR_SYSTEM)
+				        {
+				        	if (activeChar.isClanLeader())
+				        	{
+				        		activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_NAME_COLOR);				        	}
+				        }
+					
+				        //** Clan TLeader Title Color **//
+				        if (Config.CLAN_TITLE_COLOR_SYSTEM)
+				        {
+				        	if (activeChar.isClanLeader())
+		
+				        	{
+				        		activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_TITLE_COLOR);				        	}
+				        }
+				        
+				        //** Clan Members Title Color **//
+				        if (Config.CLAN_MEMBERS_TITLE_COLOR_SYSTEM)
+				        {
+				        	if (activeChar.getClan() != null)
+		
+				        	{
+				        		activeChar.getAppearance().setTitleColor(Config.CLAN_MEMBERS_TITLE_COLOR);				        	}
+				        }



    activeChar.setPledgeClass(pledgeClass);
}

+	/**
+	 * @return the clanMembersTitleColor
+	 */
+	public static int getClanMembersTitleColor()
+	{
+		return CLAN_MEMBERS_TITLE_COLOR;
+	}
+
+	/**
+	 * @return the clanLeaderTitleColor
+	 */
+	public static int getClanLeaderTitleColor()
+	{
+		return CLAN_LEADER_TITLE_COLOR;
+	}
+
+	/**
+	 * @return the clanLeaderNameColor
+	 */
+	public static int getClanLeaderNameColor()
+	{
+		return CLAN_LEADER_NAME_COLOR;
+	}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



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