35 lines
841 B
Plaintext
35 lines
841 B
Plaintext
void main()
|
|
{
|
|
object oPC = GetEnteringObject();
|
|
object creature;
|
|
|
|
int neutral = GetLocalInt(OBJECT_SELF, "neutral");
|
|
|
|
if (neutral)
|
|
{
|
|
creature = GetFirstObjectInArea(OBJECT_SELF);
|
|
while (creature != OBJECT_INVALID)
|
|
{
|
|
if (!GetIsPC(creature))
|
|
{
|
|
SetIsTemporaryNeutral(creature, oPC);
|
|
SetIsTemporaryNeutral(oPC, creature);
|
|
}
|
|
creature = GetNextObjectInArea(OBJECT_SELF);
|
|
}
|
|
}
|
|
/*
|
|
if (!neutral)
|
|
creature = GetFirstObjectInArea(OBJECT_SELF);
|
|
while (creature != OBJECT_INVALID)
|
|
{
|
|
if (!GetIsPC(creature))
|
|
{
|
|
ClearPersonalReputation(creature, oPC);
|
|
ClearPersonalReputation(oPC, creature);
|
|
}
|
|
creature = GetNextObjectInArea(OBJECT_SELF);
|
|
}
|
|
*/
|
|
}
|