From 9480d6bb5c30feb915407c23bc9daee91cbc3381 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 1 Mar 2009 12:08:48 -0700 Subject: Only take GP when divorce was successful --- npc/014-1_Woodland/wedding-officiator.txt | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'npc') 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: -- cgit v1.2.3-60-g2f50