Secret Experience

Secret Experience (https://secretexperience.net/)
-   [Lineage] Java Mods (https://secretexperience.net/lineage-java-mods/)
-   -   [L2JServer] Nome Colorido e Hero colorido para dono de Clan Hi5 (https://secretexperience.net/lineage-java-mods/33277-nome-colorido-e-hero-colorido-para-dono-de-clan-hi5.html)

OliverSykes 17-12-2011 01:54 AM

Nome Colorido e Hero colorido para dono de Clan Hi5
 
1 Anexo(s)
Esse mod ele funciona da seguinte forma quando o clan chegar no level escolhido por você e posto na configuração o dono do clan tera seu nick colorido com a cor escolhida por você ea mesma coisa a cor do hero que tbm podera ser escolhida por você !!!

Obs: que as cores poderam ser as mesmas usadas na area de html e php para sites :)

Citação:

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.CLA NLEADERCOLOR);
+ }
+ }
+ if (Config.ALLOWHEROCOLOR)
+ {
+ // Hero Color
+ if (!activeChar.isClanLeader() && activeChar.isHero())
+ {
+ activeChar.getAppearance().setNameColor(Config.HER OCOLOR);
+ }
+ }
+ if (Config.ALLOWCLHCOLOR)
+ {
+ // Clan leader && Hero Color
+ if (!activeChar.isGM() && activeChar.isHero() && activeChar.isClanLeader() && activeChar.getClan().getLevel() >= Config.CLANLEADERCOLORLVL1)
+ {
+ activeChar.getAppearance().setNameColor(Config.CLH COLOR);
+ }
+ }
+
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("E nableManaPotionSupport", "false"));

+ // Colors
+ ALLOWCLANLEADERCOLOR = Boolean.parseBoolean(L2JModSettings.getProperty("E nableClanLeaderColor", "false"));
+ CLANLEADERCOLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderColor", "00FF00"));
+ CLANLEADERCOLORLVL = Integer.decode(L2JModSettings.getProperty("ClanLvL ", "4"));
+ ALLOWHEROCOLOR = Boolean.parseBoolean(L2JModSettings.getProperty("E nableHeroColor", "false"));
+ HEROCOLOR = Integer.decode("0x" + L2JModSettings.getProperty("HeroColor", "00FF00"));
+ ALLOWCLHCOLOR = Boolean.parseBoolean(L2JModSettings.getProperty("E nableCLHColor", "false"));
+ CLHCOLOR = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderHeroColor", "00FF00"));
+ CLANLEADERCOLORLVL1 = Integer.decode(L2JModSettings.getProperty("ClanLvL 1", "4"));
+ // End Colors
+
L2JMOD_DISPLAY_SERVER_TIME = Boolean.parseBoolean(L2JModSettings.getProperty("D isplayServerTime", "false"));

Creditos: Se alguem souber nome do criador me fala porque achei esse mod na internet !!

allanalcantara 17-12-2011 02:03 AM

muito bom ein. gostei =)

OliverSykes 17-12-2011 02:30 AM

Ele é um mod muito interessante e atualmente não vi nenhum server pack utilizando ele eu pus no meu projeto Hi5 e funciono normalmente mais la pra tarde vou posta print dele aqui pra galera ver como é mais ou menos a função dele *-*


Horários baseados na GMT -3. Agora são 05:13 AM.

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