From af4f521c2e1dd94d1dfc8f55d31edfee46272a06 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 22 May 2018 18:05:46 -0300 Subject: Divorce tax. Marriage taxes would be harder to implement. --- npc/functions/marriage.txt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/marriage.txt b/npc/functions/marriage.txt index 0bd9e9c59..7bcd69cc3 100644 --- a/npc/functions/marriage.txt +++ b/npc/functions/marriage.txt @@ -242,13 +242,14 @@ function script marriagedivorce { l("Nothing"))) { case 1: - speech lg("Are you sure?"); + speech lg("Are you sure? It costs 800 GP."); if (askyesno() == ASK_YES) { - if (divorce()) - { - speech l("You are now divorced!"), - l("Good look."); + if (Zeny < 800) + return; + if (divorce()) { + Zeny=Zeny-800; + speech l("You are now divorced!"); npctalk l("@@ divorced!", strcharinfo(0)); } else -- cgit v1.2.3-60-g2f50