%mobGetAffectItemsBySkill()

Aliases%mobGetAffectItemsBySkill( )
Parametersmobile @mob, mixed @skill

    Returns all of the affect items on the target @mob that match the given
@skill name or ID. The affect items will be returned as an array of item
pointers and will only be retrieved from the mobile's special affects
inventory.

Example:

if( !%isNull( @item = %mobGetAffectItemsBySkill( @n, "bless" )->1 ) )
{
@item = %load( object, 123456, @n, affects )
}
endif