if (open == 0 && (lock == 0 || lock == 3)) event_user(1)