Changed folder name.
Changed folder name.
This commit is contained in:
24
_module/nss/asimathasexit.nss
Normal file
24
_module/nss/asimathasexit.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
|
||||
//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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user