Advertisement
Guest User

Untitled

a guest
May 19th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.76 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. Index: L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java
  3. ===================================================================
  4. --- L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java   (revision 4083)
  5. +++ L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/EnterWorld.java   (working copy)
  6. @@ -158,7 +158,14 @@
  7.             if (Config.DEBUG)
  8.                 _log.warning("User already exists in Object ID map! User "+activeChar.getName()+" is a character clone.");
  9.         }
  10. +      
  11. +       // Start up Noble/Hero by TehGeorge
  12. +       if (Config.STARTUP_NOBLE)
  13. +               activeChar.setNoble(true);
  14.        
  15. +       if (Config.STARTUP_HERO)
  16. +               activeChar.setHero(true);
  17. +      
  18.         // Apply special GM properties to the GM when entering
  19.         if (activeChar.isGM())
  20.         {
  21. Index: L2_GameServer/java/com/l2jserver/Config.java
  22. ===================================================================
  23. --- L2_GameServer/java/com/l2jserver/Config.java    (revision 4083)
  24. +++ L2_GameServer/java/com/l2jserver/Config.java    (working copy)
  25. @@ -669,7 +669,10 @@
  26.     public static List<String> L2JMOD_MULTILANG_ALLOWED = new ArrayList<String>();
  27.     public static String L2JMOD_MULTILANG_DEFAULT;
  28.     public static boolean L2JMOD_MULTILANG_VOICED_ALLOW;
  29. -
  30. +   public static boolean STARTUP_NOBLE;
  31. +   public static boolean STARTUP_HERO;
  32. +  
  33. +  
  34.     //--------------------------------------------------
  35.     // NPC Settings
  36.     //--------------------------------------------------
  37. @@ -2234,6 +2237,9 @@
  38.                     if (!L2JMOD_MULTILANG_ALLOWED.contains(L2JMOD_MULTILANG_DEFAULT))
  39.                         _log.warning("MultiLang[Config.load()]: default language: " + L2JMOD_MULTILANG_DEFAULT + " is not in allowed list !");
  40.                     L2JMOD_MULTILANG_VOICED_ALLOW = Boolean.parseBoolean(L2JModSettings.getProperty("MultiLangVoiceCommand", "True"));
  41. +                  
  42. +                   STARTUP_NOBLE = Boolean.parseBoolean(L2JModSettings.getProperty("StartupNoble", "False"));
  43. +                   STARTUP_HERO = Boolean.parseBoolean(L2JModSettings.getProperty("StartupHero", "False"));
  44.                 }
  45.                 catch (Exception e)
  46.                 {
  47. Index: L2_GameServer/java/config/l2jmods.properties
  48. ===================================================================
  49. --- L2_GameServer/java/config/l2jmods.properties    (revision 4083)
  50. +++ L2_GameServer/java/config/l2jmods.properties    (working copy)
  51. @@ -355,3 +355,15 @@
  52.  # Default: True
  53.  MultiLangVoiceCommand = True
  54.  
  55. +
  56. +# ---------------------------------------------------------------------------
  57. +# Start up Noblesse / Hero
  58. +# ---------------------------------------------------------------------------
  59. +# Auto set noblesse status to a normal player on login.
  60. +# Default: False
  61. +StartupNoble = False
  62. +
  63. +# Auto set hero status to a normal player on login.
  64. +# Default: False
  65. +StartupHero = False
  66. +
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement