diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-05-22 18:05:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-05-22 18:05:46 -0300 |
commit | af4f521c2e1dd94d1dfc8f55d31edfee46272a06 (patch) | |
tree | 9b61bedb7c7c84d3c62ca688705d06ed785f9084 /npc/functions/marriage.txt | |
parent | 3454f7aaf0fe59a2459af838f0f89d355c6a25e9 (diff) | |
download | serverdata-af4f521c2e1dd94d1dfc8f55d31edfee46272a06.tar.gz serverdata-af4f521c2e1dd94d1dfc8f55d31edfee46272a06.tar.bz2 serverdata-af4f521c2e1dd94d1dfc8f55d31edfee46272a06.tar.xz serverdata-af4f521c2e1dd94d1dfc8f55d31edfee46272a06.zip |
Divorce tax. Marriage taxes would be harder to implement.
Diffstat (limited to 'npc/functions/marriage.txt')
-rw-r--r-- | npc/functions/marriage.txt | 11 |
1 files changed, 6 insertions, 5 deletions
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 |