Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: config/Main/players.properties
- +# Allow custom starting lvl default:false
- +AllowCustomStartLvl = true
- +#Custom Start lvl for 85 lvl and 100% put 86
- +CustomStartLvl = 86
- =================================================================
- java/net/sf/l2j/Config.java
- public static int MAX_DEFENDERS_NUMBER;
- public static int ATTACKERS_RESPAWN_DELAY;
- + // ------------ custom start lvl ------------
- + public static boolean ALLOW_CUSTOM_START_LVL;
- + public static int CUSTOM_START_LVL;
- // --------------------------------------------------
- // Server
- // --------------------------------------------------
- and
- private static final void loadPlayers()
- {
- final ExProperties players = initProperties(PLAYERS_FILE);
- ALLOW_CUSTOM_START_LVL = players.getProperty("AllowCustomStartLvl", false);
- + CUSTOM_START_LVL = players.getProperty("CustomStartLvl", 1);
- + EFFECT_CANCELING = players.getProperty("CancelLesserEffect", true);
- HP_REGEN_MULTIPLIER = players.getProperty("HpRegenMultiplier", 1.);
- and
- =======================================================================================
- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
- import net.sf.l2j.gameserver.scripting.Quest;
- +import net.sf.l2j.gameserver.model.actor.player.Experience;
- @SuppressWarnings("unused")
- and
- // Tutorial runs here.
- if (!Config.DISABLE_TUTORIAL)
- {
- if (player.getQuestState("Tutorial") == null)
- {
- final Quest quest = ScriptData.getInstance().getQuest("Tutorial");
- if (quest != null)
- quest.newQuestState(player).setState(Quest.STATE_STARTED);
- }
- }
- + if (Config.ALLOW_CUSTOM_START_LVL)
- + {
- + player.addExpAndSp(Experience.LEVEL[Config.CUSTOM_START_LVL], 0);
- + }
- player.setOnlineStatus(true, false);
- player.deleteMe();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement