Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
This commit is contained in:
26
nwnds_module/fordorranaura1.nss
Normal file
26
nwnds_module/fordorranaura1.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
#include "NW_I0_SPELLS"
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
object oCaster = GetAreaOfEffectCreator();
|
||||
object oTarget = GetEnteringObject();
|
||||
|
||||
effect ePoison = EffectPoison(67); // Fordorran Musk Poison
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_POISON_S);
|
||||
|
||||
int nRace = GetRacialType(oTarget);
|
||||
if (( nRace == RACIAL_TYPE_CONSTRUCT ) ||
|
||||
( nRace == RACIAL_TYPE_ELEMENTAL ) ||
|
||||
( nRace == 52 ) || // Plants are immune to poison.
|
||||
( nRace == RACIAL_TYPE_UNDEAD ))
|
||||
return;
|
||||
|
||||
if(GetIsEnemy(oTarget, oCaster))
|
||||
{
|
||||
{
|
||||
ApplyEffectToObject(DURATION_TYPE_PERMANENT, ePoison, oTarget);
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oTarget);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user