%getContents()

Aliases%getContents( )
Parametersmixed @target

    Returns the contents of the target as an array of object pointers. If the
target resolves to a room then the contents of the room, both objects and
mobiles, are returned in an associative array indexed from 1 counting
onward. If the target is a mobile then the contents of the mobile, both
inventory and equipment, are returned. If the target is a container
object then the contents of the container are returned. The target may be
a room pointer, room number, mobile pointer, mobile keyword, object
pointer, or object keyword.