Advertisement
Guest User

Colored Clan Leader Name

a guest
Jul 21st, 2011
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.92 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2_GameServer_It
  3. Index: java/l2/brick/Config.java
  4. ===================================================================
  5. --- java/l2/brick/Config.java   (revision ...)
  6. +++ java/l2/brick/Config.java   (working copy)
  7. @@ -847,6 +847,8 @@
  8.      public static int L2JMOD_CHAMPION_REWARD;
  9.      public static int L2JMOD_CHAMPION_REWARD_ID;
  10.      public static int L2JMOD_CHAMPION_REWARD_QTY;
  11.  
  12.      /** Team vs. Team Event Engine */
  13.      public static boolean TVT_EVENT_ENABLED;
  14. @@ -881,6 +883,12 @@
  15.      public static boolean L2JMOD_WEDDING_SAMESEX;
  16.      public static boolean L2JMOD_WEDDING_FORMALWEAR;
  17.      public static int L2JMOD_WEDDING_DIVORCE_COSTS;
  18. +    public static boolean CLAN_LEADER_COLOR_ENABLED;
  19. +    public static int   CLAN_LEADER_COLOR;
  20.  
  21.      // Packet information
  22.      /** Count the amount of packets per minute ? */
  23. @@ -1858,6 +1868,12 @@
  24.         L2JMOD_WEDDING_SAMESEX = Boolean.parseBoolean(ExtraConfig.getProperty("WeddingAllowSameSex", "False"));
  25.         L2JMOD_WEDDING_FORMALWEAR = Boolean.parseBoolean(ExtraConfig.getProperty("WeddingFormalWear", "True"));
  26.         L2JMOD_WEDDING_DIVORCE_COSTS = Integer.parseInt(ExtraConfig.getProperty("WeddingDivorceCosts", "20"));
  27. +                CLAN_LEADER_COLOR_ENABLED = Boolean.parseBoolean(ExtraConfig.getProperty("ClanLeaderColorEnabled", "False"));
  28. +                CLAN_LEADER_COLOR                      = Integer.decode("0x" + L2JModSettings.getProperty("ClanLeaderColor", "00FF00"));
  29. +                
  30.  
  31.                  L2JMOD_ENABLE_WAREHOUSESORTING_CLAN = Boolean.valueOf(ExtraConfig.getProperty("EnableWarehouseSortingClan", "False"));
  32. Index: java/config/l2jmods.properties
  33. ===================================================================
  34. --- java/config/ingameevents.properties (revision ...)
  35. +++ java/config/ingameevents.properties (working copy)
  36. @@ -132,3 +132,9 @@
  37. #Noble Color Support
  38. NobleNameColorEnabled = False
  39. #If Noble Color Support enable: Default: EE0000 (blue)
  40. NobleColor = EE0000
  41.  
  42. +#Clan Leader Color Support
  43. +ClanLeaderColorEnabled = False
  44. +#Clan Leader Color Name
  45. +ClanLeaderColor= 00FF00
  46. Index: java/net/sf/l2j/gameserver/clientpackets/EnterWorld.java
  47. ===================================================================
  48. --- java/l2/brick/gameserver/clientpackets/EnterWorld.java  (revision ...)
  49. +++ java/l2/brick/gameserver/clientpackets/EnterWorld.java  (working copy)
  50. @@ -148,6 +148,11 @@
  51.                      //set Noble character Color if enable
  52.             if(activeChar.isNoble() && !activeChar.isGM() && Config.ALT_NOBLE_COLOR_ENABLED)
  53.                activeChar.getAppearance().setNameColor(Config.ALT_NOBLE_COLOR);
  54. +        
  55. +       //set Clan Leader color if enable
  56. +       if(activeChar.isClanLeader() && !activeChar.isGM() && Config.CLAN_LEADER_COLOR_ENABLED)
  57. +           activeChar.getAppearance().setNameColor(Config.CLAN_LEADER_COLOR);
  58. +
  59.  
  60.          // Set dead status if applies
  61.     if (activeChar.getCurrentHp() < 0.5)
  62.         activeChar.setIsDead(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement