Jump to content
  • 0

[ help ] level 99 problem


Question

Posted

i have add to experience.java this:

      -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,
 931269476L,
 1151264834L,
 1511257834L,
 2099246434L,
 4199894964L, //level 80
 6299894999L,
 8399894999L,
 10499894999L,
 12599894999L,
 14699894999L, //level 85
 25314000000L, 
 32212040000L, 
 40489040000L, 
 50421040000L, 
 63424000000L, //level 90
 79026500000L, 
 97751000000L,
 121156000000L, 
 149242000000L, 
 182946000000L,
 225006000000L, 
 275479000000L, 
 336050000000L, 
 408732000000L, //level 99
 495950000000L
};

when i enter in l2 world i get disconnected and in gameserver log i get this:

Client: [Character: testing[268482376] - Account: test - IP: 127.0.0.1] - Fai
led running: [C] 03 EnterWorld - L2J Server Version: 4495M - DP Revision: 7777M
; 9
java.lang.ArrayIndexOutOfBoundsException: 9
        at com.l2jserver.gameserver.model.entity.RecoBonus.getRecoBonus(RecoBonu
s.java:46)
        at com.l2jserver.gameserver.network.serverpackets.ExVoteSystemInfo.<init
>(ExVoteSystemInfo.java:37)
        at com.l2jserver.gameserver.network.clientpackets.EnterWorld.runImpl(Ent
erWorld.java:438)
        at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run
(L2GameClientPacket.java:62)
        at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1
003)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

 

where is the problem ?

3 answers to this question

Recommended Posts

  • 0
Posted

at com.l2jserver.gameserver.model.entity.RecoBonus.getRecoBonus(RecoBonu

s.java:46)

 

private static final int[][] _recoBonus = {
	{ 25, 50, 50, 50, 50, 50, 50, 50, 50, 50 },
	{ 16, 33, 50, 50, 50, 50, 50, 50, 50, 50 },
	{ 12, 25, 37, 50, 50, 50, 50, 50, 50, 50 },
	{ 10, 20, 30, 40, 50, 50, 50, 50, 50, 50 },
	{  8, 16, 25, 33, 41, 50, 50, 50, 50, 50 },
	{  7, 14, 21, 28, 35, 42, 50, 50, 50, 50 },
	{  6, 12, 18, 25, 31, 37, 43, 50, 50, 50 },
	{  5, 11, 16, 22, 27, 33, 38, 44, 50, 50 },
	{  5, 10, 15, 20, 25, 30, 35, 40, 45, 50 }
};

public static int getRecoBonus(L2PcInstance activeChar)
{
	if (activeChar != null && activeChar.isOnline())
	{
		if (activeChar.getRecomHave() == 0)
			return 0;

		int _lvl = activeChar.getLevel() / 10;
		int _exp = (Math.min(100, activeChar.getRecomHave()) - 1) / 10;

		return _recoBonus[_lvl][_exp];
	}
	return 0;
}

 

u need to add 2 (or 1?)  new rows in the _recoBonus

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Legends never truly die. They just wait for the right time to return. For over a decade, Vindication (aka Noobwars) held the crown as the longest-running and most legendary Greek private server. We built a home, created unbreakable bonds, and lived through thousands of hours of epic PvP, endless castle sieges, and unforgettable memories. Lately, others have tried to use our name to mimic what we built. But you can't copy soul, and you can't fake history. As the original Administrator, I am proud to tell you that the waiting is finally over. The true architect is back to bring you the ultimate Interlude experience. We are returning to revive that pure, old-school Lineage 2 nostalgia—the way it was always meant to be played. Just the authentic Vindication vibe we all fell in love with. Gather your old comrades, prepare your clans, and get ready to step back into the world of Interlude where it all started.   The original era begins again. Welcome home. GM*absolut*   Server Rates VINDICATION CLASSIC INTERLUDE x4  EXP/SP: x4  Adena: x2  Drop: x3  Spoil: x3  Seal Stones: x2  Raid Boss EXP/SP: x2  Raid Boss Drop: x1  Epic Boss Drop: x1  Manor: x1  Safe Enchant: +3  Max Enchant: +20  Normal Scroll Chance: Retail  Blessed Scroll Chance: Retail   🚀 Nostalgia Meets Next-Gen Technology We are not just bringing back the server you loved; we are upgrading it for the modern era. For the first time ever, we have integrated DLSS 5 into our Interlude client. Experience the classic gameplay you miss with ground-breaking performance     More info @ sites   Website:    http://www.vindication.gr Discord:       https://discord.gg/BVtgYvjyk6 Facebook:  https://www.facebook.com/groups/lineage2gr
    • maybe you can try L2jBayev Chronicle 4 project.
    • I think that bastard has been doing this for a long time, taking advantage of his reputation. 
  • 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..