Initial Upload
Initial Upload
This commit is contained in:
58
_module/nss/merchant_arm_5k.nss
Normal file
58
_module/nss/merchant_arm_5k.nss
Normal file
@@ -0,0 +1,58 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oItem = GetFirstItemInInventory(oPC);
|
||||
///edit value and then resave/rename script
|
||||
int iMaxGPValue = 5000;
|
||||
///
|
||||
while (GetIsObjectValid(oItem))
|
||||
{
|
||||
|
||||
{
|
||||
if (GetBaseItemType(oItem) == BASE_ITEM_LONGSWORD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_DAGGER ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_BASTARDSWORD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_BATTLEAXE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_CLUB ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_DIREMACE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_DOUBLEAXE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_GREATAXE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_GREATSWORD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_HALBERD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_HANDAXE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_HEAVYFLAIL ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_HELMET ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_KAMA ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_KATANA ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_KUKRI ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_LARGESHIELD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_LIGHTFLAIL ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_LIGHTHAMMER ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_LIGHTMACE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_MORNINGSTAR ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_QUARTERSTAFF ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_RAPIER ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_SCIMITAR ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_SCYTHE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_SHORTSPEAR ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_SHORTSWORD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_SICKLE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_SMALLSHIELD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_THROWINGAXE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_TOWERSHIELD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_TWOBLADEDSWORD ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_WARHAMMER ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_BRACER ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_GLOVES ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_GRENADE ||
|
||||
GetBaseItemType(oItem) == BASE_ITEM_ARMOR
|
||||
)
|
||||
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