Just a suggestion, but at the end of the profile you can add another If condition at the end like this:
		<If Condition="(!HasItem=(32768)"> <!-- Item not obtained -->
			<CustomBehavior File="UserDialog" AllowBotStop="True" SoundCue="Exclamation" SoundCueInterval="1" Text="Dungeon...