//::///////////////////////////////////////////////
//:: User Defined Event for Caer Camlin Nightwatch
//:: user_nightwatch.nss
//:://////////////////////////////////////////////
/*
  This makes a nightly patrolman close doors and hail/interrogate PCs
*/
//:://////////////////////////////////////////////
//:: Created By: Ralf Schemmann
//:: Created On: 23rd July 2002
//:://////////////////////////////////////////////
#include "NW_I0_GENERIC"
void main()
{
    int nUser = GetUserDefinedEventNumber();
    int nTeam;

    if(nUser == 1002) // PERCEIVE
    {
       //get the last object seen
       object oSeen = GetLastPerceived();
       //if object was a PC, hail it
      if (GetIsPC(oSeen))
      {
        nTeam = GetLocalInt(oSeen, "m_nTeam");
          if (nTeam == 2) {

             AdjustReputation(oSeen, OBJECT_SELF, -100);

          }


      }

     }

    else if(nUser == 1003) // END OF COMBAT
    {
    }
    else if(nUser == 1004) // ON DIALOGUE
    {
    }
    else if(nUser == 1005) // ATTACKED
    {
    }
    else if(nUser == 1006) // DAMAGED
    {
    }
    else if(nUser == 1007) // DEATH
    {
    }
    else if(nUser == 1008) // DISTURBED
    {
    }
}

