GetIsValidCombination(int, object)

Determines if items within a container are valid for combining into a new item.

int GetIsValidCombination(
    int bDeleteItem,
    object oContainer = OBJECT_INVALID
);

Parameters

bDeleteItem

Determines if items in oContainer will be deleted.

oContainer

Container to check for reagent combinations. (Default: OBJECT_INVALID)


Description

Returns TRUE is items placed within oContainer are a valid combination for the creation of a new item, FALSE otherwise. When bDeleteItem is TRUE, items within oContainer are deleted only on a successful match.



Remarks

If oContainer remains OBJECT_INVALID, an object with the tag stored on the object calling this script aliased "NW_L_MYFORGE" is used as the container instead.

If bDeleteItem is TRUE, then not only are the items in oContainer deleted if used, the item created should not be attainable in the future by the same PC.


Requirements

#include "nw_o0_itemmaker"

Version

1.29

See Also

categories: Item Creation Functions


 author: Charles Feduke