Lankhmar_PRC8/_module/nss/dst_spn_lensk2.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

23 lines
540 B
Plaintext

void main()
{
object oTarget;
object oSpawn;
// Get the creature who triggered this event.
object oPC = GetLastKiller();
// Only fire once.
if ( GetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(GetModule(), "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
// Spawn "lenszk2".
oTarget = GetWaypointByTag("WP_SPn_Lenszk2");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lenszk2", GetLocation(oTarget));
AssignCommand(oSpawn, ActionStartConversation(oPC));
}