There are essentially two ways to obtain a godsword. You can buy one from other players or through the Grand Exchange, or you can take on the God Wars Dungeon and work for it directly. Either path will get you there, depending on whether you prefer to spend gold or earn it in battle.