Skip to content

Only 1 X Item In Inventory At Time!

Featured Replies

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.

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" />
  • Author

 

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

  • Author

paste this item here from item xml

What item? <.<

What item? <.<

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

  • Author

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.

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

 

locked then.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.