Jump to content
  • 0

RequestBypassToServer.java


Question

Posted

So 2 problems solved. now

 

The big Question

 

How i will make bypass read xml Files

i have .aioitem command

this .aioitem is like aio npc

when i press on shop everything goes good until i press on s80 weapons for example that sends me on XML file. When i press there nothing happens.

 

So how i will make that posible !!! ?

Recommended Posts

  • 0
Posted

I completely don't know if can you send a .xml with the method used to send .html, could be that?

 

Option 1.Change the .xml for a .html and test

Option 2.Give us more info... "context" of the code...

Option 3.Add "print" debug messages to know where the code is stucking

 

 

  • 0
Posted

I completely don't know if can you send a .xml with the method used to send .html, could be that?

lol Yea you are right.

But how i can send xml files?

  • 0
Posted

I completely don't know if can you send a .xml with the method used to send .html, could be that?

ofc no

 

there should be already a ByPass about that

  • 0
Posted

I completely don't know if can you send a .xml with the method used to send .html, could be that?

 

Option 1.Change the .xml for a .html and test

Option 2.Give us more info... "context" of the code...

Option 3.Add "print" debug messages to know where the code is stucking

i tryed Option 1 = dont work

Option 2 = i am not sure what you mean. So i mad one . aio command and i did it like aio npc and i press .aio and i have the menu gk,gmshop,etc,etc, i pres gm-shop, after weapons, after if i press s80 weapon dont do anything (  its the xml files )

option 3 i dont know how ( its my first work on l2java code )

  • 0
Posted

ofc no

 

there should be already a ByPass about that

can you mabe explane me how?

make a html.in that html make a button with dat multisell..:D

i already have that if you meen this

 

955.html

i have inside

<td align=center><button value="Cloacs" action="bypass -h aio_Cloacs" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

  • 0
Posted

make the button like this

 

<td align=center><button value="Cloacs" action="bypass -h npc_%objectId%_multisell 90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

test and reply
  • 0
Posted

make the button like thistest and reply

<td align=center><button value="Cloacs" action="bypass -h npc_%objectId%_multisell 90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

 

