Pay is based on the business value you deliver. That's more true the higher up the pay scale you go. No one is paid a lot just for knowing a language or working at the right company. If you want a big paycheck concentrate on identifying and solving business problems.
If you are talking about getting rich from equity you have to get lucky as a founder or early employee of a company that makes it big. If that was easy we'd all be rich.