SetItemCharges(oItem,0) does not set an item's charges to zero
Has anyone else had this problem?
Setting charges to a positive (>0) value works.
Setting charges to zero or a negative value is seemingly ignored (as verified by a GetItemCharges() immediately after).
Regards.
Setting charges to a positive (>0) value works.
Setting charges to zero or a negative value is seemingly ignored (as verified by a GetItemCharges() immediately after).
Regards.
0
Comments
I feel like there's a disconnect between this function and the 'uses per day' item property.
Go figure, there's SetItemPropertyUsesPerDayRemaining. Maybe changing to 'uses/day' will work better for you?