PRC8/trunk/scripts/ft_dw_weap.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

43 lines
1.0 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Name Dragonwrack
//:: FileName ft_dw_weap.nss
//:://////////////////////////////////////////////
/*
Dragonwrack for the Vassal of Bahamut's Weapon
*/
//:://////////////////////////////////////////////
//:: Created By: Zedium
//:: Created On: 5 april 2004
//:://////////////////////////////////////////////
#include "prc_class_const"
#include "prc_inc_racial"
#include "prc_inc_nwscript"
void main()
{
int nVassal = GetLevelByClass(CLASS_TYPE_VASSAL, OBJECT_SELF);
object oTarget = PRCGetSpellTargetObject();
int iDam;
effect eDam;
if (nVassal == 10)
{
iDam = d6(10);
}
else if (nVassal >= 7)
{
iDam = d6(3);
}
else if (nVassal >= 4)
{
iDam = d6(2);
}
eDam = EffectDamage(iDam);
if (MyPRCGetRacialType(oTarget)==RACIAL_TYPE_DRAGON)
{
if (GetAlignmentGoodEvil(oTarget)==ALIGNMENT_EVIL)
{
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDam, oTarget);
}
}
}