i'll answer the second question first.
database>system>2nd party member set to none(can be seen top left of the screen)
1st question.
the reasson why it keeps looping is cause first,you need a switch to turn it OFF or a teleport to another map
-put this event on the map.
-don't set it as a common event.
-make it on the map,set your event to auto start(so no switch needed to activate it)
-do all your code.
whenever you're done with it,just pur a switch operation(lets say switch [0004] ON.
create a second page(new page) with a precondition(top left of the screen)switch[0004] ON with no code in it.