block EndEvent 151 == 1	 

 	Window 1102383,YES,NO 	
		Window_NO
 		EndWindow 1102397 
 		Window_Yes Level < 40
	 	EndWindow 1102462
 		Window_YES Gold >= 1000
 		AddGold -1000
 		LeaveGroup
		Warp 0,40005,19,55
		EndWindow 1102396

 		Window_YES
 		EndWindow 3 	