Horsefly Swamp update

Creatures & encounter tables to support Horsefly swamp expansion.
This commit is contained in:
Jaysyn904
2023-08-13 17:21:44 -04:00
parent e4a37cd868
commit df709d33fc
485 changed files with 257810 additions and 10741 deletions

32
_module/nss/melody3.nss Normal file
View File

@@ -0,0 +1,32 @@
#include "NW_I0_SPELLS"
#include "x2_inc_spellhook"
void main()
{
//Declare major variables
//Get the object that is exiting the AOE
object oTarget = GetExitingObject();
effect eAOE;
int nEffectType;
int bValid = FALSE;
//Search through the valid effects on the target.
eAOE = GetFirstEffect(oTarget);
while (GetIsEffectValid(eAOE) && bValid == FALSE)
{
if (GetEffectCreator(eAOE) == GetAreaOfEffectCreator(OBJECT_SELF))
{
nEffectType = GetEffectType(eAOE);
if ( nEffectType == EFFECT_TYPE_DAZED )
{
if(GetEffectSpellId(eAOE) == -1)
{
RemoveEffect(oTarget, eAOE);
bValid = TRUE;
}
}
}
//Get next effect on the target
eAOE = GetNextEffect(oTarget);
}
}