Advertisement
Reynald0

Custom start lvl aCis 340

Dec 15th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.62 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P aCis_gameserver
  3. Index: java/net/sf/l2j/Config.java
  4. ===================================================================
  5. --- java/net/sf/l2j/Config.java (revision 3)
  6. +++ java/net/sf/l2j/Config.java (working copy)
  7. @@ -513,6 +513,10 @@
  8.     public static boolean STORE_SKILL_COOLTIME;
  9.     public static int BUFFS_MAX_AMOUNT;
  10.    
  11. +   /** Custom start lvl */
  12. +   public static boolean ALLOW_CUSTOM_START_LVL;
  13. +   public static int CUSTOM_START_LVL;
  14. +  
  15.     // --------------------------------------------------
  16.     // Server
  17.     // --------------------------------------------------
  18. @@ -1110,6 +1114,9 @@
  19.             BUFFS_MAX_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
  20.             STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
  21.            
  22. +           ALLOW_CUSTOM_START_LVL = players.getProperty("AllowCustomStartLvl", false);
  23. +           CUSTOM_START_LVL = players.getProperty("CustomStartLvl", 1);
  24. +          
  25.             // server
  26.             ExProperties server = load(SERVER_FILE);
  27.            
  28. Index: config/players.properties
  29. ===================================================================
  30. --- config/players.properties   (revision 3)
  31. +++ config/players.properties   (working copy)
  32. @@ -294,4 +294,9 @@
  33.  MaxBuffsAmount = 20
  34.  
  35.  # Store buffs/debuffs on user logout?
  36. -StoreSkillCooltime = True
  37. \ No newline at end of file
  38. +StoreSkillCooltime = True
  39. +
  40. +# Allow custom starting lvl default:false
  41. +AllowCustomStartLvl = True
  42. +#Custom Start lvl for 85 lvl and 100% put 86
  43. +CustomStartLvl = 75
  44. \ No newline at end of file
  45. Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
  46. ===================================================================
  47. --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java   (revision 3)
  48. +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java   (working copy)
  49. @@ -26,6 +26,7 @@
  50.  import net.sf.l2j.gameserver.model.L2World;
  51.  import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
  52.  import net.sf.l2j.gameserver.model.actor.template.PcTemplate;
  53. +import net.sf.l2j.gameserver.model.base.Experience;
  54.  import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
  55.  import net.sf.l2j.gameserver.model.item.kind.Item;
  56.  import net.sf.l2j.gameserver.model.quest.Quest;
  57. @@ -134,6 +135,9 @@
  58.             newChar = L2PcInstance.create(objectId, template, getClient().getAccountName(), _name, _hairStyle, _hairColor, _face, _sex != 0);
  59.         }
  60.        
  61. +       if (Config.ALLOW_CUSTOM_START_LVL)
  62. +           newChar.addExpAndSp(Experience.LEVEL[Config.CUSTOM_START_LVL], 0);
  63. +      
  64.         newChar.setCurrentCp(0);
  65.         newChar.setCurrentHp(newChar.getMaxHp());
  66.         newChar.setCurrentMp(newChar.getMaxMp());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement