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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock