Jump to content

Question

Posted (edited)

Voice Command = .gmshop i found that when i am close to merchant my exchanges are working fine but when i am away from merchant i cannot buy anything what do you think?

 

html

<html>
<title>
VoiceCommand
</title>
<body>
<center>
<font color="B8B8B8 " align="center">___________________________________________</font>
<table width=224>
	<tr>
		<td width=32><img src=Icon.etc_alphabet_l_i00 height=32 width=32></td>
		<td width=32><img src=Icon.etc_alphabet_i_i00 height=32 width=32></td>
		<td width=32><img src=Icon.etc_alphabet_n_i00 height=32 width=32></td>
		<td width=32><img src=Icon.etc_alphabet_e_i00 height=32 width=32></td>
		<td width=32><img src=Icon.etc_alphabet_a_i00 height=32 width=32></td>
		<td width=32><img src=Icon.etc_alphabet_g_i00 height=32 width=32></td>
		<td width=32><img src=Icon.etc_alphabet_e_i00 height=32 width=32></td>
	</tr>
</table>
<font color="B8B8B8 " align="center">___________________________________________</font>
<table align=center>
	<tr>
		<td align=center><button value="Weapon" action="bypass -h custom_doShop Chat 1" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
		<td align=center><button value="Armor" action="bypass -h custom_doShop Chat 2" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
		<td align=center><button value="Jeweler" action="bypass -h custom_doShop Chat 3" width=75 height=21 back="L2UI_ch3.Btn1_normalOn" fore="L2UI_ch3.Btn1_normal"></td>
		
	</tr>
</table>
<font color="B8B8B8 " align="center">___________________________________________</font>
<table width=210>
	<tr>
		<td align=center>
			<button value="Consumables" action="bypass -h custom_doShop multisell 90023" width=134 height=21 back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3">
		</td>
	</tr>
	<tr>
		<td align=center>
			<button value="Dyes" action="bypass -h custom_doShop multisell 90051" width=134 height=21 back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3">
		</td>
	</tr>
	<tr>
		<td align=center>
			<button value="Scrolls" action="bypass -h custom_doShop multisell 90050" width=134 height=21 back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3">
		</td>
	</tr>
	<tr>
		<td align=center>
			<button value="Clan Items" action="bypass -h custom_doShop multisell 90021" width=134 height=21 back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3">
		</td>
	</tr>
	<tr>
		<td align=center>
			<button value="Olympiad" action="bypass -h custom_doShop multisell 999997" width=134 height=21 back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3">
		</td>
	</tr>
	<tr>
		<td align=center>
			<button value="Acessories" action="bypass -h custom_doShop multisell 99994" width=134 height=21 back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3">
		</td>
	</tr>
</table>
<font color="B8B8B8 " align="center">___________________________________________</font>
<br>
<table width=220>
	<tr>
		<td align=center>
			<button value="Sell" action="bypass -h npc_%objectId%_Sell" width=134 height=21 back="L2UI_ch3.BigButton3_over" fore="L2UI_ch3.BigButton3">
		</td>
	</tr>
</table>
<font color="B8B8B8 " align="center">___________________________________________</font>

</center>
</body>
</html>

multisell

