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 ?

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Here is the translation, formatted to look professional, clean, and highly scannable for your forum post: Hello L2JBrasil community! I present to you the newest development from MiaCodeWeb. We have created a robust and advanced adaptation of the Phantom system for aCis / L2JAcis 409, focused on Interlude C6 servers. Our main goal was to transform traditional "ornamental bots" into highly realistic, autonomous players. They are capable of creating themselves, restoring themselves, farming, auto-equipping, using skills, responding in chat using Artificial Intelligence, and being managed directly via an in-game panel. GitHub: https://github.com/miacodeweb/L2-Phantom-AI Video Demonstration: [Insert link here]   ## Main Features and Implementation We implemented the core of the Phantom system directly into the aCis gameserver. The architecture was divided into independent modules for AI, combat, chat, equipment, inventory, progression, logs, and administration. In-Game Admin Panel: Fully functional //phantom command. It allows you to create new phantoms, restore saved ones, reload configs, start/stop the AI, view online phantoms, kill bugged phantoms, delete them individually, and navigate through pages. Data Persistence: Created phantoms can be registered in phantoms.properties, allowing them to be restored later while maintaining all their progress directly from the database. Centralized Configuration: Everything is controlled by the phantoms.properties file, organized by sections: AI, Loot, Skills, Equipment, Zones, PVP/PK, Gemini (Chat), Logs, Respawn, and Anti-Stuck system. ## Phantom Skills and Behavior Smart Combat: They patrol, search for mobs, and claim targets to prevent multiple phantoms from attacking the same monster. Mages rest when they run out of MP and avoid hitting with physical weapons unnecessarily. Automatic Progression: Auto-learning of skills, automatic class changes following the logical tree of the chosen profession, receiving buffs, and inventory clearing when reaching a certain weight/space percentage. Dynamic Equipment System: They auto-equip based on class and level, using varying item combinations so they don't all look the same. Optimized Loot: Each phantom focuses on picking up drops/herbs from its own mob, avoiding that ugly scene of 10 phantoms chasing the same adena. PVP/PK Behavior (Configurable): Immediate response to attacks, detection of PK players in the visible area, and an optional "PK Rage Mode". ## AI and Movement Navigation and Anti-Stuck: Patrol system, free wandering, obstacle and stuck detection, with Geodata validation (when enabled on the server). Respawn: Automatic return to town after death, alongside safety rules to prevent them from getting permanently stuck in textures. Leveling Zones: Configurable leveling zones (automatic teleports to farm zones are disabled by default, as in Interlude/aCis they rely heavily on geodata accuracy and the real coordinates of your server). ## AI Chat Integration (Gemini 2.5 Flash) We integrated a Whisper system via the Gemini 2.5 Flash API, making the phantoms respond like real Lineage 2 players. Support for both free and paid API tiers. Configurable parameters: GeminiApiTier, Keys, Cooldowns, and DailyLimits. The system detects connection failures, API limits, and empty responses, and logs everything. The prompt has been adjusted so that the phantom doesn't reply with empty or robotic phrases when asked where to level up or what it's doing. ## Dedicated Log System We created an exclusive log file located at gameserver/log/phantoms.log. It records: loading of phantoms, auto-skills, buffs, Gemini API errors/successes, anti-stuck actions, kills/deletes by admin, and configuration issues. ## Simplified Distribution and Installation Thinking about ease of use for administrators, the mod is delivered in a ready-to-use package: phantom-acis-installer-client.zip. Includes an automatic PowerShell installer that injects the code into your Eclipse project. Contains README.md, INSTALL_MAP.md, and the payload/ folder with ready-made routes for aCis. Clean configuration files (without my API keys). Just run the installer over your copy of aCis, refresh Eclipse, compile, and test. ## Custom Jobs The project already has a solid and functional base for aCis 409. The ideal next steps would be to refine the farm routes by level and social behavior with long-term testing on live servers. I accept custom jobs! If you need this system adapted for another revision, exclusive modules, or any other development for your server, get in touch. Through MiaCodeWeb, I also offer complete services involving geodata optimization, advanced VPS administration (Linux), and Java backend management for L2J. Send a PM or visit the GitHub!   https://www.l2jbrasil.com/applications/core/interface/file/attachment.php?id=17801&key=135fc8d831b84c05089851b18bfca58a  
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
    • PERFECT PERSPECTIVE IS ALMOST ALWAYS A DEATH SENTENCE ▪ Think if the document lies perfectly flat and everything is “level” it’ll be fine? Most of the time, that’s exactly what gives away the fake. Real smartphones, especially wide-angle cameras, always add natural distortions: - Slight warping at the edges of the document - Perspective distortions in the corners - Light curvature of the plane due to distance and shooting angle When everything is perfectly flat and geometrically flawless — algorithms and verifiers immediately recognize a “staged scene.” ▪ A genuine shot is never mathematically perfect. It’s these small lens distortions that make the frame look alive and believable.  Want perspective that won’t raise questions even from the most demanding verifiers? Write to us — we’ll create geometry that looks like it was shot with a real phone in real conditions. › TG: @mustang_service_ms ( https:// t.me/ mustang_service_ms ) › Channel: Mustang Service ( https:// t.me/ +JPpJCETg-xM1NjNl ) #documents #drawing #perspective #editing #geometry
    • Gemini Pro 18 Month Personal Gmail Upgrade Available We are now accepting new orders for Gemini Pro + Google One AI Pro 18 Month Plan.   Plan Details: ✅ 18 Months Validity ✅ Upgrade on Your Personal Gmail ✅ 5TB Google One Storage ✅ Gemini Pro / Google AI Pro Access ✅ Veo 3, NotebookLM, Google AI Features ✅ Family Sharing Support where available ✅ Fast Delivery: 10 minutes to 24 hours ✅ 24/7 KloudItem Support   Price: $15 One Time Payment   Important: Stock is limited, so please check availability before ordering.   Order & Support: Order from KloudItem or contact us through our official support channel. ------------------------------------------- CONTACT Order Here: BUY GEMINI PRO Email: support@klouditem.com Telegram Channel: @klouditemcom Telegram Support: klouditem All Contact: https://linktr.ee/klouditem Website: https://klouditem.com Hours: 24/7 -- Always online
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..