Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: config/players.properties
- ===================================================================
- --- config/players.properties (revision 34)
- +++ config/players.properties (working copy)
- @@ -5,6 +5,9 @@
- # Use custom title for new players
- StartingTitle = L2Shares.com
- +# Starting level for new players
- +StartingLevel = 1
- +
- # Use custom starting location for new players
- # Disable = 0,0,0
- StartingLocation = 83513,148612,-3407
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 34)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -347,6 +347,7 @@
- /** Startup */
- public static String STARTING_TITLE;
- + public static int STARTING_LEVEL;
- public static Location STARTING_LOCATION;
- /** Misc */
- @@ -1029,6 +1030,7 @@
- {
- final ExProperties players = initProperties(PLAYERS_FILE);
- STARTING_TITLE = players.getProperty("StartingTitle", "L2Shares.com");
- + STARTING_LEVEL = players.getProperty("StartingLevel", 1);
- STARTING_LOCATION = parseLocation(players.getProperty("StartingLocation", "0,0,0"));
- USE_DEFAULT_PRICE = players.getProperty("UseDefaultItemPrices", true);
- Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 33)
- +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
- @@ -12,6 +12,7 @@
- import net.sf.l2j.gameserver.model.World;
- import net.sf.l2j.gameserver.model.actor.instance.Player;
- import net.sf.l2j.gameserver.model.actor.template.PlayerTemplate;
- +import net.sf.l2j.gameserver.model.base.Experience;
- import net.sf.l2j.gameserver.model.base.Sex;
- import net.sf.l2j.gameserver.model.holder.skillnode.GeneralSkillNode;
- import net.sf.l2j.gameserver.model.item.instance.ItemInstance;
- @@ -115,6 +116,8 @@
- return;
- }
- + player.addExpAndSp(Experience.LEVEL[Config.STARTING_LEVEL], 0);
- +
- player.setCurrentCp(0);
- player.setCurrentHp(player.getMaxHp());
- player.setCurrentMp(player.getMaxMp());
Advertisement
Add Comment
Please, Sign In to add comment