(after stating the facts). The defendant, after reducing the amount apparently due by payments, and making allowance for usurious charges, was entitled to recover a judgment. There was no allegation that the whole debt had been paid, or, in any view of the case, forfeited; and judgment was actually rendered for three hundred and sixty *129dollars, less the payments, ascertained by the jury to have been made, or for $282.75.
Section 528 of The Code provides that to either party for whom judgment shall be given, there shall be allowed, as costs, his actual disbursements, &c. It is clear that the defendant was entitled to recover costs. In Costin v. Baxter, 7 Ired., 111, the facts were, that the plaintiff declared in three counts, and entered a nolle prosequi, in two, but recovered on the remaining count. This Court held that the defendant was not entitled to recover for charges of witnesses summoned to meet the counts abandoned by plaintiff, upon a proper construction of the act of 1777. Rev. Stats., eh. 31, §79.
In Wooley v. Robinson, 7 Jones, 30, it was held that the party who prevailed and obtained judgment must recover costs, under Revised Code, ch. 3, § 75, unless otherwise directed by some particular statute. The older statutes, construed by the Court in those two cases, do not differ materially, so far as the question before us is involved, from section 528. In the absence of any special provision of law taking this case out of the general rule, it should have been followed in rendering judgment.
This is not an action brought to recover usurious interest under section 3836 of The Code. The action was, in fact, brought more than two years after the first payment made on the note, but the plaintiff declares, in his complaint, that-he is willing to pay the amount due, with legal interest at-eight per cent. The defendant moved the Court for judgment for the amount of the debt, after making the deduction, with legal interest, and we think that, in refusing this motion, his Honor erred also. If the defendant had invoked the aid of the Court by asking for a judgment for his debt, the-rule adopted by the Court below would have applied. But when the plaintiff asks the Court to interfere and grant an' *130injunction till the true amount can be ascertained, he is deemed subject to the rule, that one who seeks equitable relief must do equity. The Court will, therefore, compel him, as a condition upon which the aid of the Court is extended to him, to pay the amount that is justly due in good faith. Manning v. Elliott, 92 N. C., 48; Purnell v. Vaughan, 82 N. C., 134; Simonton v. Lanier, 71 N. C., 498.
In the two first of the cases cited, it was held that the condition irpon which relief is granted in cases of this kind, is the payment of what is really due. The plaintiff contracted to pay interest at eight per cent., and it was lawful to agree to that rate on the amount found to be really due ($360)-Moreover, in his complaint he tenders a judgment for the amount justly due and legal interest at eight per cent. That rate was allowed in Simonton v. Lanier by this Court, when, in fact, the defendant had agreed in the note to pay interest at the rate of one and a half per cent, per month. It is just and equitable that he should perform so much of the agreement, on his part, as was not in contravention of law.
The judgment must be modified in conformity with this opinion.
Error. Modified.