%hasItem()

Aliases%hasItem( ), %hasItem( )
Parameterscharacter @target, object @object

    Checks to see if the @target has the @object in their direct inventory. If
the @object is found then returns 1, otherwise 0. This function only checks
tge first level of inventory and does not check equipped items at all. If
the owner of the script is a character then they must be able to see the
@object. The @object may be a pointer to an object, the name of an object,
or the vnum of an object.