Jump to content

iNos

Members
  • Posts

    120
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by iNos

  1. use this

    Index: config/main/custom.properties
    ===================================================================
    --- config/main/custom.properties	(revision 1791)
    +++ config/main/custom.properties	(working copy)
    @@ -275,4 +275,9 @@
    
    # Max enchant for GMs...
    # Default: 65535
    -GMMaxEnchant = 65535
    \ No newline at end of file
    +GMMaxEnchant = 65535
    +
    +# Allow custom starting lvl default:false
    +AllowCustomStartLvl = false
    +#Custom Start lvl for 85 lvl and 100% put 86
    +CustomStartLvl = 1
    \ No newline at end of file
    Index: src/main/java/net/l2emuproject/Config.java
    ===================================================================
    --- src/main/java/net/l2emuproject/Config.java	(revision 1793)
    +++ src/main/java/net/l2emuproject/Config.java	(working copy)
    @@ -837,6 +835,10 @@
    	public static int           PVP_REWARD_ITEM_ID;
    	public static String        PVP_REWARD_ITEM_NAME;
    	public static int           PVP_REWARD_ITEM_AMMOUNT;
    +
    +	// ------------ custom start lvl ------------
    +	public static boolean		ALLOW_CUSTOM_START_LVL;
    +	public static int		CUSTOM_START_LVL;
    
    	public static boolean		ALLOW_CUSTOM_STARTER_ITEMS;
    	public static List<int[]> 	CUSTOM_STARTER_ITEMS = new FastList<int[]>();
    @@ -920,6 +922,10 @@
    		 	PVP_REWARD_ITEM_NAME = customSettings.getProperty("PvpRewardItemName", "Adena");
    		 	PVP_REWARD_ITEM_AMMOUNT = Integer.parseInt(customSettings.getProperty("PvpRewardAmmount", "100"));
    
    +			// ----------- custom start lvl ------------------
    +			ALLOW_CUSTOM_START_LVL = Boolean.parseBoolean(customSettings.getProperty("AllowCustomStartLvl", "false"));
    +			CUSTOM_START_LVL = Integer.parseInt(customSettings.getProperty("CustomStartLvl", "1"));
    +
    		 	ALLOW_CUSTOM_STARTER_ITEMS = Boolean.parseBoolean(customSettings.getProperty("AllowCustomStarterItems", "false"));
    
    			if (ALLOW_CUSTOM_STARTER_ITEMS)
    Index: src/main/java/net/l2emuproject/gameserver/network/clientpackets/CharacterCreate.java
    ===================================================================
    --- src/main/java/net/l2emuproject/gameserver/network/clientpackets/CharacterCreate.java	(revision 1791)
    +++ src/main/java/net/l2emuproject/gameserver/network/clientpackets/CharacterCreate.java	(working copy)
    @@ -28,6 +28,7 @@
    import net.l2emuproject.gameserver.model.L2SkillLearn;
    import net.l2emuproject.gameserver.model.L2World;
    import net.l2emuproject.gameserver.model.actor.instance.L2PcInstance;
    +import net.l2emuproject.gameserver.model.base.Experience;
    import net.l2emuproject.gameserver.model.itemcontainer.PcInventory;
    import net.l2emuproject.gameserver.model.quest.Quest;
    import net.l2emuproject.gameserver.model.quest.QuestState;
    @@ -175,6 +176,12 @@
    		//L2EMU_ADD
    		newChar.getPosition().setXYZInvisible(template.getSpawnX(), template.getSpawnY(), template.getSpawnZ());
    		//L2EMU_ADD
    +
    +		if (Config.ALLOW_CUSTOM_START_LVL)
    +		{
    +			newChar.addExpAndSp(Experience.LEVEL[Config.CUSTOM_START_LVL], 0);
    +		}
    +
    		if (Config.ALLOW_NEW_CHARACTER_TITLE)
    			newChar.setTitle(Config.NEW_CHARACTER_TITLE);
    		else

  2. pigene data/mapregion kai exi ena arxeio mesa mapregion.xml

     

    kane search primeval

     

    tha bris autes tis grames

    		<restartpoint id="35" name="primeval_isle" bbs="14" locname="1924">
    		<point X="10825" Y="-24156" Z="-3645" />
    		<point X="9404" Y="-23758" Z="-3734" />
    		<point X="9839" Y="-23385" Z="-3725" />
    		<point X="10240" Y="-24338" Z="-3689" />
    		<point X="10967" Y="-24918" Z="-3683" />
    		<chaospoint X="38040" Y="-38512" Z="-3508" />
    		<chaospoint X="42640" Y="-54496" Z="-2310" />
    		<chaospoint X="38304" Y="-55440" Z="-1136" />
    		<chaospoint X="40192" Y="-57600" Z="-2343" />
    		<chaospoint X="38400" Y="-56832" Z="-992" />
    	</restartpoint>

    ta <point X="10825" Y="-24156" Z="-3645" /> einai gia otan kapios den exi pk p na ton bgazi

    kai ta <chaospoint X="38400" Y="-56832" Z="-992" /> einai otan o alos exi pk p na ton bgazi alakse x,y,z stis sintetagmenes p thes

  3. # Class Master
    #-------------------------------------------------------------
    # Config for special Class Master npc that can change players occupation
    # If you need change occupation only use quest then set this to False (Default)
    # Syntax: occupation number;[required item id(count)],[],...;[reward item id(count)],[],...;occupation number...
    # Examples:
    #
    # ConfigClassMaster=1;[57(100000)];[];2;[57(1000000)];[];3;[57(10000000)],[5575(1000000)];[6622(1)]
    # 1st occupation change for 100.000 Adena (item id 57)
    # 2nd occupation change for 1.000.0000 Adena (item id 57)
    # 3rd occupation change for 10.000.0000 Adena (item id 57) and 1.000.000 Ancient Adena (item id 5575)
    # on 3rd occupation change player will be rewarded with 1 Book of Giants (item id 6622)
    #
    # ConfigClassMaster=1;[];[];2;[];[];3;[];[]
    # 1st, 2nd, 3rd occupation change for free, without rewards
    ConfigClassMaster=1;[];[];2;[];[];3;[];[]
    # Spawn Class Master npc if you have any in spawnlist. Default = False
    SpawnClassMaster  = True
    
    # Allows Strider Update
    ClassMasterUpdateStrider = False

    dokimase etsi exis kani ena lathos sto ConfigClassMaster kanonika perpi na einai

    ConfigClassMaster=1;[];[];2;[];[];3;[];[]

  4. as title says when someone login in game and his char is lvl 1 he will get the lvl you put in config

     

    here is the patch

    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]);
    +		}
    	}
    
    	/**
    

     

    if you put in config 85 level the char will be 85 lvl and 0% if you need 85 lvl and 100% put in config 86

     

    works for me on l2emu gracia part 2

  5. here is the .patch file

    Index: config/main/custom.properties
    ===================================================================
    --- config/main/custom.properties	(revision 1600)
    +++ config/main/custom.properties	(working copy)
    @@ -97,6 +97,11 @@
    # default = 3
    MaxSubClass = 3
    
    +#Custom lvl when player add new subclass
    +#min = 40 max = 80 dont put more
    +#default = 40
    +CustomSubclassLvl = 40
    +
    # ------------------------------------------
    # Section: Grade & Weight Penalties Controls
    # ------------------------------------------
    Index: src/main/java/net/l2emuproject/Config.java
    ===================================================================
    --- src/main/java/net/l2emuproject/Config.java	(revision 1600)
    +++ src/main/java/net/l2emuproject/Config.java	(working copy)
    @@ -830,6 +830,9 @@
    	public static int			TITLE_COLOR_FOR_AMMOUNT4;
    	public static int			TITLE_COLOR_FOR_AMMOUNT5;
    
    +	// ----------- custom subclass lvl --------------
    +	public static int			CUSTOM_SUBCLASS_LVL;
    +
    	//*********************************************************
    	public static void loadCustomConfig()
    	{
    @@ -894,6 +897,10 @@
    			ALLOW_TELE_IN_SIEGE_TOWN = Boolean.parseBoolean(customSettings.getProperty("AllowTeleportInSiegeTown", "false"));
    			ALT_MANA_POTIONS = Boolean.parseBoolean(customSettings.getProperty("AllowManaPotions", "false"));
    			FORCE_UPDATE_RAIDBOSS_ON_DB = Boolean.parseBoolean(customSettings.getProperty("ForceUpdateRaidBossOnDB", "false"));
    +
    +			// ----------- custom subclass lvl ------------
    +			CUSTOM_SUBCLASS_LVL = Integer.parseInt(customSettings.getProperty("CustomSubclassLvl", "40"));
    +
    		}
    		catch (Exception e)
    		{
    Index: src/main/java/net/l2emuproject/gameserver/model/base/SubClass.java
    ===================================================================
    --- src/main/java/net/l2emuproject/gameserver/model/base/SubClass.java	(revision 1600)
    +++ src/main/java/net/l2emuproject/gameserver/model/base/SubClass.java	(working copy)
    @@ -14,6 +14,8 @@
     */
    package net.l2emuproject.gameserver.model.base;
    
    +import net.l2emuproject.Config;
    +
    /**
     * Character Sub-Class Definition
     * <BR>
    @@ -24,9 +26,9 @@
    public final class SubClass
    {
    	private ClassId	_class;
    -	private long	_exp		= Experience.LEVEL[40];
    +	private long	_exp		= Experience.LEVEL[Config.CUSTOM_SUBCLASS_LVL];
    	private int		_sp			= 0;
    -	private byte	_level		= 40;
    +	private byte	_level		= (byte)Config.CUSTOM_SUBCLASS_LVL;
    	private int		_classIndex	= 1;
    
    	public SubClass(int classId, long exp, int sp, byte level, int classIndex)
    

    added on first post

    also i add one import that i forgot sorry

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock