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

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
thaiscorpion
Posts: 30
Joined: Thu Sep 01, 2011 3:57 am

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

Post 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!
User avatar
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

Post 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.
Image
Image
thaiscorpion
Posts: 30
Joined: Thu Sep 01, 2011 3:57 am

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

Post by thaiscorpion »

Thanks thats great works perfectly!!
Post Reply