PoA_PRC8/module/nss/asimathasexit.nss
Jaysyn904 128e7e59a4 Initial upload
Initial upload
2022-10-07 14:20:31 -04:00

25 lines
532 B
Plaintext

//This script goes in an OnEnter event to kill
//encounter NPCs that don't belong
void main()
{
object oTrespasser = GetEnteringObject();
if (GetIsEncounterCreature(oTrespasser))
{
object area = GetArea(oTrespasser);
object oPC = GetFirstPC();
object area2 = GetArea(oPC);
while (oPC != OBJECT_INVALID){
if (area == area2){
DelayCommand ( 1.0, SetCommandable(TRUE, oPC));
}
oPC = GetNextPC();
}
DestroyObject(oTrespasser);
}
}