Dark Dreams of Furiae - a new module for NWN:EE! Buy now
Item Property Removal and price comparison
I am working on a crafting system and I need to loop through the Item Properties and remove a specified Item Property before adding the new Item Property with value. This is what I have. When I compare the two Values in iStartCost and iEndCost it is clear that the Item Property has not been remove. Am I missing a step here?
int iStartCost = GetGoldPieceValue(oCopy);
itemproperty ipLoop, ipType;
ipLoop = GetFirstItemProperty(oCopy);
ipLoop = GetNextItemProperty(oCopy);
REM: I add new Item Property to oCopy and compare prices.
int iEndCost = GetGoldPieceValue(oCopy);
Thank you for your time,