LoD_PRC8/_module/nss/ppalley_spawn.nss

18 lines
525 B
Plaintext
Raw Normal View History

2023-09-21 21:20:34 -04:00
void main()
{
object oPC = GetLastUsedBy();
int iChoice = FALSE;
object oObject = GetFirstObjectInArea(OBJECT_SELF);
object oWaypoint = GetObjectByTag("WP_spawndone");
while (oObject != OBJECT_INVALID)
{
if (GetIsEncounterCreature(oObject))
iChoice = TRUE;
oObject = GetNextObjectInArea(OBJECT_SELF);
}
if (iChoice)
{SpeakString("Some spawns are left in the area ... you can't go on while they are alive !");}
else
{AssignCommand(oPC,ActionJumpToObject(oWaypoint));}
}