Your dreams were mostly on the vital-physical plane. There if there is any physical contact of a sexual or other kind that acts strongly on the sexual centre or on a sensory contact — it may even without raising any lust produce an emission by a mechanical blind and unconscious action of the purely physical (not even vital-physical) kind. It is only when the sex-centre has become strong that this becomes impossible.
In order that the dream emissions may diminish or cease, it is necessary first to have complete Brahmacharya, not only to banish sexuality from the bodily action, but also sexual impulses from the vital and body consciousness and sexual thoughts and imaginations from the mind and speech and not talk about sexual things. The dreams arise from the subconscient where all impressions and instincts are stored up and any of these things stimulates the subconscient and increases its store which can well up in dreams. If one makes the waking consciousness entirely pure, then by putting a will or force on the subconscient (especially before going to sleep) one can after a time eliminate the sex-dreams and emissions.
Sex is only one of the movements of the physical centre. Naturally, if the sex is active (instead of giving place to Beauty and Ananda) and if the lower movements are active, it forms an obstacle to the establishment of the higher consciousness. But the higher can descend, if there is at all an opening, even before the lower movements have definitely gone — it has then to complete the work of displacing them.
These returns or attacks must be regarded not as parts of oneself, but as invasions — and rejected without allowing any depression or discouragement. If the mind does not sanction them, if the vital refuses to welcome them, if the physical remains steady and refuses to obey the physical urge, then the recurrence of the thought, the vital impulse, the physical feeling will begin to lose its last holds and finally they will be too feeble to cause any trouble.