Rockhopper's hat and beard aren't items you can obtain through normal play—getting them would require hacking the game, which is against the rules and can get your account banned. If you're looking for legitimate ways to earn coins instead, it's best to stick to safe, allowed methods so you don't risk your account.