Now that progress has been made in repairing this, I've found a replacement cap that, after removing the existing cap and touting it around from any possible business that might have something to do with chimney cap knowledge(yeah this is a new one for me). What needs to be addressed now is what pipe to use for an extension, if figured correctly, I need 8" or more pipe to exceed the 36" distance from the highest structure within 10'(in this case the ridge) to fulfill local code. My question is: what type of pipe is needed, Type A, B ,single, double, triple wall, stainless or galvanized . Pardon the ignorance, but this is the first time coming across this.

I'll have more detailed photos to better explain this coming soon.
Thanks