Jump to content
  • 0

[Requst qustion]How to call xml files


Question

Posted

So lets start

i am using .aio command

and when i press shop/weapon its all ok

but THE PROBLEM is after that

when press s80 for example i doesnt do anytning

 

When i call the xml File

Htmls works fine the Xml files dont work

 

So Can someone tell how to call the Xml files on java Code ?

 

I use L2JGracia Epilogue !!!!

 

 

So i want this think

 

 

35bbj2u.png

Recommended Posts

  • 0
Posted

<a action="bypass -h npc_%objectId%_multisell 90042">somethinghere</a>

bypass -h npc_ i am not using Npc

i am using the command .aio

also i must add your code on bypasstoserver?

because i have only MulltisellChoose.java

 

 

Edited: i found  Multisell.java

  • 0
Posted

<a action="bypass -h npc_%objectId%_multisell 90042">somethinghere</a>

bypass -h npc_ i am not using Npc

i am using the command .aio

also i must add your code on bypasstoserver?

because i have only MulltisellChoose.java

 

 

Edited: i found  Multisell.java

  • 0
Posted

bypass -h npc_ i am not using Npc

i am using the command .aio

also i must add your code on bypasstoserver?

because i have only MulltisellChoose.java

 

you can open a html with your code and add this <a action.... to it as Mhoska suggested, or you can send the multisell directly to the player with the code I posted before.

  • 0
Posted

bypass -h npc_ i am not using Npc

i am using the command .aio

also i must add your code on bypasstoserver?

because i have only MulltisellChoose.java

 

you can open a html with your code and add this <a action.... to it as Mhoska suggested, or you can send the multisell directly to the player with the code I posted before.

  • 0
Posted

you can open a html with your code and add this <a action.... to it as Mhoska suggested, or you can send the multisell directly to the player with the code I posted before.

 

I guess its the easiest way, and less complicaded to do what you want to do.

  • 0
Posted

you can open a html with your code and add this <a action.... to it as Mhoska suggested, or you can send the multisell directly to the player with the code I posted before.

 

I guess its the easiest way, and less complicaded to do what you want to do.

  • 0
Posted

I guess its the easiest way, and less complicaded to do what you want to do.

Yours or Rizels ? :D

Also i didint realy undestand your way

 

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

                      {

                              if (Config.ENABLE_Aio_store)

                              {

                              String htmFile = "data/html/aio/aiostore.htm";

                              String htmContent = HtmCache.getInstance().getHtm(htmFile);

                              if (htmContent != null)

                              {

                                      NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);

                                      infoHtml.setHtml(htmContent);

                                      activeChar.sendPacket(infoHtml);

                              }

                              }

                      }

because i want to call

data/multisell/90042.xml

and more like this

 

give me a sec to Upload a pic

  • 0
Posted

I guess its the easiest way, and less complicaded to do what you want to do.

Yours or Rizels ? :D

Also i didint realy undestand your way

 

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

                      {

                              if (Config.ENABLE_Aio_store)

                              {

                              String htmFile = "data/html/aio/aiostore.htm";

                              String htmContent = HtmCache.getInstance().getHtm(htmFile);

                              if (htmContent != null)

                              {

                                      NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);

                                      infoHtml.setHtml(htmContent);

                                      activeChar.sendPacket(infoHtml);

                              }

                              }

                      }

because i want to call

data/multisell/90042.xml

and more like this

 

give me a sec to Upload a pic

  • 0
Posted

Yours or Rizels ? :D

Also i didint realy undestand your way

because i want to call

data/multisell/90042.xml

and more like this

 

give me a sec to Upload a pic

 

just paste this into  data/html/aio  and call it aiostore.htm and it will work

<html><body>Trader Lector:<br>
May I offer you a word of advice? The most expensive equipment isn't necessarily the best buy for you. A child cannot handle a two-handed sword, right? You must buy equipment appropriate for your class and experience. Now, select what you need.<br>
<a action="bypass -h npc_%objectId%_Chat 1">Buy Equipment.</a><br>
<a action="bypass -h npc_%objectId%_exc_multisell 003">Exchange equipment.</a><br>
<a action="bypass -h npc_%objectId%_Wear 3000100">Try on Fighter equipment.</a><br>
<a action="bypass -h npc_%objectId%_Wear 3000101">Try on Mystic equipment.</a><br>
<a action="bypass -h npc_%objectId%_Sell">Sell</a><br>
<a action="bypass -h npc_%objectId%_TerritoryStatus">Ask about the local lord and tax rate.</a><br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>

  • 0
