Welcome to MaxCheaters.com

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads

  • 0

Help L2j Acis Experince.java help


Go to solution Solved by Zacapa,

Question

hello i did edited my experience.java at -> net.sf.l2j.gameserver.model.base;

package net.sf.l2j.gameserver.model.base;

public class Experience
{
	public static final long LEVEL[] =
	{
		-1L, // level 0 (unreachable)
		0L,
		68L,
		363L,
		1168L,
		2884L,
		6038L,
		11287L,
		19423L,
		31378L,
		48229L, // level 10
		71201L,
		101676L,
		141192L,
		191452L,
		254327L,
		331864L,
		426284L,
		539995L,
		675590L,
		835854L, // level 20
		1023775L,
		1242536L,
		1495531L,
		1786365L,
		2118860L,
		2497059L,
		2925229L,
		3407873L,
		3949727L,
		4555766L, // level 30
		5231213L,
		5981539L,
		6812472L,
		7729999L,
		8740372L,
		9850111L,
		11066012L,
		12395149L,
		13844879L,
		15422851L, // level 40
		17137002L,
		18995573L,
		21007103L,
		23180442L,
		25524751L,
		28049509L,
		30764519L,
		33679907L,
		36806133L,
		40153995L, // level 50
		45524865L,
		51262204L,
		57383682L,
		63907585L,
		70852742L,
		80700339L,
		91162131L,
		102265326L,
		114038008L,
		126509030L, // level 60
		146307211L,
		167243291L,
		189363788L,
		212716741L,
		237351413L,
		271973532L,
		308441375L,
		346825235L,
		387197529L,
		429632402L, // level 70
		474205751L,
		532692055L,
		606319094L,
		696376867L,
		804219972L,
		931275828L,
		1151275834L,
		1511275834L,
		2099275834L,
		4200000000L, // level 80
		6299994999L,
		10499905559L,
		16800005559L,
		27299995559L,
		44100005559L, // level 85
		71400000000L,
		115500000000L,
		186900000000L,
		302400000000L,
		489300000000L,// level 90
		791700000000L
	};
	
	/**
	 * This is the first UNREACHABLE level.<BR>
	 * ex: If you want a max at 80 & 99.99%, you have to put 81.<BR>
	 * <BR>
	 */
	public static final byte MAX_LEVEL = 91;
}

 

 

Unfortunately i did tried to set my level to 90 ingame but i had msg that max lvl was 80/81 (retail) is there any other file i should edit or i did something wrong on that file ? 

Share this post


Link to post
Share on other sites

11 answers to this question

Recommended Posts

  • 0
  • Solution

I will give you an example.

Open PcTemplate.java or PlayerTemplate.java

Find this
	@Override
	public final double getBaseHpMax(int level)
	{
		return _hpTable[level - 1];
	}

And make something like this

  public final double getBaseHpMax(int level)
  {
    int lvlmod = level - this._classBaseLevel;
    double hpmod = 0.37 * lvlmod;
    double hpmax = (this._hpAdd + hpmod) * lvlmod;
    double hpmin = this._hpAdd * lvlmod + hpmod;
    return this._hpInitial + (hpmax + hpmin) / 2;
  }

Then find this 
	private final int _classBaseLevel;

And put after
  private final double _hpInitial;
  private final double _hpAdd;

Find this
	_classBaseLevel = set.getInteger("baseLvl");

And put after this
	this._hpInitial = set.getDouble("hpInitial");
	this._hpAdd = set.getDouble("hpAdd");
	

If you do this you need to remove hpTable,mptable,cptable both on PlayerTemplate.java and xml. And put something like this on xmls

<set val="80" name="hpInitial"/>

<set val="11.83" name="hpAdd"/>

 

And you do the same for mp and cp.

Share this post


Link to post
Share on other sites
  • 0

data/xml/classes all theses xmls dark_fighter.xml etc you need to edit hpTable,mpTable and cpTable for every class there are alooooot of them you need days to do it. An easy way is to edit PlayerTemplate.java to make it like h5 or frozen.

Edited by Zacapa
  • Upvote 1

Share this post


Link to post
Share on other sites
  • 0

Like he said. Take your time and edit or handcode some static values up to your max lvl at least to see if it's working. 

Share this post


Link to post
Share on other sites
  • 0

i did edited tables for just duelist id 88 but still i couldn't lvl up more than 80  i'll have to edit  from fighter - warrior - gladiator and duelist to get it to work ? 

sorry if im being stupid but i have to learn somehow :))

Share this post


Link to post
Share on other sites
  • 0
3 minutes ago, Xenokage said:

i did edited tables for just duelist id 88 but still i couldn't lvl up more than 80  i'll have to edit  from fighter - warrior - gladiator and duelist to get it to work ? 

sorry if im being stupid but i have to learn somehow :))

 

For example on hpTable i think there are 80 or 81 values for each lvl i dont remember you need to put + 10 values like 500;501; with a ; 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.