//::///////////////////////////////////////////////
//:: Custom User Defined Event
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*

*/
//:://////////////////////////////////////////////
//:: Created By:
//:: Created On:
//:://////////////////////////////////////////////
  #include "NW_I0_GENERIC"
void main()
{
	ExecuteScript("prc_npc_userdef", OBJECT_SELF);
	
    int nUser = GetUserDefinedEventNumber();



    if(nUser == 1001) //HEARTBEAT
    {

    }
    else if(nUser == 1002) // PERCEIVE
    {


      object oObject=GetLastPerceived();



    if (GetIsObjectValid(oObject)&&GetIsPC(oObject))

    {
    SpeakString("The keysss! Mussst find Vlasssik keysss!");
     WalkWayPoints(TRUE,0.0);
    }
    }
    else if(nUser == 1003) // END OF COMBAT
    {

    }
    else if(nUser == 1004) // ON DIALOGUE
    {
                SpeakString("No time for talkss! Mussst find keysss!");

      WalkWayPoints(TRUE,0.0);
    }
    else if(nUser == 1005) // ATTACKED
    {
     SpeakString("No fight me! Me busy! Mussst find keysss!");
      WalkWayPoints(TRUE,0.0);
    }
    else if(nUser == 1006) // DAMAGED
    {

    }
    else if(nUser == 1007) // DEATH
    {

    }
    else if(nUser == 1008) // DISTURBED
    {
       WalkWayPoints(TRUE,0.0);
    }

}