PGCC_PRC8/_module/nss/vtw_shgmrw.nss
Jaysyn904 e51634d39b Initial upload
Initial upload.
2024-10-09 14:17:22 -04:00

32 lines
753 B
Plaintext

#include "inc_baseitem"
//int isArcane(object oItem)
//{
// int iTyp = GetBaseItemType(oItem);
// if (
// (iTyp == BASE_ITEM_MAGICROD ) ||
// (iTyp == BASE_ITEM_MAGICSTAFF ) ||
// (iTyp == BASE_ITEM_MAGICWAND ) ||
// (iTyp == BASE_ITEM_BLANK_WAND ) ||
// (iTyp == BASE_ITEM_BLANK_SCROLL ) ||
// (iTyp == BASE_ITEM_BLANK_POTION )
// ) return TRUE;
// else return FALSE;
//}
int StartingConditional()
{
object oItem = GetLocalObject(GetPCSpeaker(), "MODIFY_ITEM");
if (
isArmor(oItem) ||
isWearable(oItem) ||
isGauntlet(oItem) ||
isMelee(oItem) ||
isRanged(oItem) ||
isArcane(oItem)
) return TRUE;
else return FALSE;
}