IPDyeArmor(object, int, action)
Changes the color of an armor.
Armor to dye.
Color from 0 to 63
Changes the color of an item armor
oItem - The armor
nColorType - ITEM_APPR_ARMOR_COLOR_* constant
nColor - color from 0 to 63
Since oItem is destroyed in the process, the function returns the item created with the color changed
Simply a wrapper function that calls CopyItemAndModify and destroys the original oItem.
Not really a bug, but: No checks are made to see if the copied item is valid. Thus, it will delete the original oItem even if the function fails, for instance if you feed it something other than an armor for oItem (like a weapon or a placeable).
#include " x2_inc_itemprop "
author: Lilac Soul