   void ClearAndJumpToObject(object oDestination);
void ClearAndJumpToObject(object oDestination)
{
    ClearAllActions();
    JumpToObject(oDestination);
}


void main()
{

    object oPC = GetFirstPC();
    object oTarget;
    object oTarget2;
    object oTarget3;
    object oTarget4;
    object oTarget5;


        oTarget = GetWaypointByTag("WP_Courtyard_Orc1");
        oTarget2 = GetWaypointByTag("WP_Courtyard_Orc2");
        oTarget3 = GetWaypointByTag("WP_Courtyard_Orc3");
        oTarget4 = GetWaypointByTag("WP_Courtyard_Orc4");
        oTarget5 = GetWaypointByTag("WP_Courtyard_Orc5");

        SetLocalInt(oPC, "gordrakk", 2);

        FadeToBlack(oPC);
        DelayCommand(1.0, AssignCommand(GetObjectByTag("DrakkgorOrc1"), ClearAndJumpToObject(oTarget)));
        DelayCommand(1.0, AssignCommand(GetObjectByTag("DrakkgorOrc2"), ClearAndJumpToObject(oTarget2)));
        DelayCommand(1.0, AssignCommand(GetObjectByTag("DrakkgorOrc3"), ClearAndJumpToObject(oTarget3)));
        DelayCommand(1.0, AssignCommand(GetObjectByTag("DrakkgorOgre"), ClearAndJumpToObject(oTarget4)));
        DelayCommand(1.0, AssignCommand(OBJECT_SELF, ClearAndJumpToObject(oTarget5)));

        DelayCommand(2.0, ChangeToStandardFaction(GetObjectByTag("DrakkgorOrc1"), STANDARD_FACTION_MERCHANT));
        DelayCommand(2.0, ChangeToStandardFaction(GetObjectByTag("DrakkgorOrc2"), STANDARD_FACTION_MERCHANT));
        DelayCommand(2.0, ChangeToStandardFaction(GetObjectByTag("DrakkgorOrc3"), STANDARD_FACTION_MERCHANT));
        DelayCommand(2.0, ChangeToStandardFaction(GetObjectByTag("DrakkgorOgre"), STANDARD_FACTION_MERCHANT));
        DelayCommand(2.0, ChangeToStandardFaction(OBJECT_SELF, STANDARD_FACTION_MERCHANT));
        DelayCommand(3.0, AssignCommand(oPC, FadeFromBlack(oPC)));

}


