summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-01 12:08:48 -0700
committerJared Adams <jaxad0127@gmail.com>2009-03-01 12:08:48 -0700
commit9480d6bb5c30feb915407c23bc9daee91cbc3381 (patch)
tree557f58221f73de1f3da9949d310e5a763d5916e7 /npc
parente9e7c9afa201613115ed23fba69b94b002cd9bff (diff)
downloadserverdata-9480d6bb5c30feb915407c23bc9daee91cbc3381.tar.gz
serverdata-9480d6bb5c30feb915407c23bc9daee91cbc3381.tar.bz2
serverdata-9480d6bb5c30feb915407c23bc9daee91cbc3381.tar.xz
serverdata-9480d6bb5c30feb915407c23bc9daee91cbc3381.zip
Only take GP when divorce was successful
Diffstat (limited to 'npc')
-rw-r--r--npc/014-1_Woodland/wedding-officiator.txt14
1 files changed, 12 insertions, 2 deletions
diff --git a/npc/014-1_Woodland/wedding-officiator.txt b/npc/014-1_Woodland/wedding-officiator.txt
index 662aafc6..6b7ace7e 100644
--- a/npc/014-1_Woodland/wedding-officiator.txt
+++ b/npc/014-1_Woodland/wedding-officiator.txt
@@ -236,14 +236,24 @@ L_do_divorce:
if (zeny < @divorce_cost)
goto L_divorce_nomoney;
+ if (divorce()) goto L_DidDivorce;
+
+ mes "[Wedding Officiator]";
+ mes "The officiator searches through her records for your partner.";
+ mes "\"I can't find your partner's record, you'll have to come back later.\"";
+ next;
+
+ mes "[Server]";
+ mes "You can only divorce if both you and your partner are logged in at the same time.";
+ close;
+
+L_DidDivorce:
set zeny, zeny - @divorce_cost;
- divorce;
mes "[Wedding Officiator]";
mes "After collecting her fee, Wendy licks her quill and writes down some notes.";
mes "Then she sighs heavily.";
mes "\"You are divorced now. Thank you for your business.\"";
- next;
close;
L_No_Room_For_Rings: