Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
40
_removed/nw_s0_circevila.nss
Normal file
40
_removed/nw_s0_circevila.nss
Normal file
@@ -0,0 +1,40 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Magic Cirle Against Evil
|
||||
//:: NW_S0_CircEvilA
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Add basic protection from evil effects to
|
||||
entering allies.
|
||||
*/
|
||||
/*
|
||||
Anphillia Changes
|
||||
This spell now works outside of parties.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Nov 20, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
#include "NW_I0_SPELLS"
|
||||
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oSource = GetAreaOfEffectCreator();
|
||||
object oTarget = GetEnteringObject();
|
||||
if(GetIsFriend(oTarget, oSource) ||
|
||||
(GetIsNeutral(oTarget, oSource) && (GetIsPC(oTarget) || GetIsPC(GetMaster(oTarget))) && !GetIsDM(oTarget)))
|
||||
{
|
||||
//Declare major variables
|
||||
int nDuration = GetCasterLevel(OBJECT_SELF);
|
||||
//effect eVis = EffectVisualEffect(VFX_IMP_GOOD_HELP);
|
||||
effect eLink = CreateProtectionFromAlignmentLink(ALIGNMENT_EVIL);
|
||||
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_MAGIC_CIRCLE_AGAINST_EVIL, FALSE));
|
||||
|
||||
//Apply the VFX impact and effects
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eLink, oTarget);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user