Aantioch_Infernum/_module/nss/merchant_reset5k.nss

21 lines
419 B
Plaintext
Raw Permalink Normal View History

2023-08-08 16:22:17 -04:00
void main()
{
object oPC = GetPCSpeaker();
object oItem = GetFirstItemInInventory(oPC);
int iMaxGPValue = 5000;
while (GetIsObjectValid(oItem))
{
if(GetPlotFlag(oItem)== TRUE)
{
SetPlotFlag(oItem,FALSE);
}
if (GetGoldPieceValue(oItem) > iMaxGPValue && !GetPlotFlag(oItem))
{
SetPlotFlag(oItem,TRUE);
}
oItem = GetNextItemInInventory(oPC);
}
}