Ending a Event

I have several questions, My first one is how do I end an autorun command such as an auto run cut scene when you first enter a map. Second How do you end a Chest so you can't just farm a chest a Million times get stuff. Those are all Thanks for taking time to help
Use selfswitches A, B, C, D depending on the one you use last, same count for chests.
2nd page or last page of that event = blank with teh selfswitch A, B, C, D ON.

right click -> create event -> chest has this setup already.
Thanks 😤

Original thread: https://forums.rpgmakerweb.com/threads/ending-a-event.130874/