Alangara_PRC8/_module/nss/towerbeastspawn.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

36 lines
1.0 KiB
Plaintext

// *** Tarashon special spawn boost for quest creatures *** //
void main()
{
ExecuteScript("nw_c2_default2", OBJECT_SELF);
object oPC = GetLastPerceived();
if (!GetIsPC(oPC)) return;
if (!GetLastPerceptionSeen()) return;
object oTarget;
oTarget = OBJECT_SELF;
int nInt;
nInt = GetObjectType(oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_DUR_AURA_RED_LIGHT), oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectTemporaryHitpoints(GetMaxHitPoints(oTarget)*4), oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectAbilityIncrease(ABILITY_STRENGTH, 12), oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectACIncrease(4), oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectConcealment(20), oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectHaste(), oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectImmunity(IMMUNITY_TYPE_MOVEMENT_SPEED_DECREASE), oTarget);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectImmunity(IMMUNITY_TYPE_SLOW), oTarget);
}