Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,61 @@
//::///////////////////////////////////////////////
//:: Dirge: On Exit
//:: x0_s0_dirgeET.nss
//:: Copyright (c) 2002 Bioware Corp.
//:://////////////////////////////////////////////
/*
MARCH 2003
Remove the negative effects of the dirge.
Modified by : Rabidness
on : June 20 , 2004
Changes:
- Fixed an issue where the AOE would dispell if the CASTER left the AOE
...when the AOE was supposed to be centered ON the caster.
*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
//:: Update Pass By:
#include "x2_inc_spellhook"
void main()
{
//Declare major variables
//Get the object that is exiting the AOE
object oTarget = GetExitingObject();
//VvVvV Rabidness addition VvVvV
if ( GetAreaOfEffectCreator() == oTarget )
return;
effect eAOE;
// SpawnScriptDebugger();
if(GetHasSpellEffect(SPELL_DIRGE, oTarget))
{
DeleteLocalInt(oTarget, "X0_L_LASTPENALTY");
//Search through the valid effects on the target.
eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE) )
{
if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator())
{
//If the effect was created by the Dirge spell then remove it
if(GetEffectSpellId(eAOE) == SPELL_DIRGE)
{
RemoveEffect(oTarget, eAOE);
//bValid = TRUE;
}
}
//Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
}
}