Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

Posted

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

Posted

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

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

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


  • Posts

    • Acabei de liberar no TopL2.com o nosso MOD Oficial de VoteSystem, criado para servidores Lineage 2 que querem parar de sofrer com voto “fake” e reward entregue sem controle.   O que ele faz? O mod integra seu GameServer com o site TopL2, valida o voto do jogador e só então libera a recompensa — tudo com mais segurança, rastreio e controle.   Principais vantagens Voto verificado: o servidor confirma o voto registrado no site Reward mais seguro: evita abuso/duplicação e reduz exploit Cooldown configurável por jogador Logs e rastreio para auditoria e suporte   Instalação rápida, com arquivos organizados e prontos para copiar/aplicar   Disponível para download no https://TopL2.com   Se você é admin e quer profissionalizar seu sistema de votos e entregar reward com segurança, esse mod é pra você.  
    • Geia sas paidia eimai new edw mesa kai tha ithela na kanw mia erwtisi an kapoios mporei na me voithisei! Exw highfive (L2JMobius) kai thelw na valw custom weapons alla den exw sql file mporw na ta perasw xwris sql file kai na exw mono ta xml arxeia gia na ta valw stats/items?
    • ## [1.4.0] - 2026-01-28   ### ✨ New Features - **Vote System**: Lineage 2 servers can now use our vote–reward system. Players vote on the website and claim rewards in-game (1 vote = 1 claim) - **Vote Page**: On each server’s page (`/servers/<server>`), a **“Vote for Server”** button opens a dedicated vote page with cooldown info and optional Turnstile verification - **By Votes View**: The **“By Votes”** tab on the main page shows **actual vote counts** per server - **API Documentation**: New **API Docs** page at `/docs` (and footer link) with HMAC auth, endpoints, and examples for game server integration - **Vote API (My Servers)**: Server owners can open **“Vote API”** in My Servers to manage credentials, cooldown, allowed IPs, and open the docs   ### 🔄 Improvements - **Server Pages**: Single-server data is cached and loads faster; server pages can be opened by ID or by name (e.g. `/servers/my-server-name`) - **API Root**: Visiting the API root redirects to the docs URL configured in admin (default: site docs page) - **Admin Panel**: New **“Vote System”** tab for global settings (Turnstile, API security, default cooldown, docs URL)   ### 🔐 Security & Reliability - Turnstile (CAPTCHA) support for vote submissions to reduce abuse - HMAC-protected game server API for secure vote check/claim and stats
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..