Dont work :(

 

 

 

i must delete this ? or change it?

 

				    else if (_command.startsWith("aio_Cloacs"))
			     {
			    	 if (Config.ENABLE_Aio_Cloacs)
			    	 {
			    		 String htmContent = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/multisell/90041.htm");
					     if (htmContent != null)
					      {
					     NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
					     infoHtml.setHtml(htmContent);
					     activeChar.sendPacket(infoHtml);

 

Edit: i changed that bypass -h npc_%objectId%_multisell 90041 and steal dont work

Edit: Changed the

 wrong c/p
But steal dont work :/ any new Idea?

  • 0
Posted

<td align=center><button value="Cloacs" action="bypass -h npc_%objectId%_multisell 90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

 

Dont work :(

 

 

 

i must delete this ? or change it?

 

				    else if (_command.startsWith("aio_Cloacs"))
			     {
			    	 if (Config.ENABLE_Aio_Cloacs)
			    	 {
			    		 String htmContent = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/multisell/90041.htm");
					     if (htmContent != null)
					      {
					     NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
					     infoHtml.setHtml(htmContent);
					     activeChar.sendPacket(infoHtml);

 

Edit: i changed that bypass -h npc_%objectId%_multisell 90041 and steal dont work

Edit: Changed the

 wrong c/p
But steal dont work :/ any new Idea?

first of all , there is no reason to make a new ByPass for every button that goes you to a multisell ,

 

check this :

 


+		else if (command.startsWith("shop"))
+		{
+			int val = Integer.valueOf(subCommand[1]);
+			showBuyWindow(player, val);
+		}

+	private static void showBuyWindow(L2PcInstance player, int val)
+	{
+		player.tempInventoryDisable();
+		L2TradeList list = TradeController.getInstance().getBuyList(val);
+
+		if (list != null)
+		{
+			player.sendPacket(new BuyList(list, player.getAdena(), 0));
+		}
+
+		player.sendPacket(ActionFailed.STATIC_PACKET);
+	}

 

Vazodas auto to code 8a mporeis na xrisimopieis to

 

 

<td align=center><button value="Cloacs" action="bypass -h shop_90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

  • 0
Posted

first of all , there is no reason to make a new ByPass for every button that goes you to a multisell ,

 

check this :

 


+		else if (command.startsWith("shop"))
+		{
+			int val = Integer.valueOf(subCommand[1]);
+			showBuyWindow(player, val);
+		}

+	private static void showBuyWindow(L2PcInstance player, int val)
+	{
+		player.tempInventoryDisable();
+		L2TradeList list = TradeController.getInstance().getBuyList(val);
+
+		if (list != null)
+		{
+			player.sendPacket(new BuyList(list, player.getAdena(), 0));
+		}
+
+		player.sendPacket(ActionFailed.STATIC_PACKET);
+	}

 

Vazodas auto to code 8a mporeis na xrisimopieis to

 

 

<td align=center><button value="Cloacs" action="bypass -h shop 90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

opote na ta kanw ola delete? kai na valw mono afto?

  • 0
Posted

opote na ta kanw ola delete? kai na valw mono afto?

just delete the "aio_Cloacs" bypass and add what i gave you !

 

also Dont forget to add the Void at the end of RequestByPassToServer.java file !

 

Then use as action for your button smth like this

 

<td align=center><button value="Cloacs" action="bypass -h shop_90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

  • 0
Posted

just delete the "aio_Cloacs" bypass and add what i gave you !

 

also Dont forget to add the Void at the end of RequestByPassToServer.java file !

 

Then use as action for your button smth like this

 

<td align=center><button value="Cloacs" action="bypass -h shop 90041" width=85 height=20 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

i have 2 small errors that i cant solve

 

else if (_command.startsWith("shop"))

    {

    int val = Integer.valueOf(subCommand[1]);

    showBuyWindow(activeChar, val);

    }

    private static void showBuyWindow(L2PcInstance player, int val)

    {

    player.tempInventoryDisable();

    L2TradeList list = TradeController.getInstance().getBuyList(val);

   

    if (list != null)

    {

    player.sendPacket(new BuyList(list, player.getAdena(), 0));

    }

   

    player.sendPacket(ActionFailed.STATIC_PACKET);

    }

 

also "also Dont forget to add the Void at the end of RequestByPassToServer.java file !" = ? its my 1st code i an nothing more than Newbie

  • 0
Posted

i have 2 small errors that i cant solve

 

also "also Dont forget to add the Void at the end of RequestByPassToServer.java file !" = ? its my 1st code i an nothing more than Newbie

clientpackets.requestbypasstoserver.java
  • 0
Posted

Exception in thread "SelectorThread-216" java.lang.NullPointerException
        at com.l2jserver.gameserver.network.clientpackets.RequestBypassToServer.
<init>(RequestBypassToServer.java:65)
        at com.l2jserver.gameserver.network.L2GamePacketHandler.handlePacket(L2G
amePacketHandler.java:205)
        at com.l2jserver.gameserver.network.L2GamePacketHandler.handlePacket(L2G
amePacketHandler.java:43)
        at org.mmocore.network.SelectorThread.parseClientPacket(SelectorThread.j
ava:419)
        at org.mmocore.network.SelectorThread.tryReadPacket(SelectorThread.java:
360)
        at org.mmocore.network.SelectorThread.readPacket(SelectorThread.java:294
)
        at org.mmocore.network.SelectorThread.run(SelectorThread.java:176)

 

gameserver errror

 

Player stucked.

Guest
This topic is now closed to further replies.


  • Posts

    • 📜 • Mass PVP – Craft – Progressive Server (ITEMS, ARMOR, WEAPONS, ETC) 🕹️ • Chronicles: Lineage 2 - Interlude (C6) 🛠️ • Retail status 🕒 • Server Time: GMT -3 🏙️ • Main Town: Giran ✨ • Teleportation for all Towns, Gk Global 🛡️ • NPC BUFFER - GMSHOP B-GRADE - DONATION SHOP - AUCTION MANAGER 🐉 • Epic Bosses: Chaotic Zones 🔁 • Protection respawn: 15 seconds ⏰ • Restart Server: 05:00 AM Today 💸 • RTM allowed between players (ask Staff if in doubt) 📊 SERVER RATES: • EXP: x8 • SP: x10 • Adena: x3 • Seal Stone: x3 • Drop: x3 • Spoil: x5 • Raid EXP/SP/Drop: x3 • Premium Rates: x2 🌐 Website: https://www.l2roosters.com 💬 Discord: https://discord.gg/cUyYXrfy 🔥 Join us now and forge your legacy at Roosters Gaming!
    • Hello, lovely people, how are you? I just finished compiling the L2jFrozen project Rev: 1132 (very old). I don't mind it being too old, since the project is for me and my children. (LAN/Offline) it's not meant to be put online. I want to learn and give my children more comfort when playing. And for my part, I also experiment with the game. My problem is that I don't know much about the subject. I was able to make some basic configurations to my liking and that of my children, but it never compiles or anything like that... I would really need help from you, the community... I simply want to remove all subclass restrictions, remove the restriction on "Overlord, Warsmith, and Dark Elf subclasses with White Elves and vice versa." Thank you very much in advance! Greetings, community.
    • Warriors, prepare for a new era! We are pleased to announce that on July 12, with the morning restart, Airin will be updated to Chronicle 4: Scions of Destiny. - Open Beta Testing (OBT) will begin on July 9. Everyone will be able to test the update in advance, including class mechanics, quests, and new content. - The Clan Hall Auction will take place on July 13. We’ve also prepared a traditional bonus start - details will be shared in the coming days. The full list of changes is available in the official patch notes. Thank you for your support and participation in the project. See you in Chronicle 4! The game client download will be available soon.
    • We are taking new orders. Kindly DM us on Telegram!
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock