<P> Despite the piper's success, the mayor reneged on his promise and refused to pay him the full sum (reputedly reduced to a sum of 50 guilders) even going so far as to blame the piper for bringing the rats himself in an extortion attempt . Enraged, the piper stormed out of the town, vowing to return later to take revenge . On Saint John and Paul's day, while the adults were in church, the piper returned dressed in green like a hunter playing his pipe . In so doing, he attracted the town's children . A hundred and thirty children followed him out of town and into a cave and were never seen again . Depending on the version, at most three children remained behind: one was lame and could not follow quickly enough, the second was deaf and therefore could not hear the music, and the last was blind and unable to see where he was going . These three informed the villagers of what had happened when they came out from church . </P> <P> Other versions relate that the Pied Piper led the children to the top of Koppelberg Hill, where he took them to a beautiful land, or a place called Koppenberg Mountain, or Transylvania, or that he made them walk into the Weser as he did with the rats, and they all drowned . Some versions state that the Piper returned the children after payment, or that he returned the children after the villagers paid several times the original amount of gold . </P> <P> The earliest mention of the story seems to have been on a stained - glass window placed in the Church of Hamelin c. 1300 . The window was described in several accounts between the 14th and 17th centuries . It was destroyed in 1660 . Based on the surviving descriptions, a modern reconstruction of the window has been created by historian Hans Dobbertin . It features the colorful figure of the Pied Piper and several figures of children dressed in white . </P> <P> This window is generally considered to have been created in memory of a tragic historical event for the town . Also, Hamelin town records start with this event . The earliest written record is from the town chronicles in an entry from 1384 which states: "It is 100 years since our children left ." </P>

When was the pied piper of hamelin written
find me the text answering this question