Files
HeroesStone_PRC8/_module/nss/ww_silver.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

21 lines
679 B
Plaintext

//::///////////////////////////////////////////////
//:: Werewolf Silver Weapons
//:: WW_SILVER
//:://////////////////////////////////////////////
/*
Give them a +2 attack bonus if its a Silver
weapon. Must have Sil or Silver in the tag.
NOT case specific.
*/
void main()
{
object oWeapon = GetLastWeaponUsed(OBJECT_SELF);
string sWeaponTag = GetStringUpperCase(GetTag(oWeapon));
if((FindSubString(sWeaponTag,"SILVER")!= -1) ||(FindSubString(sWeaponTag,"SIL"))!= -1)
{
//SpeakString("Silver weapon");
effect eSilver=EffectAttackIncrease(2,ATTACK_BONUS_MISC);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eSilver,OBJECT_SELF,6.0);
}
}