The key is that you admit being inspired by the story and use the same name or stting. If for example you wrote a story about Harry Potter or James Bond then there are claims for royalites. However if your wrote about a teenage sorecer and a secret agent then you are not. You really need to consult with copyright attorney given that you have posted that your story is the derivative work from an already posted story. Sorry