Looking for a tutorial on making a mining skill

Hi everyone Can anyone point me in the direaction of a tutorial that show you how to build a skill system what i’m looking for is something like you see in runescape where you mine rocks and get xp and rocks for doing it and can level your mining skill. thanks for any advice in advance.