Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java
- ===================================================================
- --- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 4498)
- +++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (working copy)
- @@ -184,6 +184,10 @@
- GMSkillTable.getInstance().addSkills(activeChar);
- }
- + //L2J Custom: Da vsem hero barvu nicku pokud je povoleno
- + if(activeChar.isHero() && !activeChar.isGM() && Config.ALT_HERO_COLOR_ENABLED)
- + activeChar.getAppearance().setNameColor(Config.ALT_HERO_COLOR);
- +
- // Set dead status if applies
- if (activeChar.getCurrentHp() < 0.5)
- activeChar.setIsDead(true);
- Index: java/com/l2jserver/Config.java
- ===================================================================
- --- java/com/l2jserver/Config.java (revision 4498)
- +++ java/com/l2jserver/Config.java (working copy)
- @@ -720,6 +720,8 @@
- public static int L2JMOD_DUALBOX_CHECK_MAX_PLAYERS_PER_IP;
- public static int L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP;
- public static TIntIntHashMap L2JMOD_DUALBOX_CHECK_WHITELIST;
- + public static boolean ALT_HERO_COLOR_ENABLED;
- + public static int ALT_HERO_COLOR;
- //--------------------------------------------------
- // NPC Settings
- @@ -1659,6 +1661,9 @@
- STORE_RECIPE_SHOPLIST = Boolean.parseBoolean(Character.getProperty("StoreRecipeShopList", "False"));
- STORE_UI_SETTINGS = Boolean.parseBoolean(Character.getProperty("StoreCharUiSettings", "False"));
- FORBIDDEN_NAMES = Character.getProperty("ForbiddenNames", "").split(",");
- + ALT_HERO_COLOR_ENABLED = Boolean.parseBoolean(Character.getProperty("HeroNameColorEnabled", "False"));
- + ALT_HERO_COLOR = Integer.decode((new StringBuilder()).append("0x").append(Character.getProperty("HeroColor", "EE0000")).toString()).intValue();
- +
- }
- catch (Exception e)
- {
- Index: java/config/Character.properties
- ===================================================================
- --- java/config/Character.properties (revision 4498)
- +++ java/config/Character.properties (working copy)
- @@ -20,6 +20,12 @@
- # Title color for those matching the above MasterAccess AccessLevel.
- # Default: 00CCFF
- MasterTitleColor = 00CCFF
- +# ---------------------------------------------------------------------------
- +#Povolit zmenit barvu nicku u hrdinu?
- +HeroNameColorEnabled = False
- +
- +#Barva nicku: (EE0000 = tmave modra)
- +HeroColor = EE0000
- # ---------------------------------------------------------------------------
- # Statistics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement