Jump to content
  • 0

L2j Acis Experince.java help


Xenokage

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 ? 

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

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
Link to comment
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
Link to comment
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. 

Link to comment
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 :))

Link to comment
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 ; 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Posts

    • New Updates - Multi server on any L2jsource without any configuration - Vote System for  Hopezone, L2 Votes, L2 Brazil, L2Top.org, L2 RankZone, and L2Top.co - 2FA (Two factor authenticator) - Must Verify account - Support for Docker. For those who know how to use Docker theres the option with one command to deploy it without any additional setup on the server. Also, there's  the ability to build it in full binary and serve it from anywhere. Im using https://frankenphp.dev 
    • 🔥Grand opening 11.10.2024 , 20:00 Berlin Time, 21:00 Greece Time, 19:00 UK Time.🔥 Siege reward real $$ , check our website for more info about Siege reward! Facebook / Discord Giveaways are running ,check discord and faceboook.   🔥Interlude Server with Classic Systems & Interface.🔥   Rates: » Xp 100x. » Sp 100. » Adena Custom. » Drop Custom. » Starting character level - 76.   Enchant rates: »Safe Enchant: +3. »Safe Enchant Full-Armor: +4. »Max Enchant: +25 (Weapons) +14 (Armors). »Enchanting Chance: Normal Scroll [3-14=66%] [15-25=33%] | Blessed Scroll [3-14=60%] [15-25=30%]. Farm System Dynamic Auto Farm Zones : »Giants Cave [AOE too] »Elven Fortress »Cemetery 1-2 Extra Non Dynamic Farm Zones »Ketra Orcs »Forge of the Gods »Blazing Swamp (Up the Hill) »Tower of Insolence(AOE) Info : use item Drop Search from Community Board for Further Info Unique features: » Light [good FPS] Server Interface . » Main Town: Aden Castle Town. » Spawn Protection. » Custom NPC's. » Auto Learn Skills. » Caslte Siege every week . » Class Balance. » Skill Balance. » Flood Protection. » Walker Protection. » Chaotic Zones. » Custom Dynamic Farm Zones. » Custom PvP Zones. » Chaotic PvP Zone. » Stuckable Scolls. » Stuckalble BOGS. » Anti-Buff Shield skill & Instance. » Auto loot mobs. » No Auto Loot on Raids. » Auto Enchant Included. » Auto Free Farm included. » Dungeons included , Solo/Party. » All sieges work. » 4(Four) Clan Hall Sieges fully working. » Daily Custom Mission Manager. » Achievements Manager . » Anti-Buff Shield skill & Instance. » Shift Click on NPCS. » Click Remove Buffs included. » Double Click & Remove unwanted buffs. » 99,99% Uptime. » Dos Protection. » Anticheat Protection. and much more..   Voiced commands: .menu .onlinetime .events .register .unregister .pveevent .join .leave .mail .farm .remove .away .back .enchant .stop .vote .mystats .playersearch Event system: » Team Blue VS Team Red » DeathMatch » Raid In The Middle » Ultra Rapid Fire » Korean Style » Hot Wars » Capture the Flag » High Rate » Squash Event » Dwarf Event » Boss Event » Hitman » Daily Killer » Monthly Top 3 Clans,1500-750-250 Donate Coins as reward » Chest Event, chance for 100DonateCoins per kill » Happy Days: Daily Bonus Stats: Example every sunday 2% more enchant rate + Exp Sp e.t.c Olympiad game: »Max A-Grade gear. No enchant limitations. »Class or Non-Class based or both matches (Not decided yet). »Duration: 1 hour per day. »Cycle: 1 week Monday [ Pause] »Heroes every Sunday at 00:00 . »Boosted Hero Skills, Weapons. »(with Noblesse Gate Pass Rewards like books, enchants.).   More and all features --> https://www.l2eurogold.com/features.html L2Eurogold Wiki --> https://www.l2eurogold.com/wiki.html Server Roadmap --> Will be opened publicly 03.10.2024 500E Siege Reward for Januar Castle Siege --> https://discord.gg/4PMKPdF8Nx 🌍Website --> www.l2eurogold.com 🌐Discord Join Now--> https://discord.gg/PrpYPZYthm Facebook Oficial Page --> https://www.facebook.com/profile.php?id=100067739556286 Facebook fan Page --> https://www.facebook.com/groups/655629177972237/    
    • New reviews URL: https://smartaim.cc/index.php?/forum/33-cs2-cheats-reviews/ Update on 20 September, 2024. Our CS2 software still safe to use.  
    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/bDVQYKMUb3 https://campsite.bio/utchihaamkt  
  • Topics

×
×
  • Create New...