Initial Upload
Initial Upload
This commit is contained in:
17
_module/nss/ppalley_spawn.nss
Normal file
17
_module/nss/ppalley_spawn.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
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));}
|
||||
}
|
||||
Reference in New Issue
Block a user