Jump to content
  • 0

Remote GK/Shop command


Question

Posted

sup i am Currently stucking in a Problemm

 

i am using Coyote's aio voiced command

 

Code : http://pastebin.com/0X0Hgn4D

 

i replaced Aio teleport and aiominishop whit those strings :

				if (Config.ENABLE_VCAIO_TPNRT)
			{
					String htmFile = "data/html/mods/VoicedAIOGK.htm";
  	        		String htmContent = HtmCache.getInstance().getHtm(htmFile);
    	        	if (htmContent != null)
       	        {
    	        		NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
   	        	    infoHtml.setHtml(htmContent);
	        			activeChar.sendPacket(infoHtml);
			}
	}
		else if (_command.startsWith("aio_minishop"))
		{
			if (Config.ENABLE_VCAIO_SHOP)
			{
                                      if (activeChar.getInventory().getInventoryItemCount(57, 0) >= Config.VCAIO_MINISHOP_ADENAS)
			        {
        					String htmFile = "data/html/mods/VoicedAIOMiniShop.htm";
          	        		String htmContent = HtmCache.getInstance().getHtm(htmFile);
            	        	if (htmContent != null)
               	        {
            	        		NpcHtmlMessage infoHtml = new NpcHtmlMessage(1);
           	        	    infoHtml.setHtml(htmContent);
        	        			activeChar.sendPacket(infoHtml);
                   	    }

 

works fine,but...

 

when i click on minishop buttom to link to me a multisell nothing happens

 

here a html example :

<html>
<head>
<body>
<tr><td><font color="FF0066">AIO Mini Shop</font></tr></td>
<br>
<tr><td><font color="FFFFCC">Choose what you want to buy :</font></tr></td>
<br>
<a action="bypass -h npc_%objectId%_multisell 70013">
<font color="FF9900">
Potions
</font></a>
<br>
<a action="bypass -h npc_%objectId%_multisell 70011">
<font color="FF9900">
Scrolls
</font></a>
<br>
<a action="bypass -h npc_%objectId%_multisell 70010">
<font color="FF9900">
Shots/Arrows
</font></a>
<br>
<a action="bypass -h npc_%objectId%_multisell 70014">
<font color="FF9900">
Dyes
</font></a>
<br>
<a action="bypass -h npc_%objectId%_multisell 70016">
<font color="FF9900">
Quest Items
</font></a>
<br>
<a action="bypass -h npc_%objectId%_multisell 70012">
<font color="FF9900">
Other items
</font></a>
<br>
<a action="bypass -h npc_%objectId%_TerritoryStatus">
<font color="FF9900">
See the Lord and Tax Rate Information
</font></a>
<br>
<a action="bypass -h npc_%objectId%_Quest">
<font color="FF6600">
Quest
</font></a>
<br>
<tr><td><font color="0000FF">Credits Coyote</font></tr></td>
</body>
</html>

 

same goes for gk can see main page but when i click on pages like aiogk-1 nothing happens no error in gs nothing

 

even goto function dont work ..

<html>
<body>
<center>
<img src="L2UI_CH3.herotower_deco" width=256 height=32>
Gatekeeper: <br></td></tr>
Welcome You look lost<br>
Are you looking for any place in particular?<br> 
If so I can take you there for only, 10.000 Adena. <br>
<table width=260>
<tr><td width=120><a action="bypass -h npc_%objectId%_Chat 1"><font color="ffff00">C4 Area</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 2"><font color="ffff00">Towns</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 3"><font color="ffff00">Aden Area</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 4"><font color="ffff00">Dark Elven Area</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 5"><font color="ffff00">Elmore Area Dwarf</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 6"><font color="ffff00">Elven Area</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 7"><font color="ffff00">Elmore Area Orc</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 8"><font color="ffff00">Gludin Area</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 9"><font color="ffff00">Giran Area</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 10"><font color="ffff00">Indaril Area</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 11"><font color="ffff00">Gludio Area</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 12"><font color="ffff00">Oren Area</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 13"><font color="ffff00">Talking Island</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 14"><font color="ffff00">Wastelands</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 15"><font color="ffff00">DVC Areas</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 16"><font color="ffff00">Cruma Tower</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 20"><font color="ffff00">Rune area</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 17"><font color="ffff00">C5 Locations</font></a></td></tr>
<tr><td><a action="bypass -h npc_%objectId%_Chat 21"><font color="ffff00">Goddard area</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 18"><font color="ffff00">Necropolis</font></a></td></tr>

<tr><td><a action="bypass -h npc_%objectId%_goto 90000"><font color="ffff00">Dino Island</font></a></td><td><a action="bypass -h npc_%objectId%_Chat 19"><font color="ffff00">Catacombs</font></a></td></tr>
</table>
</center>
</body>
</html>

 

i did put htmls intro mod they where original NPC's but removed them, only multisell +teleport sqls and htmls left

 

any suggestions? tried few things myself but no progress

 

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...