IPCopyItemProperties(object, object, int)

Copies all permanent item properties from one object to another.

void IPCopyItemProperties(
    object oSource,
    object oTarget,
    int bIgnoreCraftProps = TRUE
);

Parameters

oSource

Object (item) from which the item properties are copied.

oTarget

Object (item) to which the item properties are copied.

bIgnoreCraftProps

Prohibits copying of craft armor or weapon item properties. (Default: TRUE)


Description

This function copies all permanent item properties from oSource to oTarget.

If bIgnoreCraftProps is TRUE (or rather non-zero), any craft armor or weapon item properties are not copied.



Remarks

Temporary item properties are never copied by this function.

oSource and oTarget must be valid items.

This is an internal function. See the note near the top of #include index for more details.


Requirements

#include "x2_inc_itemprop"


Version

???

See Also

functions:  IPGetHasItemPropertyOnCharacter | IPGetItemHasProperty | IPGetNumberOfItemProperties | IPRemoveAllItemProperties | IPRemoveMatchingItemProperties | IPSafeAddItemProperty
constants:  ITEM_PROPERTY_*
categories:  Item Properties Functions | Item Creation Functions


author: motu99, editor: Mistress