Browse Source

fixed bug in divorce, fixed many bugs in new Jawaii

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10771 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lupus 18 years ago
parent
commit
cac4afb74f
3 changed files with 64 additions and 78 deletions
  1. 2 0
      npc/Changelog.txt
  2. 38 54
      npc/cities/jawaii.txt
  3. 24 24
      npc/other/divorce.txt

+ 2 - 0
npc/Changelog.txt

@@ -1,6 +1,8 @@
 Date		Added
 Date		Added
 ======
 ======
 2007/06/14
 2007/06/14
+	* Fixed many bugs in Jawaii [Lupus]
+	* Fixed bug in divorce.txt [Lupus]
 	* Izlude: Made Red/Cebalis as a single NPC + duplicate [Lupus]
 	* Izlude: Made Red/Cebalis as a single NPC + duplicate [Lupus]
 	* Red. 10769 Fixed central Kafra position (146,86 -> 146,98) [L0ne_W0lf]
 	* Red. 10769 Fixed central Kafra position (146,86 -> 146,98) [L0ne_W0lf]
 	* Rev. 10767 Fixed a missing ")" in the new wedding script. [L0ne_W0lf]
 	* Rev. 10767 Fixed a missing ")" in the new wedding script. [L0ne_W0lf]

+ 38 - 54
npc/cities/jawaii.txt

@@ -5,7 +5,7 @@
 //= DNett123 (1.1 - 1.5)
 //= DNett123 (1.1 - 1.5)
 //= L0ne_w0lf
 //= L0ne_w0lf
 //===== Current Version: =====================================
 //===== Current Version: =====================================
-//= 3.0
+//= 3.1
 //===== Compatible With: =====================================
 //===== Compatible With: =====================================
 //= eAthena SVN
 //= eAthena SVN
 //===== Description: =========================================
 //===== Description: =========================================
@@ -26,8 +26,9 @@
 //= 2.01 fixed missing @ at randomdrink, thanks to theultramage [Lupus]
 //= 2.01 fixed missing @ at randomdrink, thanks to theultramage [Lupus]
 //= 2.02 Fixed Classic Suite NPC warping directly above a warp [Evera]
 //= 2.02 Fixed Classic Suite NPC warping directly above a warp [Evera]
 //= 3.0 Rescripted to Aegis 10.3 standard. Contains all Jawaii-related NPCs. [L0ne_W0lf]
 //= 3.0 Rescripted to Aegis 10.3 standard. Contains all Jawaii-related NPCs. [L0ne_W0lf]
+//= 3.1 Fixed bugs with getpartnerid() (it never returns 1), fixed some conditons,
+//=		replaced getpartnerid() with ispartneron() at some tri-forks [Lupus]
 //============================================================
 //============================================================
-
 // Jawaii
 // Jawaii
 //============================================================
 //============================================================
 jawaii,239,112,7	script	Mariner#toizu	100,{
 jawaii,239,112,7	script	Mariner#toizu	100,{
