Jump to content
  • 0

[Help] Buy/sell Zone


Question

Posted

Hi maxcheaters,

I need your help...looking for a shop zone to buy, sell only there.

 

I mean players are only be able to sell, buy and ofc rec sell in giran harbor.

 

I hope you can help.

Thanks!

7 answers to this question

Recommended Posts

  • 0
Posted (edited)

Take a look in jail zone and use the same check (NOSTORE) for peaceful zones. I think Giran harbor it is not peaceful. But if is peaceful in your project, you can create a new zone, use the same checks, and just insert Giran Harbor as store zone. (like flag zone with locs).

 

Better option is to create a new store zone.

 

Incidentally, it is not rec sell but craft.

Edited by 'Baggos'
  • 0
Posted

Create for example zone type: OfflineShops.
Find function, which sets actor( player ) to shop, add check

if (actor.getZone() != ZoneType.OfflineShops)

{ send some kind of message;

return; }

 

Easiest solution.

 

P.s. class files in example are made up by me, so you need to know where stuff is in your pack.

  • 0
Posted

It's far easier to restain some zones to be nostore zones (around gms, stairs, etc) rather than the reverse. aCis got it implemented that way at least.

 

If your server must restrain every single zone except the ones you chose, it's basically a reverted nostore zone system (if not inside the zone you can't sell). Simply track nostore system to see which places to edit, they are similar.

  • 0
Posted (edited)

I edit now net.sf.l2j.gameserver.model.zone.type; L2TownZone

 @Override
 protected void onEnter(L2Character character)
 {
  if (character instanceof L2PcInstance)
  {
   // PVP possible during siege, now for siege participants only
   // Could also check if this town is in siege, or if any siege is going on
   if (((L2PcInstance) character).getSiegeState() != 0 && Config.ZONE_TOWN == 1)
    return;
  }
  
  if (_isPeaceZone && Config.ZONE_TOWN != 2)
   character.setInsideZone(ZoneId.PEACE, true);
  
  character.setInsideZone(ZoneId.TOWN, true);
  character.setInsideZone(ZoneId.NO_STORE, true); <--(ADDed)
 }
 
 @Override
 protected void onExit(L2Character character)
 {
  if (_isPeaceZone)
   character.setInsideZone(ZoneId.PEACE, false);
  
  character.setInsideZone(ZoneId.TOWN, false);
  character.setInsideZone(ZoneId.NO_STORE, false); <--(ADDed)
 }

All Townzones now " no store "

->Giran Harbor "store Zone"

 

thanks for tips and try to help me! :)

 

-> Topic can Lock!

Edited by Protein
  • 0
Posted

I think it is better to edit "peaceful" zones for no store and create a new zone.

 

Your giran harbor isn't peaceful and all players can kill everyone inside.

So, you need a new store zone and after make it peaceful.

When you will create the new zone check this.

Guest
This topic is now closed to further replies.


  • Posts

    • Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE   Dear Players, We are excited to announce that the x300 Summer Season Beta server will open on 19‑06‑2026 at 20:00 GMT+2. As previously mentioned, there will be no wipe and no account deletion. All accounts, characters, items, and progress from Season 1 will remain completely safe. To ensure a fair and competitive start for new players, all Season 1 accounts will be temporarily locked. The official Summer Season launch will take place on 26‑06‑2026 at 20:00 GMT+2. A few weeks after the official launch, Season 1 accounts will be unlocked so previous players can access their characters and continue their journey. This approach allows new players to enjoy a fresh start while preserving the progress and achievements of our long-term community. Thank you for your continued support, and we look forward to welcoming everyone to the new Summer Season. L2Aurum Team   Explore L2 Aurum Features Discover the Enhancements that set us apart!   Information Server Version: Interlude - PvP Server Client Interface: Unique Interface   Rates     Additional Features and changes When you create a new character, you will start in Giran Harbor at Level 1, equipped with full No-Grade items. Auto Farm is available for free for 2 hour daily without VIP. VIP players receive 4 hours of Auto Farm per day. The Auto Farm time resets with the server restart at 5:30 AM. Status Noblesse: Last hit Barakiel. Player Spawn Protection: 7 seconds. Geodata + Pathnodes: Enabled. All commands are available in the Community Board. Maximum 3 Bishops Per Party: Enabled. Boss Protect - Anti-Zerg: Enabled. Shift + click on monsters to see the droplist. Offline shop. Mana Potion Restores 1000 MP with a cooldown of 8 seconds. Inventory Slots: 250.   Weapon Information Lv1 Black Chaotic Weapons. Lv2 Aurum Weapons.   Armor Information Lv1 Blue Apella Armor. Lv2 Aurum Apella Armor. Misc additions Accessories +50 and +150 pdef|mdef. Tattoos: Resolve | Soul | Avadon. Agathions: Cosmetic only (no stats).   Buffs / Dances / Songs / Prophecies Duration: 2 hours. Total Buff Slots: 32 + 4 (Divine Inspiration). Vote Buff: You must vote on 3 of 6 vote sites to get the vote buff blessing. Castle Reward Every clan that captures a castle receives the castle owner clan blessing buff. To receive it, the clan leader must be online.   Events   Raid Bosses Epic Bosses Final Bosses     For full server information please visit website PvP: Server Features   Website: https://l2aurum.com/ Discord: https://discord.gg/ngaD9DJRjE      
    • ⭐ L2Dexter.eu – Interlude x200 The Ultimate PvP Experience 🔥 RATES XP/SP x200 Adena x60 Drop x30 – Spoil x20 Safe Enchant +3 / +4 Armor Max Enchant +16   ⚔️ GAMEPLAY Main Town: Giran NPC Buffer: 3h buffs Auto Loot • Offline Shop • Anti‑Bot Max 5 clients per HWID Unique PvP Zones with rewards Upgraded Armor System Auto Learn Skills • 30+4 Buff Slots Subclass: Free Nobless: Quest or alternative path Shift+Click drop info Global Shout: 7 sec   🏆 OLYMPIAD Cycle: 14 days Hours: 18:00–00:00 GMT+2 Classed & Non‑Classed 1 char per PC   🐉 EPIC BOSSES Baium: 120h Antharas: 192h Valakas: 264h Zaken: 48h AQ: 24h Frintezza: 48h Anakim/Lilith: 56–84h   💠 SOUL CRYSTALS 10→12: Baium/Zaken/Anakim/Lilith 100% 12→13: Valakas/Antharas/Frintezza 100%   🏰 CLAN SYSTEM Max players in epics: 72 Alliances: 3 clans Clan penalty: 1 day Alliance penalty: 2 days Sieges: Clan lvl 6 + rewards   💰 CURRENCIES Vote Coins – Voting Rune +6% P.Def/M.Def, +4% Speed Event Medals – Events, streaming, RB kills Premium Account – Donate, RBs, Top10 NPC Donate Coins – Donate, RBs, competitions
  • 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..