Selaa lähdekoodia

- Removed an # symbol in quest_db.txt
- Updated Moscovia quests (Added tide changes and fixed Marozka's time check).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13975 54d463be-8e91-2dee-dedb-b68131a5f0ec

Kisuka 16 vuotta sitten
vanhempi
commit
2033dbbd11
2 muutettua tiedostoa jossa 197 lisäystä ja 28 poistoa
  1. 1 1
      db/quest_db.txt
  2. 196 27
      npc/quests/quests_moscovia.txt

+ 1 - 1
db/quest_db.txt

@@ -214,7 +214,7 @@
 3062,0,0,0,0,0,0,0,"Kids in Veins - Find the Locksmith!"
 3063,0,0,0,0,0,0,0,"Kids in Veins - Mr. Lockenlock?"
 3064,0,0,0,0,0,0,0,"Kids in Veins - Organic Chamelepu Soap"
-3065,0,0,0,0,0,0,0,"#Kids in Veins - Soap Ingredients"
+3065,0,0,0,0,0,0,0,"Kids in Veins - Soap Ingredients"
 3066,0,0,0,0,0,0,0,"Kids in Veins - To make a Chamelepu Soap..."
 3067,0,0,0,0,0,0,0,"Kids in Veins - Camel Appetite Stimulants"
 3068,0,0,0,0,0,0,0,"Kids in Veins - Getting the Camel Dung"

+ 196 - 27
npc/quests/quests_moscovia.txt

@@ -3,7 +3,7 @@
 //===== By: ================================================== 
 //= Kisuka
 //===== Current Version: ===================================== 
-//= 1.5
+//= 1.6
 //===== Compatible With: ===================================== 
 //= eAthena SVN
 //===== Description: ========================================= 
@@ -17,6 +17,7 @@
 //= 1.3 Replaced occurrences of PcName. [brianluau]
 //= 1.4 Added 'Koshei the Immortal' quest. [Kisuka]
 //= 1.5 Fixes to 'Koshei the Immortal' quest. [Kisuka]
+//= 1.6 Added 'tides' to Ibanoff & Fixed time check for Marozka. [Kisuka]
 //============================================================ 
 
 //============================================================================
@@ -249,6 +250,26 @@ moscovia,171,71,3	script	Berbayeff#npc	968,{
 	}
 }
 
+//----------------------------------------------------------------------------
+// Bulletin Board - List Tide Times
+//----------------------------------------------------------------------------
+moscovia,135,52,0	script	Bulletin Board#npc	837,{
+	mes "[Charabel Schedule]";
+	mes "NOTICE, due to the varying";
+	mes "tides here in Moscovia,";
+	mes "the charabel can only";
+	mes "depart when the tide is low.";
+	next;
+	mes "[Charabel Schedule]";
+	mes "The Charabel can depart";
+	mes "between the following times:";
+	mes "^0000FF12:00am PST^000000 to ^0000FF3:00am PST";
+	mes "^0000FF6:00am PST^000000 to ^0000FF9:00am PST";
+	mes "^0000FF12:00pm PST^000000 to ^0000FF3:00pm PST";
+	mes "^0000FF6:00pm PST^000000 to ^0000FF9:00pm PST";
+	close;
+}
+
 //----------------------------------------------------------------------------
 // Mr. Ibanoff - Docks
 //----------------------------------------------------------------------------
@@ -489,26 +510,63 @@ moscovia,135,49,5	script	Mr. Ibanoff#npc	964,{
 		mes "Oh. Are you ready to depart?";
 		mes "Good, let's see...";
 		next;
