Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
70
_module/_removed files/nw_s0_crgrund.nss
Normal file
70
_module/_removed files/nw_s0_crgrund.nss
Normal file
@@ -0,0 +1,70 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: 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
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
/*
|
||||
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 = GetMetaMagicFeat();
|
||||
int nCasterLevel = GetCasterLevel(OBJECT_SELF);
|
||||
int nDuration = nCasterLevel;
|
||||
nDuration = 24;
|
||||
effect eSummon;
|
||||
//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)
|
||||
{
|
||||
eSummon = EffectSummonCreature("vampire01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else if ((nCasterLevel >= 16) && (nCasterLevel <= 18))
|
||||
{
|
||||
eSummon = EffectSummonCreature("lichlord01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else if ((nCasterLevel >= 19) && (nCasterLevel <= 24))
|
||||
{
|
||||
eSummon = EffectSummonCreature("demilich01",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
else
|
||||
{
|
||||
eSummon = EffectSummonCreature("greatlich02",VFX_FNF_SUMMON_UNDEAD);
|
||||
}
|
||||
//Apply summon effect and VFX impact.
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, GetSpellTargetLocation(), HoursToSeconds(nDuration));
|
||||
//ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eVis, GetSpellTargetLocation());
|
||||
}
|
||||
|
Reference in New Issue
Block a user