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_AMULET ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_RING ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_POTIONS ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_SPELLSCROLL ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_MAGICROD ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_MAGICSTAFF ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_BELT ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_BOOTS ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_CLOAK ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_GLOVES ||
|
||
|
GetBaseItemType(oItem) == BASE_ITEM_MAGICWAND
|
||
|
)
|
||
|
SetPlotFlag(oItem,FALSE);
|
||
|
else
|
||
|
SetPlotFlag(oItem,TRUE);
|
||
|
if (GetGoldPieceValue(oItem) > iMaxGPValue && !GetPlotFlag(oItem))
|
||
|
SetPlotFlag(oItem,TRUE);
|
||
|
}
|
||
|
oItem = GetNextItemInInventory(oPC);
|
||
|
}
|
||
|
}
|