A question about getting an object from inventory
Posted: Thu Oct 29, 2009 7:17 pm
What is the method for getting a object from inventory the pj?
I'm intented very very times and i not obtened results...
I create and method and... i post followings:
and the eclipse I get this error, says:
Type mismatch: cannot convert from L2ItemInstance to boolean
And the eclipse i have the option for change to boolean...
They can help me pls... thank you for all
I'm intented very very times and i not obtened results...
I create and method and... i post followings:
Code: Select all
if (player.getInventory().getItemByItemId(3870)){ code... }
and the eclipse I get this error, says:
Type mismatch: cannot convert from L2ItemInstance to boolean
And the eclipse i have the option for change to boolean...
They can help me pls... thank you for all