Tópico: [L2JEmu] Modificando LvL Inicial
Ver um Único Post
Antigo 03-10-2013, 05:19 PM   #1 (permalink)
Setokaiba
Jesus Te Ama, Mas EU Não!
 
Avatar de Setokaiba
 
Registrado em: Oct 2008
Localização: 45º 33º 34º N | 122º 41º 41º W DESTINATION: ANYWHERE Adidas
Posts: 4,133
Agradeceu: 837
Agradecido 6,058 Vezes em 2,106 Posts
Achei Ruim:
Acharam ruim Vezes em Posts
Meu Estado:
Pontos: 20,442, Nível: 90
Pontos: 20,442, Nível: 90 Pontos: 20,442, Nível: 90 Pontos: 20,442, Nível: 90
Atividade: 99%
Atividade: 99% Atividade: 99% Atividade: 99%

Nome Real: Anderson Andrade

Inventório de Setokaiba Usuário possui 1x Lock Fan Usuário possui 1x Oakley Usuário possui 1x Apple Inc. Fan/User Usuário possui 1x Honda Usuário possui 1x Windows Seven User

Padrão Modificando LvL Inicial

Descrição: Permite configurar para que o personagem já seja criado em determinado level.

Testado no Gracia Parte 2.

Patch:
Código: [Somente Usuários Registrados Podem Visualizar os Links Desta PáginaClique aqui para se Registrar]
Index: config/main/altgame.properties
===================================================================
--- config/main/altgame.properties	(revision 1710)
+++ config/main/altgame.properties	(working copy)
@@ -121,6 +121,11 @@
 DwarfRecipeLimit = 50
 CommonRecipeLimit = 50
 
+# Allow custom starting lvl default:false
+AllowCustomStartLvl = false
+#Custom Start lvl for 85 lvl and 100% put 86
+CustomStartLvl = 1
+
 # ----------------
 # Section: Summons
 # ----------------
Index: src/main/java/net/l2emuproject/Config.java
===================================================================
--- src/main/java/net/l2emuproject/Config.java	(revision 1710)
+++ src/main/java/net/l2emuproject/Config.java	(working copy)
@@ -1878,6 +1878,10 @@
 	// ---------- Summons ---------------------------------------
 	public static float			ALT_GAME_SUMMON_PENALTY_RATE;			// Alternative game summon penalty
 
+	// ------------ custom start lvl ------------
+	public static boolean		ALLOW_CUSTOM_CHAR_LVL;
+	public static int		CUSTOM_CHAR_LVL;
+
 	//********************************************************************************************
 	public static void loadAltConfig()
 	{
@@ -1926,6 +1930,10 @@
 
 			// ----------- Summmons -------------- 
 			ALT_GAME_SUMMON_PENALTY_RATE = Float.parseFloat(altSettings.getProperty("AltSummonPenaltyRate", "1."));
+
+			// ------------ custom start lvl ------------
+			ALLOW_CUSTOM_CHAR_LVL = Boolean.parseBoolean(altSettings.getProperty("AllowCustomStartLvl", "false"));
+			CUSTOM_CHAR_LVL = Integer.parseInt(altSettings.getProperty("CustomStartLvl", "1"));
 		}
 		catch (Exception e)
 		{
Index: src/main/java/net/l2emuproject/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- src/main/java/net/l2emuproject/gameserver/network/clientpackets/EnterWorld.java	(revision 1710)
+++ src/main/java/net/l2emuproject/gameserver/network/clientpackets/EnterWorld.java	(working copy)
@@ -43,6 +43,7 @@
 import net.l2emuproject.gameserver.model.L2World;
 import net.l2emuproject.gameserver.model.actor.appearance.PcAppearance;
 import net.l2emuproject.gameserver.model.actor.instance.L2PcInstance;
+import net.l2emuproject.gameserver.model.base.Experience;
 import net.l2emuproject.gameserver.model.entity.Castle;
 import net.l2emuproject.gameserver.model.entity.ClanHall;
 import net.l2emuproject.gameserver.model.entity.Couple;
@@ -568,6 +569,11 @@
 
 		if (activeChar.isCursedWeaponEquipped())
 			CursedWeaponsManager.getInstance().getCursedWeapon(activeChar.getCursedWeaponEquippedId()).cursedOnLogin(activeChar);
+
+		if (Config.ALLOW_CUSTOM_CHAR_LVL && (activeChar.getLevel() == 1))
+		{
+			activeChar.getStat().addExp(Experience.LEVEL[Config.CUSTOM_CHAR_LVL]);
+		}
 	}
 
 	/**
Se você configurar como 85, será assim level 85 e 0% de EXP.
Se você quer o level 85 com 100% de EXP, basta colocar 86 na configuração.

Setokaiba está offline  
Links Patrocinados
 

Search Engine Optimization by vBSEO 3.3.0