31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oItem = GetFirstItemInInventory(oPC);
|
||
|
int iMaxGPValue = 5000;
|
||
|
while (GetIsObjectValid(oItem))
|
||
|
{
|
||
|
|
||
|
{
|
||
|
if (GetBaseItemType(oItem) == BASE_ITEM_BOOK ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_GEM ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_POTIONS ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_SCROLL ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_HEALERSKIT ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_LARGEBOX ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_MISCLARGE ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_MISCMEDIUM ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_MISCSMALL ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_MISCTHIN ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_TORCH
|
||
|
)
|
||
|
SetPlotFlag(oItem,FALSE);
|
||
|
else
|
||
|
SetPlotFlag(oItem,TRUE);
|
||
|
if (GetGoldPieceValue(oItem) > iMaxGPValue && !GetPlotFlag(oItem))
|
||
|
SetPlotFlag(oItem,TRUE);
|
||
|
}
|
||
|
oItem = GetNextItemInInventory(oPC);
|
||
|
}
|
||
|
}
|