23 lines
693 B
Plaintext
23 lines
693 B
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oItem = GetFirstItemInInventory(oPC);
|
||
|
int iMaxGPValue = 2000;
|
||
|
while (GetIsObjectValid(oItem))
|
||
|
{
|
||
|
|
||
|
{
|
||
|
if (GetBaseItemType(oItem) == BASE_ITEM_THIEVESTOOLS ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_POTIONS ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_TRAPKIT
|
||
|
)
|
||
|
SetPlotFlag(oItem,FALSE);
|
||
|
else
|
||
|
SetPlotFlag(oItem,TRUE);
|
||
|
if (GetGoldPieceValue(oItem) > iMaxGPValue && !GetPlotFlag(oItem))
|
||
|
SetPlotFlag(oItem,TRUE);
|
||
|
}
|
||
|
oItem = GetNextItemInInventory(oPC);
|
||
|
}
|
||
|
}
|