63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
|
|
||
|
#include "nw_i0_generic"
|
||
|
|
||
|
void main()
|
||
|
|
||
|
{
|
||
|
|
||
|
object oSpawn;
|
||
|
location lTarget;
|
||
|
object oTarget;
|
||
|
int nInt;
|
||
|
|
||
|
object oPC = GetPCSpeaker();
|
||
|
|
||
|
oTarget = GetObjectByTag("mermaidoor2");
|
||
|
AssignCommand(oTarget, ActionOpenDoor(oTarget));
|
||
|
|
||
|
oTarget = GetObjectByTag("mermaidoor");
|
||
|
AssignCommand(oTarget, ActionCloseDoor(oTarget));
|
||
|
|
||
|
oTarget = GetObjectByTag("Paylinn");
|
||
|
nInt = GetObjectType(oTarget);
|
||
|
|
||
|
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SMOKE_PUFF), oTarget);
|
||
|
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SMOKE_PUFF), GetLocation(oTarget));
|
||
|
|
||
|
DestroyObject(oTarget, 3.0);
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_SPn_Chld_Snk");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "izzterl", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_SPn_Chld_Snk");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lakkonon", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_SPn_Chld_Snk");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "maxrinnen", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
oTarget = GetWaypointByTag("WP_SPn_Chld_Snk");
|
||
|
lTarget = GetLocation(oTarget);
|
||
|
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "gorsomm", lTarget);
|
||
|
oTarget = oSpawn;
|
||
|
SetIsTemporaryEnemy(oPC, oTarget);
|
||
|
AssignCommand(oTarget, ActionAttack(oPC));
|
||
|
AssignCommand(oTarget, DetermineCombatRound(oPC));
|
||
|
|
||
|
}
|
||
|
|