21 lines
427 B
Plaintext
21 lines
427 B
Plaintext
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){
|
|
SetCommandable(TRUE, oPC);
|
|
}
|
|
oPC = GetNextPC();
|
|
|
|
|
|
}
|
|
DestroyObject(oTrespasser);
|
|
}
|
|
}
|