The specific explanation is as follows:
1, China's civil law stipulates that every citizen has the right to dispose of his own life appropriately. This kind of ceremony mainly refers to being brave and giving oneself up for others, etc., all of which are recognized by law. However, a situation like Xiao Wang's hiring someone to commit suicide, such as committing suicide in person, is beyond the scope of appropriate punishment, so it is a violation of the right to life and an illegal act.
2. As far as the "agreement" is concerned, it only violates the conditions for the establishment of effective civil acts in civil law: it must not violate the law and social morality. So the "agreement" is invalid. It does not affect whether Xiao Zhang will be investigated for criminal responsibility.
3. Killing people, regardless of means, only pays attention to the results of killing and not killing. Knowing that the other person has a heart attack, scaring him to death with a horror mask is intentional homicide. But for this kind of cases, the actual situation is very few, and the theoretical circle has always been controversial, but now the crime of intentional homicide is generally punished in practice.
It is certain to solve the problem and pursue criminal responsibility. As for sentencing, it is a judicial difference between local courts, but generally it will not be sentenced to death or life imprisonment.