21 lines
419 B
Plaintext
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);
|
||
|
|
||
|
}
|
||
|
}
|