Jump to content

[SHARE]H5 clan leader color hero color and special color for clan leader & hero


Recommended Posts

here is my share :

 

Index: /trunk/L2J_Server/java/config/l2jmods.properties
===================================================================
--- /trunk/L2J_Server/java/config/l2jmods.properties (revision 6)
+++ /trunk/L2J_Server/java/config/l2jmods.properties (revision 8)
@@ -283,4 +283,27 @@
# Mana Potion (item ID 728), using skill ID 10001.
EnableManaPotionSupport = False
+
+
+# This option Enable to set Clan Leader Name Color
+# default = False
+EnableClanLeaderColor = False
+# default = 00FF00 (green)
+ClanLeaderColor = 00FF00
+# default = 4
+ClanLvL = 4
+
+# This option Enable to set Hero Name Color
+# default = False
+EnableHeroColor = False
+# default = 00FF00 (green)
+HeroColor = 00FF00
+
+# This option Enable to set Clan Leader & Hero Name Color
+# default = False
+EnableCLHColor = False
+# default = 00FF00 (green)
+ClanLeaderHeroColor = 00FF00
+# default = 4
+ClanLvL1 = 4


Index: /trunk/L2J_Server/java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- /trunk/L2J_Server/java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 6)
+++ /trunk/L2J_Server/java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 8)
@@ -416,4 +416,29 @@
		activeChar.onPlayerEnter();

+		if (Config.ALLOWCLANLEADERCOLOR)
+			{
+			// Clan leader Color
+			if (!activeChar.isHero() && !activeChar.isGM() && activeChar.isClanLeader() && activeChar.getClan().getLevel() >= Config.CLANLEADERCOLORLVL)
+				{
+				activeChar.getAppearance().setNameColor(Config.CLANLEADERCOLOR);
+				}
+			}
+		if (Config.ALLOWHEROCOLOR)
+			{
+			// Hero Color
+			if (!activeChar.isClanLeader() && activeChar.isHero())
+				{
+				activeChar.getAppearance().setNameColor(Config.HEROCOLOR);
+				}
+			}
+		if (Config.ALLOWCLHCOLOR)
+			{
+			// Clan leader && Hero Color
+			if (!activeChar.isGM() && activeChar.isHero() && activeChar.isClanLeader() && activeChar.getClan().getLevel() >= Config.CLANLEADERCOLORLVL1)
+				{
+				activeChar.getAppearance().setNameColor(Config.CLHCOLOR);
+				}
+			}
+		
		sendPacket(new SkillCoolTime(activeChar));
		sendPacket(new ExVoteSystemInfo(activeChar));
Index: /trunk/L2J_Server/java/com/l2jserver/Config.java
===================================================================
--- /trunk/L2J_Server/java/com/l2jserver/Config.java (revision 6)
+++ /trunk/L2J_Server/java/com/l2jserver/Config.java (revision 8)
@@ -699,4 +699,14 @@
	public static boolean OFFLINE_FAME;
	public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;
+	// Colors
+	public static boolean ALLOWCLANLEADERCOLOR;
+	public static int CLANLEADERCOLOR;
+	public static int CLANLEADERCOLORLVL;
+	public static boolean ALLOWHEROCOLOR;
+	public static int HEROCOLOR;
+	public static boolean ALLOWCLHCOLOR;
+	public static int CLHCOLOR;
+	public static int CLANLEADERCOLORLVL1;
+	// End Colors
	public static boolean L2JMOD_DISPLAY_SERVER_TIME;
	public static boolean WELCOME_MESSAGE_ENABLED;
@@ -2414,4 +2424,15 @@
					L2JMOD_ENABLE_MANA_POTIONS_SUPPORT = Boolean.parseBoolean(L2JModSettings.getProperty("EnableManaPotionSupport", "false"));

+					// Colors
+					ALLOWCLANLEADERCOLOR = Boolean.parseBoolean(L2JModSettings.getProperty("EnableClanLeaderColor", "false"));
+					CLANLEADERCOLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderColor", "00FF00"));
+					CLANLEADERCOLORLVL = Integer.decode(L2JModSettings.getProperty("ClanLvL", "4"));
+					ALLOWHEROCOLOR = Boolean.parseBoolean(L2JModSettings.getProperty("EnableHeroColor", "false"));
+					HEROCOLOR = Integer.decode("0x" + L2JModSettings.getProperty("HeroColor", "00FF00"));
+					ALLOWCLHCOLOR = Boolean.parseBoolean(L2JModSettings.getProperty("EnableCLHColor", "false"));
+					CLHCOLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderHeroColor", "00FF00"));
+					CLANLEADERCOLORLVL1 = Integer.decode(L2JModSettings.getProperty("ClanLvL1", "4"));
+					// End Colors
+					
					L2JMOD_DISPLAY_SERVER_TIME = Boolean.parseBoolean(L2JModSettings.getProperty("DisplayServerTime", "false"));

 

sorry if its already shared.

Link to comment
Share on other sites

i found on pvp pk colors and updatet to this with gms dont get color and the special was mine idea becurse if get hero and CL

 

so have fun with that :D

 

let me know if anything is not working thanks

Link to comment
Share on other sites

Shared before. And it's badly coded. Anyway, thanks.

+1

why bad hwat you wanna do there better oO ?

 

and i am beginner in java so thanks.

you could organise the checks better

Link to comment
Share on other sites

its made in enterworld so it will work only after some1 will log into game, move hero color change to olympiad.java or somewhere where heroes are being chosen, clan leader color you will need to move to create clan or something, also if some1 is changing clan leader you will need to change color to normal of old leader and change color of new leader and also you will need checks if players can have color of both, clan leader and hero

Link to comment
Share on other sites

lol what can here dont work, just check if u typed everything rights, the configs, and that u did restart before writing post in forum

Link to comment
Share on other sites

  • 1 year later...
  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • Good afternoon everyone, we’ll get a couple of strong players in the CP, more details can be found here https://mw2.community/topic/211276-awr-team/  
    • so i bought this crap of the server few years back and i just found it laying around on my pc and i thought i should share it, if i remember correctly this crap has a lot of bugs that people abuse 🙂   https://drive.google.com/file/d/13QWg8pi4BPbGbTmlygZ078LjL6Fb0J2a/view?usp=sharing source   https://drive.google.com/file/d/13QWg8pi4BPbGbTmlygZ078LjL6Fb0J2a/view?usp=sharing system    
    • Error: Unable to access jarfile libs\Geodata_Converter_v01.jar
    • Since last massive leak as explained as 07/09 (notably all development branches), I don't accept anymore financial newcomers that easily. People will have to contribute 100 cookies worth of contributions (bug reports/fixes) as a first step to be accepted as Donator. Free user can join after sharing over 200 cookies out of contributions, compared to 100 cookies before. You can say thanks to RusAcis, and notably his worthless leader, UnleashedForce. The size of users will continue to shrink if more leaks occur, until true helpers only will be left. New prices are as following : Joining price: 200€ + 100 cookies, or 200 cookies This fee has to be paid if you are joining aCis project. Next month, and all other months, you will have to donate only basic monthly donation. Monthly price: 10€ / 10 cookies This fee has to be paid every month. I won't accept any new join fee before the 100 cookies contribution. Your money will be instantly sent back. Also, in the same shape of idea, actual supporters/donators have to be active to stay in sources. It doesn't have to be a particular amount, you just have to share from time to time *anything*. I don't accept anymore silent ppl. Only useful people will be kept.
    • @Kenrix Hello. my friend bought from you the panel and he told me that he haven't recieved yet his product whats going on?.
  • Topics

×
×
  • Create New...