The cost of having an attorney write a party wall agreement for a side-by-side duplex varies depending on several factors, including the complexity of the agreement and the level of negotiation required with the other party.
Unfortunately, without more information I would be guessing as to the cost in your case, or I would have to provide such a broad range that it would not be useful to you. During a case assessment our attorneys can provide you with a much better understanding of costs. You can then decide if you would like to move forward with representation.