2022-10-07 14:20:31 -04:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
object oArea = GetArea(OBJECT_SELF);
|
2025-05-05 21:05:20 -04:00
|
|
|
|
|
|
|
// If the entering creature is an undead and not a player
|
|
|
|
if (GetRacialType(OBJECT_SELF) == RACIAL_TYPE_UNDEAD && !GetIsPC(OBJECT_SELF))
|
|
|
|
{
|
|
|
|
effect eUltravision = EffectUltravision();
|
|
|
|
eUltravision = SupernaturalEffect(eUltravision);
|
|
|
|
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eUltravision, OBJECT_SELF);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Set area parameters
|
|
|
|
SetLocalInt(oArea, "nMonChance", 30); // 30% chance of rest being interrupted
|
|
|
|
SetLocalString(oArea, "sMonster", "nw_skelwarr01"); // Monster blueprint or "CUSTOM"
|
|
|
|
}
|