Jump to content
  • 0

[Requst qustion]How to call xml files


SkySkase

Question

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

Link to comment
Share on other sites

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

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

 

Link to comment
Share on other sites

  • 0

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

 

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • 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