@@ -225,8 +226,8 @@ jawaii,141,200,3	script	Employee#sroom	798,{
 	mes "^333333Beat me to death...^000000";
 	mes "^333333Beat me to death...^000000";
 	next;
 	next;
 	if (select("Use.:Cancel.") == 1) {
 	if (select("Use.:Cancel.") == 1) {
+		mes "[Alowa]";
 		if (zeny > 999) {
 		if (zeny > 999) {
-			mes "[Alowa]";
 			mes "T-Thank you ssso much!";
 			mes "T-Thank you ssso much!";
 			mes "L-Let open the room door";
 			mes "L-Let open the room door";
 			mes "ffffor you. Thank y-you.";
 			mes "ffffor you. Thank y-you.";
@@ -236,7 +237,6 @@ jawaii,141,200,3	script	Employee#sroom	798,{
 			warp "jawaii_in",116,64;
 			warp "jawaii_in",116,64;
 			end;
 			end;
 		}
 		}
-		mes "[Alowa]";
 		mes "Oh no! Oh no no no no no.";
 		mes "Oh no! Oh no no no no no.";
 		mes "Th-This isn't enough money?";
 		mes "Th-This isn't enough money?";
 		mes "I-I'm ssssorry, but my b-boss w-will beat me if I l-let you";
 		mes "I-I'm ssssorry, but my b-boss w-will beat me if I l-let you";
@@ -273,8 +273,8 @@ jawaii,108,199,5	script	Employee#antroom	74,{
 	mes "I will guide you there.";
 	mes "I will guide you there.";
 	next;
 	next;
 	if (select("Use.:Cancel.") == 1) {
 	if (select("Use.:Cancel.") == 1) {
+		mes "[Pine Oran]";
 		if (zeny > 999) {
 		if (zeny > 999) {
-			mes "[Pine Oran]";
 			mes "Thank you";
 			mes "Thank you";
 			mes "for using";
 			mes "for using";
 			mes "our services.";
 			mes "our services.";
@@ -286,7 +286,6 @@ jawaii,108,199,5	script	Employee#antroom	74,{
 			warp "jawaii_in",129,110;
 			warp "jawaii_in",129,110;
 			end;
 			end;
 		}
 		}
-		mes "[Pine Oran]";
 		mes "I am sorry, but you don't seem to have enough money. If it's alright, why don't you check your current funds and see what you can do";
 		mes "I am sorry, but you don't seem to have enough money. If it's alright, why don't you check your current funds and see what you can do";
 		mes "about this situation?";
 		mes "about this situation?";
 		close;
 		close;
@@ -309,8 +308,8 @@ jawaii,107,189,5	script	Employee#horoom	93,{
 	mes "So you wanna go?";
 	mes "So you wanna go?";
 	next;
 	next;
 	if (select("Use.:Cancel.") == 1) {
 	if (select("Use.:Cancel.") == 1) {
+		mes "[Sharkie Rania]";
 		if (zeny > 999) {
 		if (zeny > 999) {
-			mes "[Sharkie Rania]";
 			mes "Eh, alright.";
 			mes "Eh, alright.";
 			mes "Let's get going.";
 			mes "Let's get going.";
 			close2;
 			close2;
@@ -318,7 +317,6 @@ jawaii,107,189,5	script	Employee#horoom	93,{
 			warp "jawaii_in",86,117;
 			warp "jawaii_in",86,117;
 			end;
 			end;
 		}
 		}
-		mes "[Sharkie Rania]";
 		mes "You...";
 		mes "You...";
 		mes "Don't have";
 		mes "Don't have";
 		mes "enough money.";
 		mes "enough money.";
@@ -353,8 +351,8 @@ jawaii,112,173,7	script	Employee#villroom	93,{
 	mes "like to stay?";
 	mes "like to stay?";
 	next;
 	next;
 	if (select("Use.:Cancel.") == 1) {
 	if (select("Use.:Cancel.") == 1) {
+		mes "[Larks Rania]";
 		if (zeny > 999) {
 		if (zeny > 999) {
-			mes "[Larks Rania]";
 			mes "Thank you~";
 			mes "Thank you~";
 			mes "Enjoy your stay.";
 			mes "Enjoy your stay.";
 			close2;
 			close2;
@@ -362,7 +360,6 @@ jawaii,112,173,7	script	Employee#villroom	93,{
 			warp "jawaii_in",87,75;
 			warp "jawaii_in",87,75;
 			end;
 			end;
 		}
 		}
-		mes "[Larks Rania]";
 		mes "Oh what a shame!";
 		mes "Oh what a shame!";
 		mes "You don't seem";
 		mes "You don't seem";
 		mes "to have enough money...?";
 		mes "to have enough money...?";
@@ -402,10 +399,10 @@ jawaii,214,168,5	script	Honeymoon Helper#Jawaii	71,{
 	mes "And it only costs 50,000 zeny...";
 	mes "And it only costs 50,000 zeny...";
 	next;
 	next;
 	if (select("I shall buy it.:No, thanks.") == 1) {
 	if (select("I shall buy it.:No, thanks.") == 1) {
+		mes "[Helper]";
 		if (zeny > 49999) {
 		if (zeny > 49999) {
 			set zeny,zeny-50000;
 			set zeny,zeny-50000;
 			getitem 681,1; //Memory_Of_Wedding 
 			getitem 681,1; //Memory_Of_Wedding 
-			mes "[Helper]";
 			mes "Thank you very much~!";
 			mes "Thank you very much~!";
 			mes "Please remember, you";
 			mes "Please remember, you";
 			mes "should use this with your";
 			mes "should use this with your";
@@ -413,7 +410,6 @@ jawaii,214,168,5	script	Honeymoon Helper#Jawaii	71,{
 			mes "special to the both of you.";
 			mes "special to the both of you.";
 			close;
 			close;
 		}
 		}
-		mes "[Helper]";
 		mes "'Sweet Memory of Marriage' is 50,000 zeny. But don't seem to have enough money with you right now. Maybe you and your partner could help each other to buy the Sweet Memory of Marriage?";
 		mes "'Sweet Memory of Marriage' is 50,000 zeny. But don't seem to have enough money with you right now. Maybe you and your partner could help each other to buy the Sweet Memory of Marriage?";
 		close;
 		close;
 	}
 	}
@@ -428,7 +424,7 @@ jawaii,214,168,5	script	Honeymoon Helper#Jawaii	71,{
 jawaii_in,25,94,0	script	Employee#jaw1	724,{
 jawaii_in,25,94,0	script	Employee#jaw1	724,{
 	mes "[Employee Tryteh]";
 	mes "[Employee Tryteh]";
 	mes "Welcome to Jawaii Tavern~";
 	mes "Welcome to Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		mes "Anyway, I am so glad that you two have gotten married. I hope you both will live happily ever after~";
 		mes "Anyway, I am so glad that you two have gotten married. I hope you both will live happily ever after~";
 		next;
 		next;
 		mes "[Employee Tryteh]";
 		mes "[Employee Tryteh]";
@@ -437,7 +433,7 @@ jawaii_in,25,94,0	script	Employee#jaw1	724,{
 		mes "how it is...";
 		mes "how it is...";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		mes "I hope you enjoy your stay";
 		mes "I hope you enjoy your stay";
 		mes "over here. But try not";
 		mes "over here. But try not";
 		mes "to drink too much~";
 		mes "to drink too much~";
@@ -457,7 +453,7 @@ OnSolo:
 jawaii_in,25,96,0	script	Employee#jaw2	724,{
 jawaii_in,25,96,0	script	Employee#jaw2	724,{
 	mes "[Employee Fey]";
 	mes "[Employee Fey]";
 	mes "Welcome to Jawaii Tavern~";
 	mes "Welcome to Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		next;
 		next;
 		mes "[Employee Fey]";
 		mes "[Employee Fey]";
 		mes "We hope that you enjoy your time here with the one that you love. Isn't this place nice and cozy,";
 		mes "We hope that you enjoy your time here with the one that you love. Isn't this place nice and cozy,";
@@ -468,7 +464,7 @@ jawaii_in,25,96,0	script	Employee#jaw2	724,{
 		mes "a few of those dorks found their way here. To hell with them!";
 		mes "a few of those dorks found their way here. To hell with them!";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		mes "Have a good time! But please,";
 		mes "Have a good time! But please,";
 		mes "try not to interrupt the happily married people here!";
 		mes "try not to interrupt the happily married people here!";
 		close;
 		close;
@@ -487,24 +483,21 @@ OnSolo:
 jawaii_in,25,98,0	script	Employee#jaw3	724,{
 jawaii_in,25,98,0	script	Employee#jaw3	724,{
 	mes "[Employee Buffy]";
 	mes "[Employee Buffy]";
 	mes "Welcome to Jawaii Tavern~";
 	mes "Welcome to Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		next;
 		next;
 		mes "[Employee Buffy]";
 		mes "[Employee Buffy]";
 		mes "Oh~";
 		mes "Oh~";
 		mes "Look at you...";
 		mes "Look at you...";
-		if (sex) {
-			mes "You look perfect";
+		mes "You look perfect";
+		if (sex)
 			mes "for your wife~";
 			mes "for your wife~";
-		}
-		else {
-			mes "You look perfect";
+		else
 			mes "with your husband~";
 			mes "with your husband~";
-		}
 		mes "Awwww, I want to";
 		mes "Awwww, I want to";
 		mes "get married soon~!";
 		mes "get married soon~!";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		next;
 		next;
 		mes "[Employee Buffy]";
 		mes "[Employee Buffy]";
 		mes "Hmm...?";
 		mes "Hmm...?";
@@ -535,7 +528,7 @@ jawaii_in,25,100,0	script	Employee#jaw4	724,{
 	mes "[Employee Itere]";
 	mes "[Employee Itere]";
 	mes "Welcome to";
 	mes "Welcome to";
 	mes "Jawaii Tavern~";
 	mes "Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		next;
 		next;
 		mes "[Employee Itere]";
 		mes "[Employee Itere]";
 		mes "Oh~";
 		mes "Oh~";
@@ -544,7 +537,7 @@ jawaii_in,25,100,0	script	Employee#jaw4	724,{
 		mes "partner! How precious~";
 		mes "partner! How precious~";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		mes "I hope you";
 		mes "I hope you";
 		mes "enjoy your st--";
 		mes "enjoy your st--";
 		mes "Wait a minute...!";
 		mes "Wait a minute...!";
@@ -573,7 +566,7 @@ OnSolo:
 jawaii_in,30,94,4	script	Employee#jaw5	724,{
 jawaii_in,30,94,4	script	Employee#jaw5	724,{
 	mes "[Employee Tonia]";
 	mes "[Employee Tonia]";
 	mes "Welcome to Jawaii Tavern~";
 	mes "Welcome to Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		next;
 		next;
 		mes "[Employee Tonia]";
 		mes "[Employee Tonia]";
 		mes "Congratulations to both of you!";
 		mes "Congratulations to both of you!";
@@ -583,7 +576,7 @@ jawaii_in,30,94,4	script	Employee#jaw5	724,{
 		mes "^333333I hope those Single Army morons don't get drunk and do something stupid again...";
 		mes "^333333I hope those Single Army morons don't get drunk and do something stupid again...";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		mes "Wait a sec. You're...!";
 		mes "Wait a sec. You're...!";
 		next;
 		next;
 		mes "[Employee Tonia]";
 		mes "[Employee Tonia]";
@@ -606,14 +599,14 @@ OnSolo:
 jawaii_in,30,96,4	script	Employee#jaw6	724,{
 jawaii_in,30,96,4	script	Employee#jaw6	724,{
 	mes "[Employee Kay]";
 	mes "[Employee Kay]";
 	mes "Welcome to Jawaii Tavern~";
 	mes "Welcome to Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		next;
 		next;
 		mes "[Employee Kay]";
 		mes "[Employee Kay]";
 		mes "Oh gosh...!";
 		mes "Oh gosh...!";
 		mes "Lately, I've been dealing with too many drunks in this place! It's been really hard for me to take care of it all...";
 		mes "Lately, I've been dealing with too many drunks in this place! It's been really hard for me to take care of it all...";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		mes "I understand that you want to relax and take a break, but please be careful and don't drink too much.";
 		mes "I understand that you want to relax and take a break, but please be careful and don't drink too much.";
 		close;
 		close;
 	}
 	}
@@ -631,7 +624,7 @@ OnSolo:
 jawaii_in,30,98,4	script	Employee#jaw7	724,{
 jawaii_in,30,98,4	script	Employee#jaw7	724,{
 	mes "[Employee Amy]";
 	mes "[Employee Amy]";
 	mes "Welcome to Jawaii Tavern~";
 	mes "Welcome to Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		mes "Oh! You and your partner look perfect for each other. Like, um,";
 		mes "Oh! You and your partner look perfect for each other. Like, um,";
 		mes "a gun and a bullet! No...?";
 		mes "a gun and a bullet! No...?";
 		next;
 		next;
@@ -644,7 +637,7 @@ jawaii_in,30,98,4	script	Employee#jaw7	724,{
 		mes "Ummmm....";
 		mes "Ummmm....";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		next;
 		next;
 		mes "[Employee Amy]";
 		mes "[Employee Amy]";
 		mes "Hmm, I don't think this place is for you. But, I see no problem in letting you drink and have a good time, so long as you don't";
 		mes "Hmm, I don't think this place is for you. But, I see no problem in letting you drink and have a good time, so long as you don't";
@@ -665,11 +658,11 @@ OnSolo:
 jawaii_in,30,100,4	script	Employee#jaw8	724,{
 jawaii_in,30,100,4	script	Employee#jaw8	724,{
 	mes "[Employee Yasmine]";
 	mes "[Employee Yasmine]";
 	mes "Welcome to Jawaii Tavern~";
 	mes "Welcome to Jawaii Tavern~";
-	if (getpartnerid() == 1) {
+	if (ispartneron()) {
 		mes "Just like the moon and the stars, you and your partner look perfect together. I'm really happy for you!";
 		mes "Just like the moon and the stars, you and your partner look perfect together. I'm really happy for you!";
 		close;
 		close;
 	}
 	}
-	else if (getpartnerid() == 0) {
+	else if (!getpartnerid()) {
 		next;
 		next;
 		mes "[Employee Yasmine]";
 		mes "[Employee Yasmine]";
 		mes "You don't look like you belong here, but I hope you find your perfect match one of these days. Have fun!";
 		mes "You don't look like you belong here, but I hope you find your perfect match one of these days. Have fun!";
@@ -718,7 +711,7 @@ jawaii_in,15,104,0	script	Waitress#jawaii	80,{
 	//	close
 	//	close
 	//	return
 	//	return
 	//}
 	//}
-	if (getpartnerid() == 1) {
+	if (getpartnerid()) {
 		mes "[Waitress]";
 		mes "[Waitress]";
 		mes "Hello,";
 		mes "Hello,";
 		mes "how can I help you?";
 		mes "how can I help you?";
@@ -732,15 +725,14 @@ jawaii_in,15,104,0	script	Waitress#jawaii	80,{
 			mes "Would you like one?";
 			mes "Would you like one?";
 			next;
 			next;
 			if (select("Yes.:Wha--! It's too expensive!") == 1) {
 			if (select("Yes.:Wha--! It's too expensive!") == 1) {
+				mes "[Waitress]";
 				if (zeny > 999) {
 				if (zeny > 999) {
 					set zeny,zeny-1000;
 					set zeny,zeny-1000;
 					getitem 517,1; //Meat
 					getitem 517,1; //Meat
-					mes "[Waitress]";
 					mes "There you go~";
 					mes "There you go~";
 					mes "Enjoy your meal~!";
 					mes "Enjoy your meal~!";
 					close;
 					close;
 				}
 				}
-				mes "[Waitress]";
 				mes "I'm sorry but...";
 				mes "I'm sorry but...";
 				mes "This isn't enough money...";
 				mes "This isn't enough money...";
 				close;
 				close;
@@ -759,15 +751,14 @@ jawaii_in,15,104,0	script	Waitress#jawaii	80,{
 			mes "Would you like one?";
 			mes "Would you like one?";
 			next;
 			next;
 			if (select("Yes.:Wha--! It's too expensive!") == 1) {
 			if (select("Yes.:Wha--! It's too expensive!") == 1) {
+				mes "[Waitress]";
 				if (zeny > 999) {
 				if (zeny > 999) {
 					set zeny,zeny-1000;
 					set zeny,zeny-1000;
 					getitem 503,1; //Yelow_Potion
 					getitem 503,1; //Yelow_Potion
-					mes "[Waitress]";
 					mes "There you go~";
 					mes "There you go~";
 					mes "Enjoy your meal~!";
 					mes "Enjoy your meal~!";
 					close;
 					close;
 				}
 				}
-				mes "[Waitress]";
 				mes "I am sorry but you don't have enough money?!";
 				mes "I am sorry but you don't have enough money?!";
 				close;
 				close;
 			}
 			}
@@ -837,15 +828,14 @@ jawaii_in,28,124,0	script	Bartender#jaw	46,{
 	next;
 	next;
 	if (zeny < 99) {
 	if (zeny < 99) {
 		set .@r_jaw,rand(1,100);
 		set .@r_jaw,rand(1,100);
+		mes "[Bartender]";
 		if (.@r_jaw > 29) {
 		if (.@r_jaw > 29) {
-			mes "[Bartender]";
 			mes "Hm, I'm sorry";
 			mes "Hm, I'm sorry";
 			mes "but you do not";
 			mes "but you do not";
 			mes "have enough";
 			mes "have enough";
 			mes "money for a drink.";
 			mes "money for a drink.";
 			close;
 			close;
 		}
 		}
-		mes "[Bartender]";
 		mes "....Hmm...";
 		mes "....Hmm...";
 		next;
 		next;
 		mes "["+strcharinfo(0)+"]";
 		mes "["+strcharinfo(0)+"]";
@@ -1168,14 +1158,14 @@ jawaii_in,43,115,0	script	Customer#jaw_1	97,{
 }
 }
 
 
 jawaii_in,41,106,3	script	Customer#Cage	98,{
 jawaii_in,41,106,3	script	Customer#Cage	98,{
+	mes "[Cage]";
 	if (getpartnerid()) {
 	if (getpartnerid()) {
-		mes "[Cage]";
 		mes "....Bah!";
 		mes "....Bah!";
 		mes "What are you so happy about?";
 		mes "What are you so happy about?";
 		mes "After all, everyone knows marriage is a sham for desperate, lonely people!";
 		mes "After all, everyone knows marriage is a sham for desperate, lonely people!";
 		next;
 		next;
+		mes "[Cage]";
 		if (sex) {
 		if (sex) {
-			mes "[Cage]";
 			mes "I don't trust anybody!";
 			mes "I don't trust anybody!";
 			mes "You're a fool for chaining";
 			mes "You're a fool for chaining";
 			mes "yourself to some gorgeous";
 			mes "yourself to some gorgeous";
@@ -1184,7 +1174,6 @@ jawaii_in,41,106,3	script	Customer#Cage	98,{
 			mes "A FOOL!";
 			mes "A FOOL!";
 		}
 		}
 		else {
 		else {
-			mes "[Cage]";
 			mes "Look at you!";
 			mes "Look at you!";
 			mes "You're a fool for";
 			mes "You're a fool for";
 			mes "chaining yourself to";
 			mes "chaining yourself to";
@@ -1200,7 +1189,6 @@ jawaii_in,41,106,3	script	Customer#Cage	98,{
 		mes "MY FREEDOM!";
 		mes "MY FREEDOM!";
 		close;
 		close;
 	}
 	}
-	mes "[Cage]";
 	mes "Drink, drink...!!";
 	mes "Drink, drink...!!";
 	mes "Eat, eat...!!";
 	mes "Eat, eat...!!";
 	mes "Join me,";
 	mes "Join me,";
@@ -1219,8 +1207,8 @@ jawaii_in,41,106,3	script	Customer#Cage	98,{
 // Inside Prontera
 // Inside Prontera
 //============================================================
 //============================================================
 prt_in,173,13,4	script	Customer#SoloHan	86,{
 prt_in,173,13,4	script	Customer#SoloHan	86,{
+	mes "[SoloHan]";
 	if (!getpartnerid()) {
 	if (!getpartnerid()) {
-		mes "[SoloHan]";
 		mes "Oh man...";
 		mes "Oh man...";
 		mes "I think I'm drunk~";
 		mes "I think I'm drunk~";
 		mes "^666666*Hiccup...!*^000000";
 		mes "^666666*Hiccup...!*^000000";
@@ -1284,8 +1272,8 @@ prt_in,173,13,4	script	Customer#SoloHan	86,{
 				percentheal -10,0;
 				percentheal -10,0;
 				next;
 				next;
 				set .@jaw_roof,.@jaw_roof+2;
 				set .@jaw_roof,.@jaw_roof+2;
+				mes "[SoloHan]";
 				if (.@jaw_roof > 8) {
 				if (.@jaw_roof > 8) {
-					mes "[SoloHan]";
 					mes "Whoa...";
 					mes "Whoa...";
 					mes "You alright?";
 					mes "You alright?";
 					mes "You seem kind of drunk...";
 					mes "You seem kind of drunk...";
@@ -1351,8 +1339,7 @@ prt_in,173,13,4	script	Customer#SoloHan	86,{
 		warp "jawaii_in",44,124;
 		warp "jawaii_in",44,124;
 		end;
 		end;
 	}
 	}
-	else if (getpartnerid()) {
-		mes "[SoloHan]";
+	else if (ispartneron()) {
 		mes "Oh man...";
 		mes "Oh man...";
 		mes "I think I'm drunk~";
 		mes "I think I'm drunk~";
 		mes "*Hiccup!*";
 		mes "*Hiccup!*";
@@ -1383,7 +1370,6 @@ prt_in,173,13,4	script	Customer#SoloHan	86,{
 		donpcevent "Customer#Bachewcca::OnEffect2";
 		donpcevent "Customer#Bachewcca::OnEffect2";
 		close;
 		close;
 	}
 	}
-	mes "[SoloHan]";
 	mes "Oh man...";
 	mes "Oh man...";
 	mes "I think I'm drunk~";
 	mes "I think I'm drunk~";
 	mes "^666666*Hiccup!*^000000";
 	mes "^666666*Hiccup!*^000000";
@@ -1439,15 +1425,14 @@ izlude,171,185,3	script	Honeymoon Helper#Izlude	71,{
 		close;
 		close;
 
 
 	case 2:
 	case 2:
+		mes "[Helper]";
 		if (!getpartnerid()) {
 		if (!getpartnerid()) {
-			mes "[Helper]";
 			mes "Errm...";
 			mes "Errm...";
 			mes "Unfortunately, singles are not allowed on the island. Why don't you go forget your loneliness in the Prontera pub?";
 			mes "Unfortunately, singles are not allowed on the island. Why don't you go forget your loneliness in the Prontera pub?";
 			close;
 			close;
 		}
 		}
 		else if (zeny > 99999) {
 		else if (zeny > 99999) {
 			set zeny,zeny-100000;
 			set zeny,zeny-100000;
-			mes "[Helper]";
 			mes "Bon Voyage...!!";
 			mes "Bon Voyage...!!";
 			mes "Let me guide";
 			mes "Let me guide";
 			mes "you to 'Jawaii!'";
 			mes "you to 'Jawaii!'";
@@ -1455,7 +1440,6 @@ izlude,171,185,3	script	Honeymoon Helper#Izlude	71,{
 			warp "jawaii",245,125;
 			warp "jawaii",245,125;
 			end;
 			end;
 		}
 		}
-		mes "[Helper]";
 		mes "As I explained, you must have 100,000 zeny in order to visit Jawaii. Why don't you ask your partner for help in gathering the zeny for this trip?";
 		mes "As I explained, you must have 100,000 zeny in order to visit Jawaii. Why don't you ask your partner for help in gathering the zeny for this trip?";
 		close;
 		close;
 
 
@@ -1468,4 +1452,4 @@ izlude,171,185,3	script	Honeymoon Helper#Izlude	71,{
 		mes "A vacation in Jawaii could very well be the greatest gift that you could give to the one you love~";
 		mes "A vacation in Jawaii could very well be the greatest gift that you could give to the one you love~";
 		close;
 		close;
 	}
 	}
-}
+}

+ 24 - 24
npc/other/divorce.txt

@@ -4,7 +4,7 @@
 //= Perkka, Scriptor, LightFighter
 //= Perkka, Scriptor, LightFighter
 //= L0ne_W0lf
 //= L0ne_W0lf
 //===== Current Version: ===================================== 
 //===== Current Version: ===================================== 
-//= 1.2
+//= 1.2a
 //===== Compatible With: ===================================== 
 //===== Compatible With: ===================================== 
 //= eAthena SVN
 //= eAthena SVN
 //===== Description: ========================================= 
 //===== Description: ========================================= 
@@ -17,26 +17,28 @@
 //= Fixed menu [Lupus]
 //= Fixed menu [Lupus]
 //= 1.1 Added check if the patner's online, added effects [Lupus]
 //= 1.1 Added check if the patner's online, added effects [Lupus]
 //= 1.2 Updated to Aegis 10.3 standards. [L0ne_W0lf]
 //= 1.2 Updated to Aegis 10.3 standards. [L0ne_W0lf]
+//= 1.2a Commented out check of 'wedding_sign' to let
+//=		old married players divorcing, optimized, fixed a bug [Lupus]
 //============================================================ 
 //============================================================ 
 
 
 nif_in,190,112,5	script	Deviruchi#divorce	738,{
 nif_in,190,112,5	script	Deviruchi#divorce	738,{
-	if (wedding_sign == 0) {
-		mes "[Deviruchi]";
-		mes "Heh heh...";
-		mes "Look at that depressed face.";
-		mes "You must be feeling very lonely.";
-		mes "But that's something everyone";
-		mes "has to deal with.";
-		next;
-		mes "[Deviruchi]";
-		mes "If you feel that lonely,";
-		mes "how about raising a Pet?";
-		mes "I hear that my kind is very";
-		mes "popular nowadays, heh heh~";
-		close;
-	}
-	else if (!getpartnerid()) {
-		mes "[Deviruchi]";
+	mes "[Deviruchi]";
+//	if (wedding_sign == 0) {
+//		mes "Heh heh...";
+//		mes "Look at that depressed face.";
+//		mes "You must be feeling very lonely.";
+//		mes "But that's something everyone";
+//		mes "has to deal with.";
+//		next;
+//		mes "[Deviruchi]";
+//		mes "If you feel that lonely,";
+//		mes "how about raising a Pet?";
+//		mes "I hear that my kind is very";
+//		mes "popular nowadays, heh heh~";
+//		close;
+//	}
+//	else 
+  	if (!getpartnerid()) {
 		mes "Bwah hah hah~!";
 		mes "Bwah hah hah~!";
 		mes "That look in your eyes~!";
 		mes "That look in your eyes~!";
 		if (sex) {
 		if (sex) {
@@ -60,7 +62,6 @@ nif_in,190,112,5	script	Deviruchi#divorce	738,{
 		mes "of darkness.";
 		mes "of darkness.";
 		close;
 		close;
 	}
 	}
-	mes "[Deviruchi]";
 	mes "You look awfully depressed...";
 	mes "You look awfully depressed...";
 	mes "Lucky for you, I could care";
 	mes "Lucky for you, I could care";
 	mes "less about happy people...";
 	mes "less about happy people...";
@@ -147,8 +148,9 @@ nif_in,190,112,5	script	Deviruchi#divorce	738,{
 		mes "if you think you're happy,";
 		mes "if you think you're happy,";
 		mes "then I'll have nothing";
 		mes "then I'll have nothing";
 		mes "to do with you--!";
 		mes "to do with you--!";
-		close;
+		close2;
 		warp "niflheim",169,162;
 		warp "niflheim",169,162;
+		end;
 	}
 	}
 	mes "[Deviruchi]";
 	mes "[Deviruchi]";
 	mes "Good, good...";
 	mes "Good, good...";
@@ -179,9 +181,9 @@ nif_in,190,112,5	script	Deviruchi#divorce	738,{
 		}
 		}
 		close;
 		close;
 	}
 	}
-	if (isloggedin(getpartnerid())) {
+	mes "[Deviruchi]";
+	if (ispartneron()) {
 		if (Zeny > 2499999) {
 		if (Zeny > 2499999) {
-			mes "[Deviruchi]";
 			mes "Excellent choice~";
 			mes "Excellent choice~";
 			mes "Let's get started right";
 			mes "Let's get started right";
 			mes "away! This may take some";
 			mes "away! This may take some";
@@ -202,7 +204,6 @@ nif_in,190,112,5	script	Deviruchi#divorce	738,{
 			mes "Ah, bachelorhood...";
 			mes "Ah, bachelorhood...";
 			close;
 			close;
 		}
 		}
-		mes "[Deviruchi]";
 		mes "Hmmm...I did tell you to bring";
 		mes "Hmmm...I did tell you to bring";
 		mes "2,500,000 zeny, right?";
 		mes "2,500,000 zeny, right?";
 		mes "No one else in this world can";
 		mes "No one else in this world can";
@@ -211,7 +212,6 @@ nif_in,190,112,5	script	Deviruchi#divorce	738,{
 		mes "peace of mind, can you?";
 		mes "peace of mind, can you?";
 		close;
 		close;
 	}
 	}
-	mes "[Deviruchi]";
 	mes "Hmmm...your spouse isn't online...";
 	mes "Hmmm...your spouse isn't online...";
 	close;
 	close;
 }
 }