

void main()
{
    // Get the creature who triggered this event.
    object oPC = GetEnteringObject();

    // Only fire for (real) PCs.
    if ( !GetIsPC(oPC)  ||  GetIsDMPossessed(oPC) )
        return;

    // Abort if the PC is not exactly at stage 2 of journal quest "JezzTheLame".
    if ( GetLocalInt(oPC, "NW_JOURNAL_ENTRYDefeatMalauntyr")!= 1 )
        return;

    // Abort if the PC is not before stage 1 of journal quest "OneForTheRoad".
    if ( GetLocalInt(OBJECT_SELF, "fired") == 1 )
        return;

    // Update the party's journals.
    object oArea = OBJECT_SELF;
    SetFogColor(FOG_TYPE_ALL, FOG_COLOR_RED, oArea);
    SetSkyBox(SKYBOX_NONE, oArea);
    MusicBattlePlay(oArea);
    AmbientSoundChangeDay(oArea, AMBIENT_SOUND_COMBAT_OUTSIDE_1);
    AmbientSoundChangeNight(oArea, AMBIENT_SOUND_COMBAT_OUTSIDE_1);
    AmbientSoundSetDayVolume(oArea, 75);
    AmbientSoundSetNightVolume(oArea, 75);
    AmbientSoundPlay(oArea);
    AmbientSoundPlay(oArea);
    SetLocked(GetObjectByTag("ShadowdaleTowntoOldSkullInn"), TRUE);
    SetLocalInt(OBJECT_SELF, "fired", 1);
}

