Page 1 of 1

[HELP] How to check if there is a certain item in inventory

Posted: Sun Nov 13, 2011 1:57 am
by thaiscorpion
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!

Re: [HELP] How to check if there is a certain item in invent

Posted: Sun Nov 13, 2011 2:23 am
by Stake
Hi!

There is a method in QuestState, called getQuestItemsCount(item_id). Just include it in a condition where you want to do further actions.

Re: [HELP] How to check if there is a certain item in invent

Posted: Sun Nov 13, 2011 2:34 am
by thaiscorpion
Thanks thats great works perfectly!!