Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.96 KB | None | 0 0
  1. Index: java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java
  2. ===================================================================
  3. --- java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (revision 4498)
  4. +++ java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java (working copy)
  5. @@ -184,6 +184,10 @@
  6. GMSkillTable.getInstance().addSkills(activeChar);
  7. }
  8.  
  9. + //L2J Custom: Da vsem hero barvu nicku pokud je povoleno
  10. + if(activeChar.isHero() && !activeChar.isGM() && Config.ALT_HERO_COLOR_ENABLED)
  11. + activeChar.getAppearance().setNameColor(Config.ALT_HERO_COLOR);
  12. +
  13. // Set dead status if applies
  14. if (activeChar.getCurrentHp() < 0.5)
  15. activeChar.setIsDead(true);
  16. Index: java/com/l2jserver/Config.java
  17. ===================================================================
  18. --- java/com/l2jserver/Config.java (revision 4498)
  19. +++ java/com/l2jserver/Config.java (working copy)
  20. @@ -720,6 +720,8 @@
  21. public static int L2JMOD_DUALBOX_CHECK_MAX_PLAYERS_PER_IP;
  22. public static int L2JMOD_DUALBOX_CHECK_MAX_OLYMPIAD_PARTICIPANTS_PER_IP;
  23. public static TIntIntHashMap L2JMOD_DUALBOX_CHECK_WHITELIST;
  24. + public static boolean ALT_HERO_COLOR_ENABLED;
  25. + public static int ALT_HERO_COLOR;
  26.  
  27. //--------------------------------------------------
  28. // NPC Settings
  29. @@ -1659,6 +1661,9 @@
  30. STORE_RECIPE_SHOPLIST = Boolean.parseBoolean(Character.getProperty("StoreRecipeShopList", "False"));
  31. STORE_UI_SETTINGS = Boolean.parseBoolean(Character.getProperty("StoreCharUiSettings", "False"));
  32. FORBIDDEN_NAMES = Character.getProperty("ForbiddenNames", "").split(",");
  33. + ALT_HERO_COLOR_ENABLED = Boolean.parseBoolean(Character.getProperty("HeroNameColorEnabled", "False"));
  34. + ALT_HERO_COLOR = Integer.decode((new StringBuilder()).append("0x").append(Character.getProperty("HeroColor", "EE0000")).toString()).intValue();
  35. +
  36. }
  37. catch (Exception e)
  38. {
  39. Index: java/config/Character.properties
  40. ===================================================================
  41. --- java/config/Character.properties (revision 4498)
  42. +++ java/config/Character.properties (working copy)
  43. @@ -20,6 +20,12 @@
  44. # Title color for those matching the above MasterAccess AccessLevel.
  45. # Default: 00CCFF
  46. MasterTitleColor = 00CCFF
  47. +# ---------------------------------------------------------------------------
  48. +#Povolit zmenit barvu nicku u hrdinu?
  49. +HeroNameColorEnabled = False
  50. +
  51. +#Barva nicku: (EE0000 = tmave modra)
  52. +HeroColor = EE0000
  53.  
  54. # ---------------------------------------------------------------------------
  55. # Statistics
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement