Jump to content

Recommended Posts

Posted

Καλησπέρα.

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

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

 

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;
+	}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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