#include "hf_in_worldmap"
#include "x3_inc_horse"
#include "x0_i0_position"
void main()
{
    // Set the variables
    object oArea = GetObjectByTag("ShadowdaleTown");


    UnlockMapLocation("TheOldS");

object oTarget;
    object oSpawn;

    // Get the PC who is in this conversation.
    object oPC = GetPCSpeaker();

    // Spawn some placeables.

    oTarget = GetWaypointByTag("WP_Firespawn1");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Firespawn2");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Firespawn3");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Firespawn4");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Firespawn5");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Firespawn6");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Firespawn7");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Firespawn8");
    oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "plc_flamemedium", GetLocation(oTarget));

    oTarget = GetWaypointByTag("WP_Toman_Dead");
    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "deadtoman", GetLocation(oTarget));

    SoundObjectPlay (GetObjectByTag("ShadowdaleFire"));
    SoundObjectStop (GetObjectByTag("Shadowdale1"));
    SoundObjectStop (GetObjectByTag("Shadowdale2"));
    SoundObjectStop (GetObjectByTag("Shadowdale3"));
    SoundObjectStop (GetObjectByTag("Shadowdale4"));

    DestroyObject(GetObjectByTag("FlorinDungeon"));
    DestroyObject(GetObjectByTag("LanserilDungeon"));
    DestroyObject(GetObjectByTag("RathanDungeon"));
    DestroyObject(GetObjectByTag("TormDungeon"));
    DestroyObject(GetObjectByTag("JhessailDungeon"));
    DestroyObject(GetObjectByTag("MerithDungeon"));
    DestroyObject(GetObjectByTag("Beregon"));
    DestroyObject(GetObjectByTag("Erresea"));
    DestroyObject(GetObjectByTag("OfficerToman"));
    DestroyObject(GetObjectByTag("TowerArcher1"));
    DestroyObject(GetObjectByTag("TowerArcherFemale1"));
    DestroyObject(GetObjectByTag("TowerGuard1"));
    DestroyObject(GetObjectByTag("TowerGuardFemale1"));
    DestroyObject(GetObjectByTag("ShadowNPC1"));
    DestroyObject(GetObjectByTag("ShadowNPC1"));
    DestroyObject(GetObjectByTag("ShadowNPC2"));
    DestroyObject(GetObjectByTag("ShadowNPC3"));
    DestroyObject(GetObjectByTag("ShadowNPC4"));
    DestroyObject(GetObjectByTag("ShadowNPC5"));
    DestroyObject(GetObjectByTag("ShadowNPC6"));
    DestroyObject(GetObjectByTag("ShadowNPC7"));
    DestroyObject(GetObjectByTag("ShadowNPC8"));
    DestroyObject(GetObjectByTag("ShadowNPC9"));
    DestroyObject(GetObjectByTag("ShadowNPC10"));
    DestroyObject(GetObjectByTag("ShadowNPC11"));
    DestroyObject(GetObjectByTag("ShadowNPC12"));
    DestroyObject(GetObjectByTag("ShadowNPC13"));
    DestroyObject(GetObjectByTag("ShadowNPC14"));
    DestroyObject(GetObjectByTag("ShadowNPC15"));
    DestroyObject(GetObjectByTag("ShadowNPC16"));
    DestroyObject(GetObjectByTag("ShadowNPC17"));
    DestroyObject(GetObjectByTag("ShadowNPC18"));
    DestroyObject(GetObjectByTag("ShadowNPC19"));
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), GetObjectByTag("Bardag"));
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), GetObjectByTag("Bardag"));
    ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectDeath(), GetObjectByTag("Bardag"));
}