Posted

Yours or Rizels ? :D

Also i didint realy undestand your way

because i want to call

data/multisell/90042.xml

and more like this

 

give me a sec to Upload a pic

 

just paste this into  data/html/aio  and call it aiostore.htm and it will work

<html><body>Trader Lector:<br>
May I offer you a word of advice? The most expensive equipment isn't necessarily the best buy for you. A child cannot handle a two-handed sword, right? You must buy equipment appropriate for your class and experience. Now, select what you need.<br>
<a action="bypass -h npc_%objectId%_Chat 1">Buy Equipment.</a><br>
<a action="bypass -h npc_%objectId%_exc_multisell 003">Exchange equipment.</a><br>
<a action="bypass -h npc_%objectId%_Wear 3000100">Try on Fighter equipment.</a><br>
<a action="bypass -h npc_%objectId%_Wear 3000101">Try on Mystic equipment.</a><br>
<a action="bypass -h npc_%objectId%_Sell">Sell</a><br>
<a action="bypass -h npc_%objectId%_TerritoryStatus">Ask about the local lord and tax rate.</a><br>
<a action="bypass -h npc_%objectId%_Quest">Quest</a>
</body></html>

  • 0
Posted

you can send the multisell to the player with this method if I'm right:

 

public final void separateAndSend(int listId, L2PcInstance player, L2Npc npc, boolean inventoryOnly)

in Multisell.java. at least the Multisell bypasshandler use this method

 

so in your case you have to call this:

 

else if (_command.startsWith("aio_Agathions"))
			     {
			    	 if (Config.ENABLE_Aio_Agathions)
			    	 {
                                          MultiSell.getInstance().separateAndSend(90042, activeChar, (L2Npc) target, false);
                                          }
                                     {

 

errors

 

public final void separateAndSend(int listId, L2PcInstance player, L2Npc npc, boolean inventoryOnly);

 

and were i must add this

 

else if (_command.startsWith("aio_Agathions"))
			     {
			    	 if (Config.ENABLE_Aio_Agathions)
			    	 {
                                          MultiSell.getInstance().separateAndSend(90042, activeChar, (L2Npc) target, false);
                                          }
                                     {

Guest
This topic is now closed to further replies.



  • Posts

    • LF the following chars / items on chronos   Elf - with class Aeore's Shillen Saint - this is possible if you had done a class change with a ticket in the past. Dwarf - with class Mystic Muse - same as above   Any greater jewels / Radiant Circle Grace or Foresight +5 and above Cloak      
    • First, you need to understand what you're doing and what you want to achieve. You have to choose a server core. After that, decide what you want your server to include, code it, modify the client to fit your server, go public, and drink champagne.   If you know how to code, creating a server is relatively easy — a few months of work and you can make it happen. Modifying the client is a completely different story. There’s a lack of tutorials, tools, and source materials. I’m currently working on the client myself, and I’ve already spent over three weeks just trying to get started due to the lack of information. If you don’t have the knowledge and experience, you’ll need a team and a bag of money — but realistically, it just won’t succeed.
    • The server has been online and stable for over 2 months now, and we’re still going strong! No wipes, no shortcuts ~ just continuous work, daily fixes, events, and improvements to ensure the best possible experience.   Great News! 🔥 CHAPTER II IS COMING — GRACIA FINAL 🔥 On February 16, L2Elixir enters a new era. The server will be officially updated to Gracia Final, opening Chapter II of our journey. Expect new content, improvements, and surprises that will refresh the gameplay while keeping the classic Gracia Final spirit alive.   More challenges, more competition, and more reasons to log in.   📅 Update Date: February 16 ⚔️ Chapter II: Gracia Final This is not a reset. This is evolution.   Prepare yourselves — Chapter II begins soon.   Website: https://l2elixir.org/ Discord: https://discord.gg/5ydPHvhbxs    
    • Server owners, Top.MaxCheaters.com is now live and accepting Lineage 2 server listings. There is no voting, no rankings manipulation, and no paid advantages. Visibility is clean and equal, and early listings naturally appear at the top while the platform grows. If your server is active, it should already be listed. Submit here 👉https://Top.MaxCheaters.com This platform is part of the MaxCheaters.com network and is being built as a long-term reference point for the Lineage 2 community. — MaxCheaters.com Team
  • 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..