-		if (gettime(3)>=7 && gettime(3)<20) {
+		if (gettime(3) >= 0 && gettime(3) < 3) {
 			mes "[Mr. Ibanoff]";
 			mes "Hmm. It's not a bad time.";
 			mes "We should hurry up";
-			mes "before the sun sets.";
+			mes "while the tides are low.";
 			mes "The ship is prepared already";
 			mes "at a dock nearby, so we can depart";
 			mes "right away.";
 			close2;
 			warp "mosk_ship",94,110;
 			end;
-		}else{
+		}
+		else if (gettime(3) >= 6 && gettime(3) < 9) {
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 12 && gettime(3) < 15) {
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 18 && gettime(3) < 21) {	
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else {
 			mes "[Mr. Ibanoff]";
-			mes "Gee. The sun has already set.";
+			mes "Gee. The tide is too high.";
 			mes "It's too dangerous to depart";
-			mes "at night because of the waves";
+			mes "right now because of the waves";
 			mes "getting too rugged.";
 			next;
 			mes "[Mr. Ibanoff]";
-			mes "When the sun rises again tomorrow,";
+			mes "When the sea calmes down a bit,";
 			mes "you can come back. We can't depart";
 			mes "right now.";
 			close;
@@ -535,27 +593,63 @@ moscovia,135,49,5	script	Mr. Ibanoff#npc	964,{
 			mes "When you are ready to depart, tell me.";
 			close;
 		}
-		if (gettime(3)>=7 && gettime(3)<20) {
-			set mos_whale_edq,4;
+		if (gettime(3) >= 0 && gettime(3) < 3) {
 			mes "[Mr. Ibanoff]";
 			mes "Hmm. It's not a bad time.";
 			mes "We should hurry up";
-			mes "before the sun sets.";
+			mes "while the tides are low.";
 			mes "The ship is prepared already";
 			mes "at a dock nearby, so we can depart";
 			mes "right away.";
 			close2;
 			warp "mosk_ship",94,110;
 			end;
-		}else{
+		}
+		else if (gettime(3) >= 6 && gettime(3) < 9) {
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 12 && gettime(3) < 15) {
 			mes "[Mr. Ibanoff]";
-			mes "Gee. The sun has already set.";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 18 && gettime(3) < 21) {	
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else {
+			mes "[Mr. Ibanoff]";
+			mes "Gee. The tide is too high.";
 			mes "It's too dangerous to depart";
-			mes "at night because of the waves";
+			mes "right now because of the waves";
 			mes "getting too rugged.";
 			next;
 			mes "[Mr. Ibanoff]";
-			mes "When the sun rises again tomorrow,";
+			mes "When the sea calmes down a bit,";
 			mes "you can come back. We can't depart";
 			mes "right now.";
 			close;
@@ -686,26 +780,63 @@ moscovia,135,49,5	script	Mr. Ibanoff#npc	964,{
 			mes "When you are ready to depart, tell me.";
 			close;
 		}
-		if (gettime(3)>=7 && gettime(3)<20) {
+		if (gettime(3) >= 0 && gettime(3) < 3) {
 			mes "[Mr. Ibanoff]";
 			mes "Hmm. It's not a bad time.";
 			mes "We should hurry up";
-			mes "before the sun sets.";
+			mes "while the tides are low.";
 			mes "The ship is prepared already";
 			mes "at a dock nearby, so we can depart";
 			mes "right away.";
 			close2;
 			warp "mosk_ship",94,110;
 			end;
-		}else{
+		}
+		else if (gettime(3) >= 6 && gettime(3) < 9) {
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 12 && gettime(3) < 15) {
 			mes "[Mr. Ibanoff]";
-			mes "Gee. The sun has already set.";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 18 && gettime(3) < 21) {	
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else {
+			mes "[Mr. Ibanoff]";
+			mes "Gee. The tide is too high.";
 			mes "It's too dangerous to depart";
-			mes "at night because of the waves";
+			mes "right now because of the waves";
 			mes "getting too rugged.";
 			next;
 			mes "[Mr. Ibanoff]";
-			mes "When the sun rises again tomorrow,";
+			mes "When the sea calmes down a bit,";
 			mes "you can come back. We can't depart";
 			mes "right now.";
 			close;
@@ -728,26 +859,63 @@ moscovia,135,49,5	script	Mr. Ibanoff#npc	964,{
 		mes "I can guess you'd like to go to";
 		mes "Whale Island once again...";
 		next;
-		if (gettime(3)>=7 && gettime(3)<20) {
+		if (gettime(3) >= 0 && gettime(3) < 3) {
 			mes "[Mr. Ibanoff]";
 			mes "Hmm. It's not a bad time.";
 			mes "We should hurry up";
-			mes "before the sun sets.";
+			mes "while the tides are low.";
 			mes "The ship is prepared already";
 			mes "at a dock nearby, so we can depart";
 			mes "right away.";
 			close2;
 			warp "mosk_ship",94,110;
 			end;
-		}else{
+		}
+		else if (gettime(3) >= 6 && gettime(3) < 9) {
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 12 && gettime(3) < 15) {
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else if (gettime(3) >= 18 && gettime(3) < 21) {	
+			mes "[Mr. Ibanoff]";
+			mes "Hmm. It's not a bad time.";
+			mes "We should hurry up";
+			mes "while the tides are low.";
+			mes "The ship is prepared already";
+			mes "at a dock nearby, so we can depart";
+			mes "right away.";
+			close2;
+			warp "mosk_ship",94,110;
+			end;
+		}
+		else {
 			mes "[Mr. Ibanoff]";
-			mes "Gee. The sun has already set.";
+			mes "Gee. The tide is too high.";
 			mes "It's too dangerous to depart";
-			mes "at night because of the waves";
+			mes "right now because of the waves";
 			mes "getting too rugged.";
 			next;
 			mes "[Mr. Ibanoff]";
-			mes "When the sun rises again tomorrow,";
+			mes "When the sea calmes down a bit,";
 			mes "you can come back. We can't depart";
 			mes "right now.";
 			close;
@@ -13694,10 +13862,11 @@ mosk_fild02,243,270,0	script	Marozka#rus31	866,{
 			mes "I will begin making it now... let me see... Could you please come back to me in an hour?";
 			set rhea_rus_quiz,4;
 			set rus_time01,gettime(3);
+			set rus_time02,gettime(4);
 			close;
 		}
 		else if (rhea_rus_quiz == 4) {
-			if (rus_time01 < gettime(3)) {
+			if (rus_time01 < gettime(3) || rus_time02 < gettime(4) || (rus_time02 == 6 && gettime(4) == 0)) {
 				mes "[Marozka]";
 				mes "Ah, just in time.";
 				mes "I have finally finished making the 'Golden Thread'. Just wait one more second and it'll be ready.";