Aantioch_Infernum/_module/nss/merchant_reset5k.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

21 lines
419 B
Plaintext

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);
}
}