If you tie a rope around your neck and below your knees to prevent your legs to be straight. As long as you cannot straight your legs when you sleep, you will never have wet dream.

Unfortunately...