Jump to content

Question

Posted

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 ? 

11 answers to this question

Recommended Posts

  • 0
Posted

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.

  • Like 1
  • 0
Posted

i cannot edit .class files , and in xml folder cant seem to find any file related to experience on l2jacis , anyway u can be a lil more specific ? 

  • 0
Posted (edited)

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
  • 0
Posted

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. 

  • 0
Posted

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 :))

  • 0
Posted
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 ; 

Guest
This topic is now closed to further replies.
  • Posts

    • Hi everyone, Since I’m no longer interested in L2 servers, if anyone is willing to continue the project, let me know. I’m currently selling the entire project. DM me for more information if you’re genuinely interested. I can offer limited free support for the first couple of months. It is not cheap. The sale includes the domain, the recently fully redesigned website, the updater, the interface, server files with Lucera ext source, and the database (excluding account passwords, emails, and other private information; character data can remain).   Server for test: https://lineage2.gold/download Server Info: https://lineage2.gold/info Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113  
    • You invent yourself a life - bad for you, one of the inner core dev, fernandopm, which worked hard over aCis quests from 2011 to 2016 is argentinian. I teached him back in time to work and make proper quests. My dev team comes from 10+ countries and I'm myself french. "Racist/nationalist" card ? Not working bro.   Not sure why I should thank you to send me questions, and regarding bug reports, so far, I got none of yours in either discord, gitlab, or forums. I'm sorry if you feel "ignored", but that's more a psychanalyst you need to speak with if you put emotions towards someones' appreciation over a forum. I never ignore a bug report, and if so (like skills reports), it's because I got a bigger plan (skills refactor, in that case). In any case, I delivered cookies for the bug report/fix, even if it dated of months, with proper credits over changesets. "Victim card" ? Not really working, but ok, maybe you're "emotional".   I barely make money out of aCis, for the spent time - simply selling my services, or even coding/administrating a minecraft/L2J server would make far more money. Breaking intentionally things would be stupid. If you don't understand I'm not the only one working on that pack, I can't help you. Also, the scale of edits is sometimes extreme - AI L2OFF ? 1800 files added. How do you want everything works in a single shot ? "Exploiting noobz for money" card ? Still not working, or I'm a terrible businessman.   Meanwhile - you shadow advertise your project, L2JOne (since 2017 btw) - you should maybe start by the beginning saying you're a competitor and aCis is actually a spike in your foot. That also explains why you act like that. RusAcis got the exact same strategy, speaking bad of me, saying they got unique fixes (you speak about I break things, they break and recode things 4 times sometimes, btw), but successfully reselling latest revision with poorly executed stuff. "aCis is good, Tryskell is ok, but I solve all issues in extreme low time so I can piss over him" card ? Mmmmhhhh.   Our conversation ends here if you want, I don't force ppl to speak with me if they don't want - hopefully, people would understand I'm not the arrogant one and the one who doesn't want to talk, or even collaborate. :). I understand you got your own project and got no will to improve aCis.   NOTE : I'm extremely happy for your call of ExShowServerPrimitive with getValidGeoLocation, extremely impressive. Arrogant, no. Sarcastic ? Maybe.   Good night everyone.
    • Hi. @GX-Ext, svn does not work. is there anywhere else where we can get source code? Thank you so much.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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