Were I a magician, the strongest magic potions would have been the five moral precepts*
Coming back to the good company part ...it does start from good moral precepts and grows with time and metta. The Sangha renders a lot of intangible substrates that do become tangible effectively.
All I say here is get rid of bad company, all you will be left with will be good company, even if you are left with nothing!
Good company is people who can speak the truth, who are not greedy, who are on the path of dhamma! These people/merit will be your guide till you reach the final goal, even as you see noone around you, this will intervene and interfere in your dreams, in your life, in incidents and leave you drenched with love, at times unexpectedly ... without leaving a trace behind
:)