The adjective comes from predicative use of the noun, while the adverb is from its interjective use, e.g.: Scheiße, bin ich besoffen! → Er ist scheißbesoffen. (“He's completely plastered.”)
Practice speaking and memorizing "scheiße" and many other words and sentences in German.