Jump to content
  • 0

Scheme Buffer ERROR [HELP PLEASE]


Question

Posted

Can Someone Help me?

 

[glow=red,2,300]I used _ and gives me this error and when the field is empty it gives me same.[/glow]

 

com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer runImpl

WARNING: [Character: Staff[268483852] - Account: katalonia - IP: 188.169.148.220] sent bad RequestBypassToServer: "Aioitem_scheme_createprofile [glow=red,2,300]_[/glow]"

 

java.lang.ArrayIndexOutOfBoundsException: 1

at handlers.aioitemhandler.AIOSchemeHandler.onBypassUse(AIOSchemeHandler.java:61)

at com.l2jserver.gameserver.datatables.AIOItemTable.handleBypass(AIOItemTable.java:613)

at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.runImpl(RequestBypassToServer.java:273)

at com.l2jserver.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:62)

at com.l2jserver.gameserver.network.L2GameClient.run(L2GameClient.java:1012)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

 

This is script for Aio Scheme.java

	/*
	 * Send main's scheme page
	 */

	if(actualCmd.equalsIgnoreCase("main"))
	{
		sendSchemePageToPlayer(player);
	}
	/*
	 * Create scheme profile
	 */
	else if(actualCmd.equalsIgnoreCase("createprofile"))
	{
		if(player.getProfileNames().size() == CustomConfig.AIOITEM_SCHEME_MAX_PROFILES)
		{
			player.sendMessage("You alredy  reached the max allowed profiles per char!");
			return;
		}

		String secondCmd = subCommands[1];
		if(secondCmd == null || secondCmd.isEmpty())
		{
			_log.severe("Null Scheme profile from: "+player.getName());
			return;
		}
		if(player.getProfileNames().contains(secondCmd))
		{
			player.sendMessage("The given profile alredy exist in your list!");
			return;
		}

		if(!paymentDone(player, Action.CREATE_PROFILE))
		{
			return;
		}

		player.addNewProfile(secondCmd);
		player.needSaveSchemes();
		sendSchemePageToPlayer(player);
	}

 

4thv6.png

1 answer to this question

Recommended Posts

  • 0
Posted

after

if(player.getProfileNames().size() == CustomConfig.AIOITEM_SCHEME_MAX_PROFILES)
{
player.sendMessage("You alredy  reached the max allowed profiles per char!");
return;
}

 

introduce

if(subCommands.length < 2)
{
player.sendMessage("You introduced a wrong profile name!");
return;
}

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


×
×
  • 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..