%mobGetAffectItemsById()

Aliases%mobGetAffectItemsById( )
Parametersmobile @mob, integer @id

    Returns all of the affect items on the target @mob that match the given
item @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 = %mobGetAffectItemsById( @n, 123456 )->1 ) )
{
@item = %load( object, 123456, @n, affects )
}
endif