void main()
{
   //if (GetLocked(OBJECT_SELF) == FALSE && GetLocalInt(OBJECT_SELF, "UsedOnce") == FALSE) {
   if (!GetLocalInt(OBJECT_SELF, "SpawnedBoss") == TRUE) {
        object oPC = GetLastUsedBy();
        effect eSpawn = EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_NATURE);
        location lKeeper = GetLocation(GetWaypointByTag("WP_SEALKEEPER"));

        AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_GET_MID, 0.5, 0.5));
        ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE, 0.5, 0.5);
        // DelayCommand(1.5f, ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE, 0.5, 0.5));
        ApplyEffectAtLocation(DURATION_TYPE_INSTANT, eSpawn, lKeeper);
        object oKeeper = CreateObject(OBJECT_TYPE_CREATURE, "grandsealkeeper", lKeeper, TRUE);
        DelayCommand(1.0f, AssignCommand(oKeeper, ActionSpeakString("You will not get the last seal!")));
        SetLocalInt(OBJECT_SELF, "SpawnedBoss", TRUE);
    }

    else { // (GetLocalInt(OBJECT_SELF, "SpawnedBoss") == TRUE) {
        PlaySound("as_dr_locked3");
        ActionSpeakString("It appears as though the battle with the Grand Seal Keeper has deactivated this lever.");
    }
}
