Jump to content
  • 0

Only 1 X Item In Inventory At Time!


Question

Posted

Chronicle: Freya
l2jdp - revision="7968"
l2j - revision="4601"

The thing is i have an special item on the server, but i want when players try to buy this item, if they already have one then can't buy another till the one they already have get consumed.

7 answers to this question

Recommended Posts

  • 0
Posted

Chronicle: Freya

l2jdp - revision="7968"

l2j - revision="4601"

 

The thing is i have an special item on the server, but i want when players try to buy this item, if they already have one then can't buy another till the one they already have get consumed.

 

<item id="22101" type="EtcItem" name="Spiritshot Pack - B grade">
<set name="icon" val="br_cashtex.item.br_cash_pack_of_spiritshot_b_i00" />
<set name="default_action" val="capsule" />
<set name="immediate_effect" val="1" />
<set name="crystal_type" val="b" />
<set name="material" val="paper" />
<set name="weight" val="500" />
<set name="is_stackable" val="true" />
<set name="is_premium" val="true" />
<set name="handler" val="ItemSkills" />
<set name="item_skill" val="26069-3" />
</item>
 
change that:
 
<set name="is_stackable" val="true" />
  • 0
Posted

 

<item id="22101" type="EtcItem" name="Spiritshot Pack - B grade">
<set name="icon" val="br_cashtex.item.br_cash_pack_of_spiritshot_b_i00" />
<set name="default_action" val="capsule" />
<set name="immediate_effect" val="1" />
<set name="crystal_type" val="b" />
<set name="material" val="paper" />
<set name="weight" val="500" />
<set name="is_stackable" val="true" />
<set name="is_premium" val="true" />
<set name="handler" val="ItemSkills" />
<set name="item_skill" val="26069-3" />
</item>
 
change that:
 
<set name="is_stackable" val="true" />

 

Thx for try to help me, but that isn't good cause players can still having more than 1 item at time in the inventory, the only diference on is_stackable= false, is the item will ocupe diferent slots in the inventory.

  • 0
Posted

i cant understund.. you want for example if someone have already 1 enternal core sword cannot buy other? that you mean?

Yeah exactly but some already help me and got what i nee. Thx anyways.

Guest
This topic is now closed to further replies.


  • Posts

    • Fix Visual Boundary for AutoFarm when entering a new zone. Fix Assassin Interface Automatic SoulShot usage. Fix Assassin Interface not displaying Castle/Base. Fix Achievements displaying item rewards for CommunityBoard & NPC. Fix Prevent players from purchasing their own Auctioned items. Added ''.raid'' and ''.achievement'' commands. Added support for multiple currencies on Auction Added Search feature to Auction. Added Offline Stores Added '.exit' & '.quit' command to Dungeon System so players can now exit/quit dungeons Added VIP Account System (Alternative XP, SP & Drop Rates, Unlocks Costumes) Added Loot Box System Changed DungeonsManager now displays reward list on dungeon pages. Changed GlobalShop to include pages for all currencies. HTML/XML edits
    • When I teleport to town, my current location is differ from the map. How do I fix this?    
    • A New Chapter Begins We're Rebuilding – Join Our Staff Team After many years of activity, growth, and challenges, it’s finally time for our community to restructure and move forward. We’re ready to turn a new page and evolve into something greater — but we can’t do it without the help of passionate and committed people. That’s why we’re now opening up staff applications for those who want to actively shape the future of our community. If you have the motivation, time, and patience to contribute to something meaningful, this is your chance to step in and make a real impact. What We're Looking For We’re building a fresh and dedicated team of individuals who are ready to support and grow this project. Open roles include: Moderators – to keep the forum clean, safe, and organized Gaming Moderators – to help manage gaming boards (e.g., Lineage, GTA FiveM) Content Creators – to post updates, guides, and articles Community Managers – to engage users and drive activity Technical Staff – for development, backend, and server work We’re not focusing only on Lineage anymore. Our vision is expanding to new areas — including GTA FiveM and other multiplayer games you might have expertise in. If you have a good idea, a server plan, or something new to suggest — we’re open to it. Now’s the time to bring it forward. Requirements We’re looking for individuals who have: A history of activity on the forum (preferred) Available time to contribute consistently A sense of teamwork and responsibility A genuine interest in gaming and community building If you're interested, just send a private message to me or Celestine. (or just reply here) Tell us a few things about yourself and how you’d like to contribute. Let’s bring this community back to life. Let’s rebuild something great — together.   M M G A 
  • Topics

×
×
  • Create New...