81 lines
3.2 KiB
Plaintext
81 lines
3.2 KiB
Plaintext
#include "nw_i0_generic"
|
|
#include "nw_i0_2q4luskan"
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
object oTarget;
|
|
oTarget = GetObjectByTag("wp_cloak_01");
|
|
|
|
int nInt;
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(1.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), oTarget));
|
|
else DelayCommand(1.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), GetLocation(oTarget)));
|
|
|
|
oTarget = GetObjectByTag("wp_cloak_02");
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(2.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), oTarget));
|
|
else DelayCommand(2.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), GetLocation(oTarget)));
|
|
|
|
oTarget = GetObjectByTag("wp_cloak_03");
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(3.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), oTarget));
|
|
else DelayCommand(3.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), GetLocation(oTarget)));
|
|
|
|
oTarget = GetObjectByTag("wp_cloak_04");
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(4.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), oTarget));
|
|
else DelayCommand(4.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), GetLocation(oTarget)));
|
|
|
|
oTarget = GetObjectByTag("wp_cloak_05");
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(5.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), oTarget));
|
|
else DelayCommand(5.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), GetLocation(oTarget)));
|
|
|
|
oTarget = GetObjectByTag("wp_cloak_06");
|
|
nInt = GetObjectType(oTarget);
|
|
if (nInt != OBJECT_TYPE_WAYPOINT) DelayCommand(6.0,ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), oTarget));
|
|
else DelayCommand(6.0,ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD), GetLocation(oTarget)));
|
|
|
|
|
|
location lTarget;
|
|
oTarget = GetWaypointByTag("wp_cloak_07");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
DelayCommand(10.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "cloaklich", lTarget));
|
|
|
|
effect eEffect;
|
|
eEffect = EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD);
|
|
|
|
DelayCommand(10.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, lTarget));
|
|
|
|
oTarget = GetWaypointByTag("wp_cloak_08");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
DelayCommand(12.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "cloaklich", lTarget));
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD);
|
|
|
|
DelayCommand(12.0, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, lTarget));
|
|
|
|
|
|
oTarget = GetWaypointByTag("wp_cloak_9");
|
|
|
|
lTarget = GetLocation(oTarget);
|
|
|
|
DelayCommand(14.5, CreateObjectVoid(OBJECT_TYPE_CREATURE, "cloaklich", lTarget));
|
|
|
|
eEffect = EffectVisualEffect(VFX_FNF_SUMMON_EPIC_UNDEAD);
|
|
|
|
DelayCommand(14.5, ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eEffect, lTarget));
|
|
|
|
}
|
|
|
|
|
|
|