Initial Upload
Initial Upload
This commit is contained in:
30
_module/nss/merchant_mag_5k.nss
Normal file
30
_module/nss/merchant_mag_5k.nss
Normal file
@@ -0,0 +1,30 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user