Updated epic swashbucker tlk. Added notes on Martial Study. Updated Shadow Servant to scale with Shadow Master level, per PnP. Made Disciple of Baalzebul's CHA boost intrinsic. Swarm of Arrows is an Eldritch Knight epic bonus feat. Epic eldritch theurge is 11th level, not 21st level. Updated Shadowdancer weapon proficiencies. WP: Scythe was a usable feat for Warblade. Gaseous Form added to iprp_spells. Set Favoured Soul's Regen X Wounds spells to the correct spell level. Updated Twinfiend to not suck. Tweaked GetMaxPossibleHP for Undead & Constructs. Updated PRCIsFlying() for newer CEP2 wings. More fixes and updated for NUI levelup menu. (@Rakiov) Added support for de-leveling AMS classes (@Rakiov) Zakya Rakshasa have a claw & bite attack. Added check to end grapples after target death. Removed debug message in GetHighestSpellAvailableByDescriptor() Monsters won't summon uncontrolled undead. Added Signal Event to Luminous Armor. Corrected Signal Event on Shield of Faith.
97 lines
3.1 KiB
Plaintext
97 lines
3.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Create Greater Undead
|
|
//:: NW_S0_CrGrUnd.nss
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Summons an undead type pegged to the character's
|
|
level.
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Preston Watamaniuk
|
|
//:: Created On: April 12, 2001
|
|
//:://////////////////////////////////////////////
|
|
|
|
|
|
//:: modified by mr_bumpkin Dec 4, 2003
|
|
#include "prc_inc_spells"
|
|
|
|
void main()
|
|
{
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_NECROMANCY);
|
|
/*
|
|
Spellcast Hook Code
|
|
Added 2003-06-23 by GeorgZ
|
|
If you want to make changes to all spells,
|
|
check x2_inc_spellhook.nss to find out more
|
|
|
|
*/
|
|
|
|
if (!X2PreSpellCastCode())
|
|
{
|
|
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
|
return;
|
|
}
|
|
|
|
// End of Spell Cast Hook
|
|
|
|
|
|
//Declare major variables
|
|
int nMetaMagic = PRCGetMetaMagicFeat();
|
|
int nCasterLevel = PRCGetCasterLevel(OBJECT_SELF);
|
|
int nDuration = nCasterLevel;
|
|
|
|
int bIsPC = GetIsPC(OBJECT_SELF);
|
|
|
|
nDuration = 24;
|
|
string sResRef;
|
|
//effect eVis = EffectVisualEffect(VFX_FNF_SUMMON_UNDEAD);
|
|
//Make metamagic extend check
|
|
if ((nMetaMagic & METAMAGIC_EXTEND))
|
|
{
|
|
nDuration = nDuration *2; //Duration is +100%
|
|
}
|
|
//Determine undead to summon based on level
|
|
if (nCasterLevel <= 15)
|
|
sResRef = "NW_S_VAMPIRE";
|
|
else if ((nCasterLevel >= 16) && (nCasterLevel <= 17))
|
|
sResRef = "NW_S_DOOMKGHT";
|
|
else if ((nCasterLevel >= 18) && (nCasterLevel <= 19))
|
|
sResRef = "NW_S_LICH";
|
|
else
|
|
sResRef = "NW_S_MUMCLERIC";
|
|
effect eSummon = EffectSummonCreature(sResRef,VFX_FNF_SUMMON_UNDEAD);
|
|
//Apply summon effect and VFX impact.
|
|
MultisummonPreSummon();
|
|
if(GetPRCSwitch(PRC_CREATE_UNDEAD_UNCONTROLLED) && bIsPC)
|
|
{
|
|
object oSummon = CreateObject(OBJECT_TYPE_CREATURE, sResRef, PRCGetSpellTargetLocation());
|
|
//make it hostile
|
|
ChangeToStandardFaction(oSummon, STANDARD_FACTION_HOSTILE);
|
|
//this is to
|
|
//A) allow time to dominate properly
|
|
//B) allow time for corpsecrafter to run
|
|
effect eDom = EffectCutsceneDominated();
|
|
eDom = SupernaturalEffect(EffectLinkEffects(eDom, EffectCutsceneImmobilize()));
|
|
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eDom, oSummon, 3.0);
|
|
//visual
|
|
effect eVFX = EffectVisualEffect(VFX_FNF_SUMMON_UNDEAD);
|
|
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVFX, PRCGetSpellTargetLocation());
|
|
}
|
|
else
|
|
{
|
|
if(GetPRCSwitch(PRC_CREATE_UNDEAD_PERMANENT))
|
|
{
|
|
eSummon = SupernaturalEffect(eSummon);
|
|
ApplyEffectAtLocation(DURATION_TYPE_PERMANENT, eSummon, PRCGetSpellTargetLocation());
|
|
}
|
|
else
|
|
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, PRCGetSpellTargetLocation(), HoursToSeconds(nDuration));
|
|
}
|
|
|
|
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
|
|
// Getting rid of the local integer storing the spellschool name
|
|
}
|
|
|