Updated AMS marker feats. Removed arcane & divine marker feats. Updated Dread Necromancer for epic progression. Updated weapon baseitem models. Updated new weapons for crafting & npc equip. Updated prefix. Updated release archive.
39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Purple Dragon Knight - Oath of Wrath
|
|
//:: prc_kotmc_combat.nss
|
|
//:://////////////////////////////////////////////
|
|
//:: Applies a temporary Attack, Save, Damage, Skill bonus vs
|
|
//:: monsters of the targets racial type
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Stratovarius
|
|
//:: Created On: Sept 22, 2005
|
|
//:://////////////////////////////////////////////
|
|
|
|
#include "prc_alterations"
|
|
|
|
void main()
|
|
{
|
|
//Declare main variables.
|
|
object oPC = OBJECT_SELF;
|
|
object oTarget = PRCGetSpellTargetObject();
|
|
int nRace = MyPRCGetRacialType(oTarget);
|
|
int nClass = GetLevelByClass(CLASS_TYPE_PURPLE_DRAGON_KNIGHT, oPC);
|
|
int nDur = nClass * 2;
|
|
int nBonus = 2;
|
|
|
|
effect eAttack = EffectAttackIncrease(nBonus);
|
|
effect eDamage = EffectDamageIncrease(DAMAGE_BONUS_2, DAMAGE_TYPE_BLUDGEONING);
|
|
effect eSave = EffectSavingThrowIncrease(SAVING_THROW_ALL, nBonus);
|
|
effect eSkill = EffectSkillIncrease(SKILL_ALL_SKILLS, nBonus);
|
|
|
|
eAttack = VersusRacialTypeEffect(eAttack, nRace);
|
|
eDamage = VersusRacialTypeEffect(eDamage, nRace);
|
|
eSave = VersusRacialTypeEffect(eSave, nRace);
|
|
eSkill = VersusRacialTypeEffect(eSkill, nRace);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eAttack, oPC, RoundsToSeconds(nDur));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eDamage, oPC, RoundsToSeconds(nDur));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSave, oPC, RoundsToSeconds(nDur));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSkill, oPC, RoundsToSeconds(nDur));
|
|
}
|