24-10-2009, 06:44 AM
|
#5
|
Registrado em: May 2009
Localização: Minas Gerais-Pouso Alegre
Posts: 2,249
Agradecido 2,075 Vezes em 922 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Pontos: 11,212, Nível: 69 |
Nome Real: Júlio César R.de Morães
|
@paytaly :
Observe o mod como adicionei ele :
Index: DarkExplosion-CORE/java/config/other.properties
===================================================================
--- a/DarkExplosion-CORE/java/config/other.properties
+++ b/DarkExplosion-CORE/java/config/other.properties
@@ -136,12 +136,24 @@
# (Must be in hex BGR format: eg. 00FF00 = Green)
AdminNameColor = 00FF00
# Color to use for GM names, if enabled. (access level 75+).
# (Must be in hex BGR format: eg. FFFF00 = Yellow)
GMNameColor = FFFF00
+# Essa opcao libera diferentes cores de titulos para GM e ADM.
+# Para ativar : True
+GMTitleColorEnabled = True
+# Cor para ADM em AdminTitleColor. (access level 100+).
+# Cor para GM em GMTitleColor. (access level 75+).
+# Exemplo:
+# 00FF00 (verde) FFFF00 (amarelo)
+# Nota:
+# Essas cores sao em BGR nao em RGB reverse de RGB para por em BGR
+AdminTitleColor = 00FF00
+GMTitleColor = FFFF00
+
# Enable GMs to have the glowing aura of a Hero character.
GMHeroAura = False
# Auto set invulnerable status to a GM on login.
GMStartupInvulnerable = True
# Auto set invisible status to a GM on login.
Index: DarkExplosion-CORE/java/net/sf/l2j/Config.java
===================================================================
--- a/DarkExplosion-CORE/java/net/sf/l2j/Config.java
+++ b/DarkExplosion-CORE/java/net/sf/l2j/Config.java
@@ -1080,12 +1080,18 @@
/** Enable colored name for GM ? */
public static boolean GM_NAME_COLOR_ENABLED;
/** Color of GM name */
public static int GM_NAME_COLOR;
/** Color of admin name */
public static int ADMIN_NAME_COLOR;
+ /** CavaleiroNegro: Sistema de cores para GM/ADM ativados */
+ public static boolean GM_TITLE_COLOR_ENABLED; //TODO Gm color here
+ /** CavaleiroNegro: Cor para o titulo de ADM */
+ public static int ADMIN_TITLE_COLOR;
+ /** CavaleiroNegro: Cor para titulo de GM */
+ public static int GM_TITLE_COLOR;
/** Place an aura around the GM ? */
public static boolean GM_HERO_AURA;
/** Set the GM invulnerable at startup ? */
public static boolean GM_STARTUP_INVULNERABLE;
/** Set the GM invisible at startup ? */
public static boolean GM_STARTUP_INVISIBLE;
@@ -1586,12 +1592,15 @@
ALT_PRIVILEGES_SECURE_CHECK = Boolean.parseBoolean(otherSettings.getProperty("AltPrivilegesSecureCheck", "True"));
ALT_PRIVILEGES_DEFAULT_LEVEL = Integer.parseInt(otherSettings.getProperty("AltPrivilegesDefaultLevel", "100"));
GM_NAME_COLOR_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("GMNameColorEnabled", "False"));
GM_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("GMNameColor", "FFFF00"));
ADMIN_NAME_COLOR = Integer.decode("0x" + otherSettings.getProperty("AdminNameColor", "00FF00"));
+ GM_TITLE_COLOR_ENABLED = Boolean.parseBoolean(otherSettings.getProperty("GMTitleColorEnabled", "False"));
+ ADMIN_TITLE_COLOR = Integer.decode("0x" + otherSettings.getProperty("AdminTitleColor", "00FF00"));
+ GM_TITLE_COLOR = Integer.decode("0x" + otherSettings.getProperty("GMTitleColor", "FFFF00"));
GM_HERO_AURA = Boolean.parseBoolean(otherSettings.getProperty("GMHeroAura", "True"));
GM_STARTUP_INVULNERABLE = Boolean.parseBoolean(otherSettings.getProperty("GMStartupInvulnerable", "True"));
GM_STARTUP_INVISIBLE = Boolean.parseBoolean(otherSettings.getProperty("GMStartupInvisible", "True"));
GM_STARTUP_SILENCE = Boolean.parseBoolean(otherSettings.getProperty("GMStartupSilence", "True"));
GM_STARTUP_AUTO_LIST = Boolean.parseBoolean(otherSettings.getProperty("GMStartupAutoList", "True"));
GM_ADMIN_MENU_STYLE = otherSettings.getProperty("GMAdminMenuStyle", "modern");
Index: DarkExplosion-CORE/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
===================================================================
--- a/DarkExplosion-CORE/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
+++ b/DarkExplosion-CORE/java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
@@ -144,12 +144,19 @@
{
if (activeChar.getAccessLevel() >= 100)
activeChar.getAppearance().setNameColor(Config.ADMIN_NAME_COLOR);
else if (activeChar.getAccessLevel() >= 75)
activeChar.getAppearance().setNameColor(Config.GM_NAME_COLOR);
}
+ if (Config.GM_TITLE_COLOR_ENABLED)
+ {
+ if (activeChar.getAccessLevel() >= 100)
+ activeChar.getAppearance().setTitleColor(Config.ADMIN_TITLE_COLOR);
+ else if (activeChar.getAccessLevel() >= 75)
+ activeChar.getAppearance().setTitleColor(Config.GM_TITLE_COLOR);
+ }
}
if (Config.PLAYER_SPAWN_PROTECTION > 0)
activeChar.setProtection(true);
activeChar.spawnMe(activeChar.getX(), activeChar.getY(), activeChar.getZ());
Como no exemplo acima que voce mostrou nele havia a explicação do public static final String porém eu ja fiz essa parte e mesmo assim deu poblema.(Porém nem dei commit apenas testei e vi que não deu certo a especificação do public static final String e retirei depois disso)
Poderia me informar o que possilvemente estaria errado ? (Pelo meu ver nada,so seria possivelmente na parte de especificação)
__________________
Olá voce é novo na SecretExperience ?
Hum então voce ja deve ter lido as regras ? Não ? Então leia nossas regras evite ser alertado : [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Ainda tem dúvida de algo ? Então leia nosso FAQ : [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
|
|
|