Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P aCis_gameserver
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 3)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -513,6 +513,10 @@
- public static boolean STORE_SKILL_COOLTIME;
- public static int BUFFS_MAX_AMOUNT;
- + /** Custom start lvl */
- + public static boolean ALLOW_CUSTOM_START_LVL;
- + public static int CUSTOM_START_LVL;
- +
- // --------------------------------------------------
- // Server
- // --------------------------------------------------
- @@ -1110,6 +1114,9 @@
- BUFFS_MAX_AMOUNT = players.getProperty("MaxBuffsAmount", 20);
- STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);
- + ALLOW_CUSTOM_START_LVL = players.getProperty("AllowCustomStartLvl", false);
- + CUSTOM_START_LVL = players.getProperty("CustomStartLvl", 1);
- +
- // server
- ExProperties server = load(SERVER_FILE);
- Index: config/players.properties
- ===================================================================
- --- config/players.properties (revision 3)
- +++ config/players.properties (working copy)
- @@ -294,4 +294,9 @@
- MaxBuffsAmount = 20
- # Store buffs/debuffs on user logout?
- -StoreSkillCooltime = True
- \ No newline at end of file
- +StoreSkillCooltime = True
- +
- +# Allow custom starting lvl default:false
- +AllowCustomStartLvl = True
- +#Custom Start lvl for 85 lvl and 100% put 86
- +CustomStartLvl = 75
- \ No newline at end of file
- Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 3)
- +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
- @@ -26,6 +26,7 @@
- import net.sf.l2j.gameserver.model.L2World;
- import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;
- import net.sf.l2j.gameserver.model.actor.template.PcTemplate;
- +import net.sf.l2j.gameserver.model.base.Experience;
- import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
- import net.sf.l2j.gameserver.model.item.kind.Item;
- import net.sf.l2j.gameserver.model.quest.Quest;
- @@ -134,6 +135,9 @@
- newChar = L2PcInstance.create(objectId, template, getClient().getAccountName(), _name, _hairStyle, _hairColor, _face, _sex != 0);
- }
- + if (Config.ALLOW_CUSTOM_START_LVL)
- + newChar.addExpAndSp(Experience.LEVEL[Config.CUSTOM_START_LVL], 0);
- +
- newChar.setCurrentCp(0);
- newChar.setCurrentHp(newChar.getMaxHp());
- newChar.setCurrentMp(newChar.getMaxMp());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement