Make sure you have the check_hasitem.pl plugin (included in PEQ's quest CVS) and use :
(plugin::check_hasitem($client, 1234))
Replacing 1234 with the item id, of course. This checks all inventory slots, including bank. Obviously, if the player deletes the item this method won't work so you may wan to use globals. But, checking the inventory is certainly easier and lighter on the DB.
|