GetItemPossessedByParty(object, string)

Check to see if the specified item belongs to anyone in the party.

object GetItemPossessedByParty(
    object oPC,
    string sItemTag
);

Parameters

oPC

The character whose party is to be checked.

sItemTag

The item to be looked for.


Description

Returns the item object if it is found, otherwise returns OBJECT_INVALID.

Checks each PC in oPC's party to see if they have an item with a tag of sItemTag.

Only checks PC's, not associates.



Remarks

This is essentially a wrapper for the GetItemPossessedBy function.

The specified PC (oPC) is checked first, then the rest of the party. If there are multiple copies of the item in the party, only the first will be returned.


Also note that x0_i0_partywide is already included in x0_i0_common. So you will only need to include one, not both.


Requirements

#include "x0_i0_partywide"

Version

1.61

See Also

functions: GetIsItemPossessedByParty | GetItemPossessedBy | RemoveItemFromParty
categories: Inventory Functions | Party Functions


 author: Grimlar