Initial Upload
Initial Upload
This commit is contained in:
19
_module/nss/merchant_scr2k.nss
Normal file
19
_module/nss/merchant_scr2k.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oItem = GetFirstItemInInventory(oPC);
|
||||
int iMaxGPValue = 2000;
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
|
||||
{
|
||||
if (GetBaseItemType(oItem) == BASE_ITEM_SPELLSCROLL)
|
||||
SetPlotFlag(oItem,FALSE);
|
||||
else
|
||||
SetPlotFlag(oItem,TRUE);
|
||||
if (GetGoldPieceValue(oItem) > iMaxGPValue && !GetPlotFlag(oItem))
|
||||
SetPlotFlag(oItem,TRUE);
|
||||
}
|
||||
oItem = GetNextItemInInventory(oPC);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user