Advertisement
Guest User

customstartlvl

a guest
Apr 1st, 2015
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P aCis_gameserver
  3. Index: config/Main/players.properties
  4. ===================================================================
  5. --- config/Main/players.properties (revision 16)
  6. +++ config/Main/players.properties (working copy)
  7. @@ -61,7 +61,7 @@
  8. DeleteCharAfterDays = 1
  9. +
  10. +# Allow custom starting lvl default:false
  11. +AllowCustomStartLvl = false
  12. +#Custom Start lvl for 85 lvl and 100% put 86
  13. +CustomStartLvl = 1
  14. \ No newline at end of file
  15. Index: java/net/sf/l2j/Config.java
  16. ===================================================================
  17. --- java/net/sf/l2j/Config.java (revision 16)
  18. +++ java/net/sf/l2j/Config.java (working copy)
  19. @@ -769,6 +769,10 @@
  20. public static boolean STORE_SKILL_COOLTIME;
  21. public static int BUFFS_MAX_AMOUNT;
  22.  
  23. +
  24. + // ------------ custom start lvl ------------
  25. + public static boolean ALLOW_CUSTOM_START_LVL;
  26. + public static int CUSTOM_START_LVL;
  27. // --------------------------------------------------
  28. // Server
  29. // --------------------------------------------------
  30. @@ -2830,10 +2834,11 @@
  31.  
  32. ENABLE_SKIPPING = npcs.getProperty("EnableSkippingItems", false);
  33.  
  34. +
  35. // players
  36. ExProperties players = load(PLAYERS_FILE);
  37. ALLOW_CUSTOM_STARTER_ITEMS = players.getProperty("AllowCustomStarterItems", false);
  38. -
  39. +
  40. if (ALLOW_CUSTOM_STARTER_ITEMS)
  41. {
  42. String[] propertySplit = players.getProperty("CustomStarterItems", "0,0").split(";");
  43. @@ -2866,6 +2871,9 @@
  44. }
  45. }
  46. }
  47. + // ----------- custom start lvl ------------------
  48. + ALLOW_CUSTOM_START_LVL = Boolean.parseBoolean(players.getProperty("AllowCustomStartLvl", "false"));
  49. + CUSTOM_START_LVL = Integer.parseInt(players.getProperty("CustomStartLvl", "1"));
  50.  
  51. STARTING_ADENA = players.getProperty("StartingAdena", 100);
  52. EFFECT_CANCELING = players.getProperty("CancelLesserEffect", true);
  53. Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
  54. ===================================================================
  55. --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 16)
  56. +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
  57. @@ -21,7 +21,7 @@
  58. import net.sf.l2j.gameserver.network.serverpackets.CharCreateOk;
  59. import net.sf.l2j.gameserver.network.serverpackets.CharSelectInfo;
  60. import net.sf.l2j.gameserver.util.Util;
  61. +import net.sf.l2j.gameserver.model.base.Experience;
  62. @SuppressWarnings("unused")
  63. public final class CharacterCreate extends L2GameClientPacket
  64. {
  65. @@ -191,6 +191,12 @@
  66. }
  67. }
  68.  
  69. + if (Config.ALLOW_CUSTOM_START_LVL)
  70. + {
  71. + newChar.addExpAndSp(Experience.LEVEL[Config.CUSTOM_START_LVL], 0);
  72. + }
  73. +
  74. +
  75. if (Config.ALLOW_SANTA_HAT_ON_NEW_CHARACTERS)
  76. {
  77. ItemInstance item = newChar.getInventory().addItem("Init", 7836, 1, newChar, null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement