//:://///////////////////////////////////////////// //:: Summon Shadow //:: X0_S2_ShadSum.nss //:: Copyright (c) 2002 Bioware Corp. //::////////////////////////////////////////////// /* PRESTIGE CLASS VERSION Spell powerful ally from the shadow plane to battle for the wizard */ //::////////////////////////////////////////////// //:: Created By: Preston Watamaniuk //:: Created On: Oct 26, 2001 //::////////////////////////////////////////////// #include "inc_multisummon" void main() { //Declare major variables int nCasterLevel = GetLevelByClass(27); int nDuration = nCasterLevel; string eSummon; //Set the summoned undead to the appropriate template based on the caster level if (nCasterLevel <= 5) { eSummon = "X1_S_SHADOW"; } else if (nCasterLevel <= 8) { eSummon = "X1_S_SHFIEND"; } else if (nCasterLevel <=10) { eSummon = "X1_S_SHADLORD"; } else { if (GetHasFeat(1002,OBJECT_SELF))// has epic shadowlord feat { //GZ 2003-07-24: Epic shadow lord eSummon = "x2_s_eshadlord"; } else { eSummon = "X1_S_SHADLORD"; } } //Apply VFX impact and summon effect if(nDuration < SUMMON_DURATION_MIN) nDuration = SUMMON_DURATION_MIN; if(GetLocalInt(GetModule(), "PnPSummonDuration")==FALSE) nDuration = nCasterLevel; int nFNF_Effect = VFX_FNF_SUMMON_UNDEAD; if(GetLocalInt(GetModule(), "PnPSummonDuration")==FALSE) PrimoEffectSummonCreature(eSummon, nFNF_Effect, GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, HoursToSeconds(nDuration)); else PrimoEffectSummonCreature(eSummon, nFNF_Effect, GetSpellTargetLocation(), DURATION_TYPE_TEMPORARY, RoundsToSeconds(nDuration)); }