Skip to content

[ help ] level 99 problem

Featured Replies

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 ?

495950000000L => lvl 100?

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

_recoBonus got only 90 entries, you need +10.

 

That array is linked to experience one, they must have same numbers of rows.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.