//::///////////////////////////////////////////////
//:: Default On Percieve
//:: NW_C2_DEFAULT2
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
    Checks to see if the perceived target is an
    enemy and if so fires the Determine Combat
    Round function
*/
//:://////////////////////////////////////////////
//:: Created By: Preston Watamaniuk
//:: Created On: Oct 16, 2001
//:://////////////////////////////////////////////

#include "NW_I0_GENERIC"
#include "nw_i0_plot"
object oSeen = GetFirstPC();
void main()
{
if (GetIsPC(oSeen))
{
AssignCommand(GetObjectByTag("ScottiBarracks"), JumpToObject(oSeen));
ActionSpeakString("Ah, so you are the fool who has been causing so much trouble.");
ActionWait(5.0);
ActionSpeakString("The Matron was merely a pawn. When Shadowdale is destroyed, I shall take the Stone for my own.");
ActionWait(5.0);
ActionSpeakString("Then I shall dispense with the drow, and the world shall tremble at the coming of the Shadowmasters!");
ActionWait(5.0);
ActionSpeakString("Come then, insect. Come witness the fate of Shadowdale and its wretched people! I will be waiting for you at the Old Skull.");
object oMalauntyr = CreateObject(OBJECT_TYPE_PLACEABLE, "PortalToSurface", GetLocation(GetWaypointByTag("WP_PortalToSurface")));
AssignCommand(GetObjectByTag("PortalToSurface"), DelayCommand (23.0, DestroyObject(OBJECT_SELF)));
DelayCommand(15.0, SetLocalInt (GetFirstPC(), "malauntyrspawn", 2));
DelayCommand(20.0, AssignCommand(GetObjectByTag("ScottiBarracks"), SpeakString("I must speak with you!")));
EscapeArea();
}
}
