I think that the key point you have made here is: "To do the right things at the right time"
That in my personal experience had the most important impact on my life. It is easy to say, but so not easy to do. Sometimes I didn't know what the right thing was, and sometimes I knew, but didn't do it. And sometimes I didn't know but did the right thing at the right time. Like you said the luck was involved...