<?xml version='1.0' encoding='utf-8'?>
<list maintainEnchantment="false">
	<!-- Soulshot: S-grade -->
	<item id="1">
		<ingredient id="57" count="2000000"/>
		<production id="1467" count="1000"/>
	</item>
	<!-- Soulshot: A-grade -->
	<item id="2">
		<ingredient id="57" count="1600000"/>
		<production id="1466" count="1000"/>
	</item>
	<!-- Soulshot: B-grade -->
	<item id="3">
		<ingredient id="57" count="1000000"/>
		<production id="1465" count="1000"/>
	</item>
	<!-- Soulshot: C-grade -->
	<item id="4">
		<ingredient id="57" count="400000"/>
		<production id="1464" count="1000"/>
	</item>
	<!-- Soulshot: D-grade -->
	<item id="5">
		<ingredient id="57" count="200000"/>
		<production id="1463" count="1000"/>
	</item>
	<!-- Soulshot: No Grade -->
	<item id="6">
		<ingredient id="57" count="100000"/>
		<production id="1835" count="1000"/>
	</item>
	<!-- Blessed Spiritshot: S Grade -->
	<item id="7">
		<ingredient id="57" count="2000000"/>
		<production id="3952" count="1000"/>
	</item>
	<!-- Blessed Spiritshot: A-Grade -->
	<item id="8">
		<ingredient id="57" count="1600000"/>
		<production id="3951" count="1000"/>
	</item>
	<!-- Blessed Spiritshot: B-Grade -->
	<item id="9">
		<ingredient id="57" count="1400000"/>
		<production id="3950" count="1000"/>
	</item>
	<!-- Blessed Spiritshot: C-Grade -->
	<item id="10">
		<ingredient id="57" count="1200000"/>
		<production id="3949" count="1000"/>
	</item>
	<!-- Blessed Spiritshot: D-Grade -->
	<item id="11">
		<ingredient id="57" count="2000000"/>
		<production id="3948" count="1000"/>
	</item>
	<!-- Blessed Spiritshot: No Grade -->
	<item id="12">
		<ingredient id="57" count="160000"/>
		<production id="3947" count="1000"/>
	</item>
	<!-- Spiritshot: S-grade -->
	<item id="13">
		<ingredient id="57" count="1000000"/>
		<production id="2514" count="1000"/>
	</item>
	<!-- Spiritshot: A-grade -->
	<item id="14">
		<ingredient id="57" count="800000"/>
		<production id="2513" count="1000"/>
	</item>
	<!-- Spiritshot: B-grade -->
	<item id="15">
		<ingredient id="57" count="700000"/>
		<production id="2512" count="1000"/>
	</item>
	<!-- Spiritshot: C-grade -->
	<item id="16">
		<ingredient id="57" count="600000"/>
		<production id="2511" count="1000"/>
	</item>
	<!-- Spiritshot: D-grade -->
	<item id="17">
		<ingredient id="57" count="100000"/>
		<production id="2510" count="1000"/>
	</item>
	<!-- Spiritshot: No Grade -->
	<item id="18">
		<ingredient id="57" count="80000"/>
		<production id="2509" count="1000"/>
	</item>
	<!-- Beast Soulshot -->
	<item id="19">
		<ingredient id="57" count="600000"/>
		<production id="6645" count="1000"/>
	</item>
	<!-- Blessed Beast Spiritshot -->
	<item id="20">
		<ingredient id="57" count="1000000"/>
		<production id="6647" count="1000"/>
	</item>
	<!-- Greater Swift Attack Potion -->
	<item id="21">
		<ingredient id="57" count="20000"/>
		<production id="1375" count="1"/>
	</item>
	<!-- Greater Haste Potion -->
	<item id="22">
		<ingredient id="57" count="20000"/>
		<production id="1374" count="1"/>
	</item>
	<!-- Greater Magic Haste Potion -->
	<item id="23">
		<ingredient id="57" count="20000"/>
		<production id="6036" count="1"/>
	</item>
	<!-- Greater Healing Potion -->
	<item id="24">
		<ingredient id="57" count="200000"/>
		<production id="1539" count="100"/>
	</item>
	<!-- Mana potion -->
	<item id="25">
		<ingredient id="57" count="200000"/>
		<production id="728" count="100"/>
	</item>
	<!-- Spirit Ore -->
	<item id="45">
		<ingredient id="57" count="2000000"/>
		<production id="3031" count="1000"/>
	</item>
	<!-- Soul Ore -->
	<item id="46">
		<ingredient id="57" count="2000000"/>
		<production id="1785" count="1000"/>
	</item>
	<!-- Energy Stone -->
	<item id="47">
		<ingredient id="57" count="1000000"/>
		<production id="5589" count="1000"/>
	</item>
	<!-- Battle Symbol -->
	<item id="48">
		<ingredient id="57" count="2000000"/>
		<production id="8875" count="100"/>
	</item>
	<!-- Magic Symbol -->
	<item id="49">
		<ingredient id="57" count="2000000"/>
		<production id="8876" count="100"/>
	</item>
	<!-- Phoenix Blood -->
	<item id="50">
		<ingredient id="57" count="2000000"/>
		<production id="8873" count="100"/>
	</item>
	<!-- Einhasad's Holy Water -->
	<item id="51">
		<ingredient id="57" count="2000000"/>
		<production id="8874" count="100"/>
	</item>
	<!-- Cursed Bone -->
	<item id="52">
		<ingredient id="57" count="2000000"/>
		<production id="2508" count="1000"/>
	</item>
	<!-- Summon crystal -->
	<item id="53">
		<ingredient id="57" count="1000000"/>
		<production id="8615" count="10"/>
	</item>
	<!-- Bone Arrow -->
	<item id="54">
		<ingredient id="57" count="200000"/>
		<production id="1341" count="1000"/>
	</item>
	<!-- Iron Arrow -->
	<item id="55">
		<ingredient id="57" count="2000000"/>
		<production id="1342" count="1000"/>
	</item>
	<!-- Silver Arrow -->
	<item id="56">
		<ingredient id="57" count="2000000"/>
		<production id="1343" count="1000"/>
	</item>
	<!-- Mithril Arrow -->
	<item id="57">
		<ingredient id="57" count="2000000"/>
		<production id="1344" count="1000"/>
	</item>
	<!-- Shining Arrow -->
	<item id="58">
		<ingredient id="57" count="2000000"/>
		<production id="1345" count="1000"/>
	</item>
	<!-- Scroll: Recovery (Grade S) -->
	<item id="59">
		<ingredient id="57" count="200000"/>
		<production id="8599" count="1"/>
	</item>
	<!-- Crystal: S Grade -->
	<item id="61">
		<ingredient id="57" count="10000000"/>
		<production id="1462" count="100"/>
	</item>
	<!-- Crystal: A-Grade -->
	<item id="62">
		<ingredient id="57" count="5000000"/>
		<production id="1461" count="100"/>
	</item>
	<!-- Crystal: B-Grade -->
	<item id="63">
		<ingredient id="57" count="2000000"/>
		<production id="1460" count="100"/>
	</item>
	<!-- Crystal: C-Grade -->
	<item id="64">
		<ingredient id="57" count="1000000"/>
		<production id="1459" count="100"/>
	</item>
	<!-- Crystal: D-Grade -->
	<item id="65">
		<ingredient id="57" count="500000"/>
		<production id="1458" count="100"/>
	</item>
