Jump to content
  • 0

ThugLord92

Question

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
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

 

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;
Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

  • 0

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 ?

 

Link to comment
Share on other sites

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.



  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Server Rates: » Xp 500x. » Sp 500x. » Aden 500x. » Drop 1x. » PartyXp 2x. » PartySp 2x. » Starting character level -61. Enchant rates: » Safe enchant +4. » Blessed and simple scrolls max enchant (+16). » Crystal scrolls max enchant (+20). » Simple enchant scrolls chance – 65%. » Blessed enchant scrolls chance – 100%. » Crystal enchant scrolls chance – 50% Augmentations: » Mid life stone skill chance – 5%. » High life stone skill chance – 10%. » Top life stone skill chance – 20%. » Augments 1+1 Unique features: » Main town – Giran » Automatic-Manual Potions. » Working 2 castle sieges. (Giran-Aden) » SPS cancel lasts 10 seconds and than buffs come back. » Stackable scrolls, lifestones, book of giants. » Unique pvp zone » More then 11 active raid bosses. » Wedding system. » Unique farming areas. » Npc skill enchanter. » Full npc buffer with auto buff. » Max count of buffs – 55. » Max subclasses – 4. » Free and no quest class change. » Free and no quest sub class. » Raid boss drop nobless item. » No weight limit. » Unique protection anti-hwy armor for archers/daggers etc. » Ingame password change. » Top pvp/pk/online ranks NPC. » Unique monsters & NPC. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance (all class can kill all class depending on players skill and setup knowledge,gear,augmentations). » Announcements on double kills triple kills etc. » Announcements on Grand Boss death , with the name of the killer as well as clan name of the player. » Information Npc in game with all servers infromations. Custom server gear : 1). Titanium Armor Lv.1 2). Epic Armor Lv.2 3). Epic Weapons-Kamikaze-Black S grade (Same Stats) 4). Demonic-Angelic Wings-Baium Hair-Custom Accessories (SameStats) 5). Custom Fighter/Mage tattoo Lv1-Lv2-Lv3 6). Shirt (STR,CON,INT +1) 7). Custom Shields Server Commands: .tvtjoin .tvtleave – Join or leave tvt event. .ctfjoin .ctfleave – Join or leave ctf event. .dmjoin .dmleave – Join of leave dm event. .online – current online players count. .repair – repairs stuck character in world. .menu – opens online menu panel. .exit – PVP zone exit in case you are bullied. .changepassword - Opens online menu then u can change ur password in game. .farm - Enable/disable autofarm Event system: » TVT event » CTF event » DM event » Tournament Event » Party Zone » Unique event shop. Olympiad game: » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00] GMT+2. » New Heroes every Sunday.
    • Tomorrow grand opening lests go 🙂 
  • Topics

×
×
  • Create New...