Jump to content
  • 0

How Add Limit On Item?


Question

5 answers to this question

Recommended Posts

  • 0
Posted

- Add a new int variable on (model.item.kind) Item _maxAmount, with getter.

- Edit protected Item(StatsSet set) to load such variable from XML. Edit your items accordingly.

- Refer to Item item = iteminstance.getItem(); with check such as : item.getCount() > item.getMaxAmount() wherever you need it (most probably L2PcInstance.addItem)

  • 0
Posted

- Add a new int variable on (model.item.kind) Item _maxAmount, with getter.

- Edit protected Item(StatsSet set) to load such variable from XML. Edit your items accordingly.

- Refer to Item item = iteminstance.getItem(); with check such as : item.getCount() > item.getMaxAmount() wherever you need it (most probably L2PcInstance.addItem)

wanna bet he didnt even understand what getItem(0 is ? xD

  • 0
Posted

- Add a new int variable on (model.item.kind) Item _maxAmount, with getter.

- Edit protected Item(StatsSet set) to load such variable from XML. Edit your items accordingly.

- Refer to Item item = iteminstance.getItem(); with check such as : item.getCount() > item.getMaxAmount() wherever you need it (most probably L2PcInstance.addItem)

thx Tryskell we did it, but with little help  :-beep- yeah:

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