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

    • Can't find you on discord ,can you share your discord profile here?
    • Hello lovely community, When you talk, about trust first of all I want you to stay and think for a second. - If was not a trusted person why I would even share this information? (seriously not a single reason) - I did not share any information about how this happened, and which company had the vulnurability (the issue has been fixed from their side and they was very helpful and took quick action + our dev as expert took that quick action) I also want warmly thank abusix.com for providing detailed information (not going to share the whole email for obivious reasons) Mentioning  - So lets clarify now what to except from the project. We have different different protocols and 2 engines. But first we are going to start with Interlude Mastered which is going to be a modern engine but a familiar one. Secondary project will be with the latest engine UE however this one needs allot of work is not that easy it takes time(so we will have it soon as is ready) I got to agree with Seamless, Good project are developed quietly. Also we have already clarified that the servers that we are working are under development how is possible guys to give you detailed information about something that is not finished yet? The topic opened on General Discussion Instead of  Private Servers for a reason. Some of you already have serves in this topic please and none of you have approach they way i do and be open for your own servers unless you have it ready until now so please.... atleast I'm taking a step and I'm pretty much open to share information with everyone. Once everything is ready Server information and everything will be shared in the topic: Private servers. Thanks in advance.  
    • Boost your connection speed and secure your privacy today!  Official Website: https://novproxy.com?kwd=tt-max
    • Good projects are developed quietly and launched only when they are ready to maintain a consistent online presence and build a community. The formula is simple, yet people keep making the same mistakes.   Start with an alpha phase and keep access limited. Since the author claims to already have an inner circle, use that group for early testing. Then open a closed beta through invitation keys or a similar system. Later, announce an open beta.   During these early stages, do not accept donations, partnerships, or other forms of support. Focus entirely on improving the project. Once it is stable, announce it and continue maintaining it regardless of the maximum number of users on
    • in best case this project will open with 100 ppl
  • 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..