L2J Revision 4912:
L2JDP Revision 8362:
Hiya again, Im trying to check if player has a certain item in inventory before doing something but I cant find the function to check if X item is in inventory. Does anyone know? or knows what file its in so I can investigate ty!
[HELP] How to check if there is a certain item in inventory
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 30
- Joined: Thu Sep 01, 2011 3:57 am
- Stake
- Posts: 383
- Joined: Sun Mar 23, 2008 9:33 pm
- Location: Hungary
- Contact:
Re: [HELP] How to check if there is a certain item in invent
Hi!
There is a method in QuestState, called getQuestItemsCount(item_id). Just include it in a condition where you want to do further actions.
There is a method in QuestState, called getQuestItemsCount(item_id). Just include it in a condition where you want to do further actions.


-
- Posts: 30
- Joined: Thu Sep 01, 2011 3:57 am
Re: [HELP] How to check if there is a certain item in invent
Thanks thats great works perfectly!!