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;
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...