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.


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