Jump to content
  • 0

How Add Limit On Item?


Lancer

Question

5 answers to this question

Recommended Posts

  • 0

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

Link to comment
Share on other sites

  • 0

- 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

Link to comment
Share on other sites

  • 0

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

 

But I answered, and I doubt he will get a better answer, either here or even on my forums.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...