Advertisement
Guest User

TheEnd

a guest
Sep 8th, 2009
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.89 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2_GameServer New
  3. Index: java/config/l2jmods.properties
  4. ===================================================================
  5. --- java/config/l2jmods.properties  (revision 3427)
  6. +++ java/config/l2jmods.properties  (working copy)
  7.  -248,4 +248,21 @@
  8.  # This option will enable core support for:
  9.  # Mana Drug (item ID 726), using skill ID 9007.
  10.  # Mana Potion (item ID 728), using skill ID 9008.
  11. -EnableManaPotionSupport = False
  12. \ No newline at end of file
  13. +EnableManaPotionSupport = False
  14. +
  15. +
  16. +#Author TheEnd
  17. +NameColorSystem = True
  18. +NameColor =
  19. \ No newline at end of file
  20. Index: java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java
  21. ===================================================================
  22. --- java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java    (revision 3427)
  23. +++ java/net/sf/l2j/gameserver/network/clientpackets/EnterWorld.java    (working copy)
  24.  -93,6 +95,8 @@
  25.  {
  26.     private static final String _C__03_ENTERWORLD = "[C] 03 EnterWorld";
  27.  
  28. +   private static final int NAME_COLOR = 0;
  29. +
  30.     private static Logger _log = Logger.getLogger(EnterWorld.class.getName());
  31.  
  32.     public TaskPriority getPriority()
  33.  -306,6 +313,11 @@
  34.  
  35.         Quest.playerEnter(activeChar);
  36.         loadTutorial(activeChar);
  37. +       if (Config.NAME_COLOR_SYSTEM)
  38. +                   {
  39. +           activeChar.getAppearance().setNameColor(Config.NAME_COLOR);
  40. +                   }
  41. +      
  42.         for (Quest quest : QuestManager.getInstance().getAllManagedScripts())
  43.         {
  44.             if (quest != null && quest.getOnEnterWorld())
  45.  
  46. Index: java/net/sf/l2j/Config.java
  47. ===================================================================
  48. --- java/net/sf/l2j/Config.java (revision 3427)
  49. +++ java/net/sf/l2j/Config.java (working copy)
  50.  -594,7 +594,15 @@
  51.     public static boolean OFFLINE_SET_NAME_COLOR;
  52.     public static int OFFLINE_NAME_COLOR;
  53.     public static boolean L2JMOD_ENABLE_MANA_POTIONS_SUPPORT;
  54. +   public static boolean           NAME_COLOR_SYSTEM;
  55. +   public static int           NAME_COLOR;
  56. +  
  57.  
  58.     //--------------------------------------------------
  59.     // NPC Settings
  60.  -1953,11 +1970,12 @@
  61.                     BANKING_SYSTEM_ENABLED = Boolean.parseBoolean(L2JModSettings.getProperty("BankingEnabled", "false"));
  62.                     BANKING_SYSTEM_GOLDBARS = Integer.parseInt(L2JModSettings.getProperty("BankingGoldbarCount", "1"));
  63.                     BANKING_SYSTEM_ADENA = Integer.parseInt(L2JModSettings.getProperty("BankingAdenaCount", "500000000"));
  64. -
  65. +                   NAME_COLOR_SYSTEM = Boolean.parseBoolean(L2JModSettings.getProperty("NameColorSystem", "false"));
  66. +                   NAME_COLOR = Integer.decode("0x" + L2JModSettings.getProperty("NameColor", "00FF00"));
  67.                     OFFLINE_TRADE_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineTradeEnable", "false"));
  68.                     OFFLINE_CRAFT_ENABLE = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineCraftEnable", "false"));
  69.                     OFFLINE_SET_NAME_COLOR = Boolean.parseBoolean(L2JModSettings.getProperty("OfflineSetNameColor", "false"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement