Initial Commit

Initial Commit
This commit is contained in:
Jaysyn904
2023-09-21 19:51:32 -04:00
parent 65b5bd7fd3
commit 102ba7dab6
6400 changed files with 5741850 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
//:://////////////////////////////////////////////////
//:: prc_pwonspawn.nss
/*
* PRC onSpawn catch all
*/
//:://////////////////////////////////////////////////
#include "x0_i0_anims"
// #include "x0_i0_walkway" - in x0_i0_anims
#include "x0_i0_treasure"
#include "x2_inc_switches"
void main()
{
//Disable summoning
SetLocalInt(OBJECT_SELF, "DontSummon", TRUE);
// ***** ADD ANY SPECIAL ON-SPAWN CODE HERE ***** //
// * If Incorporeal, apply changes
if (GetCreatureFlag(OBJECT_SELF, CREATURE_VAR_IS_INCORPOREAL) == TRUE)
{
effect eKDImmunity = EffectImmunity(IMMUNITY_TYPE_KNOCKDOWN);
effect eImmunity = EffectImmunity(IMMUNITY_TYPE_ENTANGLE);//Shadooow: logically also immune to trap, but thats too much hardcore I guess
effect eLink = EffectLinkEffects(eLink,eKDImmunity);
eLink = EffectLinkEffects(eLink,eImmunity);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, SupernaturalEffect(eLink), OBJECT_SELF);
}
}