Skip to content

[Help]Some java requests.

Featured Replies

Hi everyone. Well, I was wondering to the people that know java out there, I wanted to make an item that opens a gm shop. So far i made the item, it opens the HTML but when i click on the buy/sell, it doesnt do anything, the chat box just closes and nothing happens.

 

Thanks

LiquidIce

Well you need to fix the baypasstoserve to and the comands.

 

Something like that at requestbypasstoserver;

 

+			else if (_command.startsWith("item_"))
+			{
+				String command = _command.split(" ")[0];
+
+				IBufferCommandHandler bch = BufferCommandHandler.getInstance().getBufferCommandHandler(command);
+				
+				if (bch == null)
+				{
+					if ( activeChar.isGM() )
+						activeChar.sendMessage("The command " + command.split("_")[0] + " does not exists!");
+
+					_log.warning("No handler registered for buffer command '" + command + "'");
+					return;
+				}
+
+				bch.useBufferCommand(_command, activeChar);
+			}

  • Author

thanks cobra. but im kind of a java noob. can you explain to me in where i have to add this. u said in requestbypasstoserver but in which lines...at the end..beginning..thanks alot.

This is an example for item buffer you need to put your item name there also.. put it up of this line;

 

}
		catch (Exception e)
		{

 

 

something like that;

 

+			else if (_command.startsWith("item_"))
+			{
+				String command = _command.split(" ")[0];
+
+				IBufferCommandHandler bch = BufferCommandHandler.getInstance().getBufferCommandHandler(command);
+				
+				if (bch == null)
+				{
+					if ( activeChar.isGM() )
+						activeChar.sendMessage("The command " + command.split("_")[0] + " does not exists!");
+
+					_log.warning("No handler registered for buffer command '" + command + "'");
+					return;
+				}
+
+				bch.useBufferCommand(_command, activeChar);
+			}
		}
		catch (Exception e)
		{

  • Author

but the thing is, i kinda want it to open multisells...i click on the item, the main html pops up but when i click to buy(accessing a multisell) nothing happens.

  • Author

sucks that i cant open multisells...so every shop has to be by trade sql's?.

do you know if that voice command when u do .market it can open multisells too?¿

  • Author

thanks alot man..well lets hope this can be done..

also u know if its also possible to make the item open the gatekeeper and teleport you?

sorry for so many questions but i just have many ideas that require java and i suck at it

  • Author

sorry for a double post..i ran those .diff files as a patch and many of them have errors...i use L2J Interlude

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.