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

    • WTB GRACIA FINAL INTERFACE
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • Dear partners! At the moment we are in great need of the following positions: — Snapchat old and new accounts | With snapscores | Geo: Europe/USA | Full access via email/phone number — Reddit old (brute or hacked origin, self-registered) accounts with post and comment karma from 100 to 100,000+ | Full email access included — LinkedIn old accounts with real connections | Geo: Europe/USA | Full email access + active 2FA password — Instagram old accounts (2010–2023) | Full email access (possibly with active 2FA password) — Facebook old accounts (2010–2023) | Full email access (possibly with active 2FA password) | With friends or without friends | Geo: Europe/USA/Asia — Threads accounts | Full email access (possibly with active 2FA password) — TikTok/Facebook/Google ADS Agency advertising accounts — Email accounts: mail.ru, yahoo.com, gazeta.pl, gmx.ch / gmx.de / gmx.net (BUT NOT gmx.com) — Google ADS Manual Farm accounts (verified via email and phone number) | GEO: USA/Europe, mostly USA. — WhatsApp OLD Accounts — Twitter accounts with followers and posts (old accounts) Contact us via the details below. We will be glad to cooperate! We are also ready to consider other partnership and collaboration options. Active links to our projects: Digital goods store (Website): Go to Store Telegram bot: Go to – convenient access to the store via the Telegram messenger. Virtual numbers service: Go to Telegram bot for purchasing Telegram Stars: Go to – fast and profitable purchase of Stars in Telegram. SMM Panel: Go to – promotion of your social media accounts. Contacts and support: ➡ Telegram: https://t.me/socnet_support ➡ WhatsApp: https://wa.me/79051904467 ➡ Discord: socnet_support ➡ ✉ Email: solomonbog@socnet.store
    • 冬天是享受优惠、省钱的好时机。 首次下单时使用促销码 SOCNET 即可获得 15% 折扣 ,适用于全场商品! 前往商店(网站) 前往商店(Telegram 机器人)
    • Winter is the time to save with benefits. Activate the promo code SOCNET on your first order and get a 15% discount on the entire assortment! Go to the store (website) Go to the store (Telegram bot)
  • 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