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

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

  • 0
Posted

not understand a word :(

 

you doing a voicedcommand that call a html and then the html call the xmls?

 

Look

 

else if (_command.startsWith("aio_Agathions"))
			     {
			    	 if (Config.ENABLE_Aio_Agathions)
			    	 {
			    		 String htmContent = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/multisell/90042.xml");
					     if (htmContent != null)
					      {
					     NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
					     infoHtml.setHtml(htmContent);
					     activeChar.sendPacket(infoHtml);

 

i dont know how to call xml files

its a gmshop

all buttons work normaly but when i must call one xml file ( like Agathions for example )

nothing hapens

 

if you dont understand this i can show you via t.v. so you can undestand what i meen

 

  • 0
Posted

not understand a word :(

 

you doing a voicedcommand that call a html and then the html call the xmls?

 

Look

 

else if (_command.startsWith("aio_Agathions"))
			     {
			    	 if (Config.ENABLE_Aio_Agathions)
			    	 {
			    		 String htmContent = HtmCache.getInstance().getHtm(activeChar.getHtmlPrefix(), "data/multisell/90042.xml");
					     if (htmContent != null)
					      {
					     NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
					     infoHtml.setHtml(htmContent);
					     activeChar.sendPacket(infoHtml);

 

i dont know how to call xml files

its a gmshop

all buttons work normaly but when i must call one xml file ( like Agathions for example )

nothing hapens

 

if you dont understand this i can show you via t.v. so you can undestand what i meen

 

  • 0
Posted

just do it like this and call a html and you just call the xml from inside using any gmshop that its already done.

 

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

  • 0
Posted

just do it like this and call a html and you just call the xml from inside using any gmshop that its already done.

 

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

  • 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);
                                          }
                                     {

  • 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);
                                          }
                                     {

  • 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

 

yeap but, doing a command for each xml isnt easier just to call a html and then just bypass the xml from there?

  • 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

 

yeap but, doing a command for each xml isnt easier just to call a html and then just bypass the xml from there?

  • 0
Posted

just do it like this and call a html and you just call the xml from inside using any gmshop that its already done.

 

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

You didnt undestarnd what i mean probably

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

Can you mabe explane me what this will do?

because i am Newbie on java

  • 0
Posted

just do it like this and call a html and you just call the xml from inside using any gmshop that its already done.

 

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

You didnt undestarnd what i mean probably

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

Can you mabe explane me what this will do?

because i am Newbie on java

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