Added "removed" folder
This commit is contained in:
114
_removed/nw_s0_grplanar.nss
Normal file
114
_removed/nw_s0_grplanar.nss
Normal file
@@ -0,0 +1,114 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Greater Planar Binding
|
||||
//:: NW_S0_GrPlanar.nss
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Summons an outsider dependant on alignment, or
|
||||
holds an outsider if the creature fails a save.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: April 12, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Patch 1.70, fix by Shadooow
|
||||
|
||||
- added saving throw subtype (paralyse)
|
||||
*/
|
||||
|
||||
#include "70_inc_spells"
|
||||
#include "x0_i0_spells"
|
||||
#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
|
||||
spellsDeclareMajorVariables();
|
||||
int nDuration = spell.Level;
|
||||
effect eSummon;
|
||||
effect eGate;
|
||||
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_NEGATIVE);
|
||||
effect eDur2 = EffectVisualEffect(VFX_DUR_PARALYZED);
|
||||
effect eDur3 = EffectVisualEffect(VFX_DUR_PARALYZE_HOLD);
|
||||
|
||||
effect eLink = EffectLinkEffects(eDur, EffectParalyze());
|
||||
eLink = EffectLinkEffects(eLink, eDur2);
|
||||
eLink = EffectLinkEffects(eLink, eDur3);
|
||||
|
||||
int nRacial = GetRacialType(spell.Target);
|
||||
//Check for metamagic extend
|
||||
if (spell.Meta == METAMAGIC_EXTEND)
|
||||
{
|
||||
nDuration = nDuration *2; //Duration is +100%
|
||||
}
|
||||
//Check to see if a valid target has been chosen
|
||||
if (GetIsObjectValid(spell.Target))
|
||||
{
|
||||
if(spellsIsTarget(spell.Target, SPELL_TARGET_SINGLETARGET, spell.Caster))
|
||||
{
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(spell.Target, EventSpellCastAt(spell.Caster, spell.Id));
|
||||
//Check for racial type
|
||||
if(nRacial == RACIAL_TYPE_OUTSIDER)
|
||||
{
|
||||
//Allow will save to negate hold effect
|
||||
if(!MySavingThrow(SAVING_THROW_WILL, spell.Target, spell.DC+5,SAVING_THROW_TYPE_PARALYSE, spell.Caster))
|
||||
{
|
||||
//Apply the hold effect
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, spell.Target, RoundsToSeconds(nDuration/2));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//If the ground was clicked on summon an outsider based on alignment
|
||||
int nAlign = GetAlignmentGoodEvil(spell.Caster);
|
||||
float fDelay = 3.0;
|
||||
switch (nAlign)
|
||||
{
|
||||
case ALIGNMENT_EVIL:
|
||||
if (GetCasterLevel(OBJECT_SELF) >= 28)
|
||||
eSummon = EffectSummonCreature("NW_S_VROCK2", VFX_FNF_SUMMON_GATE, 3.0);
|
||||
else
|
||||
eSummon = EffectSummonCreature("NW_S_VROCK", VFX_FNF_SUMMON_GATE, 3.0);
|
||||
//eGate = EffectVisualEffect(VFX_FNF_SUMMON_GATE);
|
||||
break;
|
||||
case ALIGNMENT_GOOD:
|
||||
if (GetCasterLevel(OBJECT_SELF) >= 28)
|
||||
eSummon = EffectSummonCreature("NW_S_CTRUMPET2", VFX_FNF_SUMMON_CELESTIAL, 3.0);
|
||||
else
|
||||
eSummon = EffectSummonCreature("NW_S_CTRUMPET", VFX_FNF_SUMMON_CELESTIAL, 3.0);
|
||||
//eGate = EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL);
|
||||
break;
|
||||
case ALIGNMENT_NEUTRAL:
|
||||
if (GetCasterLevel(OBJECT_SELF) >= 28)
|
||||
eSummon = EffectSummonCreature("NW_S_SLAADDETH2", VFX_FNF_SUMMON_MONSTER_3, 1.0);
|
||||
else
|
||||
eSummon = EffectSummonCreature("NW_S_SLAADDETH", VFX_FNF_SUMMON_MONSTER_3, 1.0);
|
||||
//eGate = EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3);
|
||||
fDelay = 1.0;
|
||||
break;
|
||||
}
|
||||
//Apply the VFX impact and summon effect
|
||||
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eSummon, spell.Loc, RoundsToSeconds(nDuration));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user