Lankhmar_PRC8/_module/nss/ent_spn_nrss.nss

39 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2025-04-03 12:54:47 -04:00
#include "nw_i0_2q4luskan"
void main()
{
object oTarget;
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Only fire once.
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
// Spawn some critters.
oTarget = GetWaypointByTag("WP_SPn_SMngls");
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "seamingol", GetLocation(oTarget)));
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "seamingol", GetLocation(oTarget)));
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "seamingol", GetLocation(oTarget)));
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "seamingol", GetLocation(oTarget)));
DelayCommand(2.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "seamingol", GetLocation(oTarget)));
DelayCommand(1.0, CreateObjectVoid(OBJECT_TYPE_CREATURE, "noriss1", GetLocation(oPC)));
}