Initial commit. Updated release archive.
This commit is contained in:
39
_removed/pnp_lich_faura.nss
Normal file
39
_removed/pnp_lich_faura.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name Lich
|
||||
//:: FileName pnp_lich_faura
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Shane Hennessy
|
||||
//:: Created On:
|
||||
//:://////////////////////////////////////////////
|
||||
// fear aura for lich
|
||||
|
||||
void main()
|
||||
{
|
||||
// turn off aura if it is on
|
||||
if (GetLocalInt(OBJECT_SELF,"LichAuraOn"))
|
||||
{
|
||||
effect eF = GetFirstEffect(OBJECT_SELF);
|
||||
while (GetIsEffectValid(eF))
|
||||
{
|
||||
if ( (GetEffectType(eF) == EFFECT_TYPE_AREA_OF_EFFECT) &&
|
||||
(GetEffectDurationType(eF) == DURATION_TYPE_PERMANENT))
|
||||
RemoveEffect( OBJECT_SELF,eF);
|
||||
eF = GetNextEffect(OBJECT_SELF);
|
||||
}
|
||||
SetLocalInt(OBJECT_SELF,"LichAuraOn",FALSE);
|
||||
return;
|
||||
}
|
||||
|
||||
// turn aura on
|
||||
// Set variable to tell us it is on
|
||||
SetLocalInt(OBJECT_SELF,"LichAuraOn",TRUE);
|
||||
effect eAOE = EffectAreaOfEffect(AOE_MOB_FEAR);
|
||||
// Cant be dispelled or removed during rest
|
||||
eAOE = SupernaturalEffect(eAOE);
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eAOE, OBJECT_SELF);
|
||||
}
|
Reference in New Issue
Block a user