3.5 and 5e have an open license. If tot read it and follow those rules you should be play. Basically forgotten realms and lore is off limits. Spell and skill names etc should be open game I believe. You just hand to read it yourself and put required legal jargon with anything you publish.