</list>

Edited by ThugLord92

5 answers to this question

Recommended Posts

  • 0
Posted

 

when i am close to merchant my exchanges are working fine but when i am away from merchant i cannot buy anything what do you think?

 

What do you mean with "close to merchant"?

Gm Shop/Shop and etc?

 

Take a look on this line of your code..

 

            if (!player.isInsideRadius(gmshopnpc, L2NpcInstance.INTERACTION_DISTANCE, false, false))
                return;
  • 0
Posted

If you change that or another default method which checks the range, ppl can "cheat" with phx. No matter the distance / location you will be able to buy things.

 

You should create new method which would be used for the aio item. Search for / check Bigboss (I guess) aio item.

  • 0
Posted

If you change that or another default method which checks the range, ppl can "cheat" with phx. No matter the distance / location you will be able to buy things.

 

You should create new method which would be used for the aio item. Search for / check Bigboss (I guess) aio item.

   private boolean checkAllowed(L2PcInstance activeChar)
    {
        String msg = null;
        if(activeChar.isSitting())
            msg = "GMShop is not available when you sit";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("ALL"))
            msg = "GMShop is not available in this area";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("CURSED") && activeChar.isCursedWeaponEquiped())
            msg = "GMShop is not available with the cursed sword";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("ATTACK") && AttackStanceTaskManager.getInstance().getAttackStanceTask(activeChar))
            msg = "GMShop is not available during the battle";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("DUNGEON") && activeChar.isIn7sDungeon())
            msg = "GMShop is not available in the catacombs and necropolis";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("RB") && activeChar.isInsideZone(L2Character.ZONE_NOSUMMONFRIEND))
                msg = "GMShop is not available in this area";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("PVP") && activeChar.isInsideZone(L2Character.ZONE_PVP))
            msg = "GMShop is not available in this area";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("PEACE") && activeChar.isInsideZone(L2Character.ZONE_PEACE))
            msg = "GMShop is not available in this area";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("SIEGE") && activeChar.isInsideZone(L2Character.ZONE_SIEGE))
            msg = "GMShop is not available in this area";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("OLYMPIAD") && (activeChar.isInOlympiadMode() ||
                activeChar.isInsideZone(L2Character.ZONE_OLY) || Olympiad.getInstance().isRegistered(activeChar) ||
                Olympiad.getInstance().isRegisteredInComp(activeChar)))
            msg = "GMShop is not available at Olympiad";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("EVENT") &&
                (activeChar._inEvent))
            msg = "GMShop is not available at the opening event";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("TVT") &&
                activeChar._inEventTvT && TvT.is_started() )
            msg = "GMShop is not available in TVT";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("CTF") &&
                activeChar._inEventCTF && CTF.is_started() )
            msg = "GMShop is not available in CTF";
        else if(PowerPakConfig.GMSHOP_EXCLUDE_ON.contains("DM") &&
                activeChar._inEventDM && DM.is_started() )
            msg = "GMShop is not available in DM";
        
        if(msg!=null)
            activeChar.sendMessage(msg);

        return msg==null;
    }

i think this is a method to prevent that ?

 

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