#include "NW_I0_GENERIC"
void main()
{
    object tv_1 = GetObjectByTag("WP_KEEP_EAST_SG");
    location lDest1 = GetLocation(tv_1);
    object oFirstMember = GetEnteringObject();
    object oPartyMember = GetFirstFactionMember(oFirstMember, TRUE);
    object oGuard = GetObjectByTag("SPECTRALGUARDE");

    if(!(GetLocalInt(OBJECT_SELF, "fired") == 1) && GetIsPC(oFirstMember))
    {

    while (GetIsObjectValid (oPartyMember))
    {
    AdjustReputation(oPartyMember,oGuard,-100);
    oPartyMember = GetNextFactionMember (oFirstMember, TRUE);
    }

    SetLocalInt(OBJECT_SELF, "fired", 1);
    AdjustReputation(oFirstMember,oGuard,-100);
    AssignCommand(oGuard, ActionAttack(oFirstMember));
    AssignCommand(oGuard, DetermineCombatRound(oFirstMember));
    CreateObject(OBJECT_TYPE_CREATURE,"spectralguarde",lDest1,FALSE);

}
}
