I need a sword

How to earn a legendary sword? Help me pls !
Yes, how?

The equipment is either dropped during gameplay or it can bought in the shop. Hope this helps. Thank you.