summaryrefslogtreecommitdiff
path: root/npc/functions/marriage.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-22 18:05:46 -0300
committerJesusaves <cpntb1@ymail.com>2018-05-22 18:05:46 -0300
commitaf4f521c2e1dd94d1dfc8f55d31edfee46272a06 (patch)
tree9b61bedb7c7c84d3c62ca688705d06ed785f9084 /npc/functions/marriage.txt
parent3454f7aaf0fe59a2459af838f0f89d355c6a25e9 (diff)
downloadserverdata-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.txt11
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