From 5dc6b749e1e43fcb080192afdf6e3745a080b108 Mon Sep 17 00:00:00 2001 From: Capuche Date: Tue, 22 Jul 2014 03:30:21 +0200 Subject: [PATCH] Bug fixes in quests/quests_moscovia.txt -- Added questlog support on The Moving Island, Help Mikhail, Banish Winter quests -- fixed bugreport 8532 Signed-off-by: Capuche --- npc/quests/quests_moscovia.txt | 5046 +++++++++++++------------------ npc/warps/dungeons/mosk_dun.txt | 117 +- 2 files changed, 2142 insertions(+), 3021 deletions(-) diff --git a/npc/quests/quests_moscovia.txt b/npc/quests/quests_moscovia.txt index 85b545bde4..a20d25fae6 100644 --- a/npc/quests/quests_moscovia.txt +++ b/npc/quests/quests_moscovia.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= Kisuka //===== Current Version: ===================================== -//= 2.3 +//= 3.0 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= @@ -27,6 +27,7 @@ //= 2.1 Fixed incorrect use of 'close'. [Joseph] //= 2.2 Updated RE/Pre-RE EXP. [Euphy] //= 2.3 Added GM management NPC. [Euphy] +//= 3.0 Bug fixes. Added questlog support. [Capuche] //============================================================ // The Moving Island :: mos_whale_edq @@ -35,7 +36,7 @@ //---------------------------------------------------------------------------- // Berbayeff - Starting Point //---------------------------------------------------------------------------- -moscovia,171,71,3 script Berbayeff#npc 968,{ +moscovia,171,71,3 script Berbayeff#npc 4_M_RUSMAN2,{ if (!mos_whale_edq) { emotion e_an; mes "[Berbayeff]"; @@ -56,6 +57,8 @@ moscovia,171,71,3 script Berbayeff#npc 968,{ mes "be interested in my story."; mes "All the villagers are blockheads,"; mes "so they treat me like an idiot."; + if (isbegin_quest(18100) == 0) + setquest 18100; next; if(select("I'm not interested in any story.:Tell me.") == 1) { mes "[Berbayeff]"; @@ -174,10 +177,11 @@ moscovia,171,71,3 script Berbayeff#npc 968,{ mes "And on that day,"; mes "I'll definitely go up to that"; mes "island... and verify it with my own eyes!"; - set mos_whale_edq,1; + changequest 18100,18101; + mos_whale_edq = 1; close; } else if (mos_whale_edq == 1) { - set .@speak,rand(1,5); + .@speak = rand(1,5); if (.@speak < 3) { mes "[Berbayeff]"; mes "Clearly, I want to prove"; @@ -221,8 +225,9 @@ moscovia,171,71,3 script Berbayeff#npc 968,{ mes "If you want to find the island"; mes "by ship, go to Mr. Ibanoff"; mes "and ask for a favor."; + changequest 18101,18102; close; - } else if (mos_whale_edq > 12 && mos_whale_edq < 42) { + } else if (mos_whale_edq > 2 && mos_whale_edq < 42) { emotion e_omg; mes "[Berbayeff]"; mes "Are you serious? Did you say"; @@ -251,7 +256,7 @@ moscovia,171,71,3 script Berbayeff#npc 968,{ //---------------------------------------------------------------------------- // Bulletin Board - List Tide Times //---------------------------------------------------------------------------- -moscovia,135,52,0 script Bulletin Board#npc 837,{ +moscovia,135,52,0 script Bulletin Board#npc 2_BULLETIN_BOARD,{ mes "[Charabel Schedule]"; mes "NOTICE, due to the varying"; mes "tides here in Moscovia,"; @@ -271,7 +276,7 @@ moscovia,135,52,0 script Bulletin Board#npc 837,{ //---------------------------------------------------------------------------- // Mr. Ibanoff - Docks //---------------------------------------------------------------------------- -moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ +moscovia,135,49,5 script Mr. Ibanoff#npc 4_M_RUSBALD,{ if (mos_whale_edq == 0) { mes "[Mr. Ibanoff]"; mes "You are also an adventurer from another province. I also was a great adventurer."; @@ -341,6 +346,10 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "What did you think?"; mes "Next... Let's talk about"; mes "the haunting of a Goblin mob...!"; + if (isbegin_quest(18102)) + changequest 18102,18103; + else if (isbegin_quest(18101)) + changequest 18101,18103; next; if(select("I'll listen next time...:Interesting. Keep talking.") == 1) { mes "[Mr. Ibanoff]"; @@ -388,7 +397,9 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "adventure story... eh? ~"; mes "If you ever need anything,"; mes "come talk to me whenever, hahaha!"; - set mos_whale_edq,2; + mos_whale_edq = 2; + if (isbegin_quest(18103)) + changequest 18103,18104; close; } if (mos_whale_edq == 2) { @@ -441,7 +452,8 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "When you've prepared all the"; mes "materials, bring them to me. I'll"; mes "repair the ship."; - set mos_whale_edq,3; + mos_whale_edq = 3; + changequest 18104,18105; close; } emotion e_ag; @@ -456,6 +468,10 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "that I have a ship..."; mes "Anyway, I can't lend my ship"; mes "willingly to strangers."; + if (isbegin_quest(18102)) + changequest 18102,18103; + else if (isbegin_quest(18101)) + changequest 18101,18103; close; } else if (mos_whale_edq == 3) { mes "[Mr. Ibanoff]"; @@ -468,11 +484,11 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "Oh! You got the all materials."; mes "It's enough."; next; - delitem 7167,10; //Mystery_Iron_Bit - delitem 7317,10; //Screw - delitem 7325,5; //Tube - delitem 7312,10; //Jubilee - set mos_whale_edq,4; + delitem 7167,10; // Mystery_Iron_Bit + delitem 7317,10; // Screw + delitem 7325,5; // Tube + delitem 7312,10; // Jubilee + mos_whale_edq = 4; mes "[Mr. Ibanoff]"; mes "Okay, we are at the ready."; mes "When would you like to depart?"; @@ -494,8 +510,9 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "raging waves."; next; mes "[Mr. Ibanoff]"; - mes "If you are ready to depart, talk to"; - mes "me before the sun sets."; + mes "If you are ready to depart, tell"; + mes "me, and we can check the tides."; + changequest 18105,18106; close; } mes "[Mr. Ibanoff]"; @@ -511,6 +528,20 @@ 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) >= 0 && gettime(3) < 3) || (gettime(3) >= 6 && gettime(3) < 9) || (gettime(3) >= 12 && gettime(3) < 15) || (gettime(3) >= 18 && gettime(3) < 21)) { + // if (isbegin_quest(18106)) + // changequest 18106,18107; + 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 (mos_whale_edq < 15) { mes "[Mr. Ibanoff]"; mes "That last sailing was tough..."; @@ -521,8 +552,7 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "[Mr. Ibanoff]"; mes "If you keep a mind to"; mes "depart again... tell me"; - mes "before the sun sets."; - mes "while the sun rises."; + mes "and we can check the tides."; next; mes "[Mr. Ibanoff]"; mes "Will you depart?"; @@ -532,6 +562,19 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "When you are ready to depart, tell me."; close; } + if ((gettime(3) >= 0 && gettime(3) < 3) || (gettime(3) >= 6 && gettime(3) < 9) || (gettime(3) >= 12 && gettime(3) < 15) || (gettime(3) >= 18 && gettime(3) < 21)) { + mos_whale_edq = 4; + 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 (mos_whale_edq == 15) { mes "[Mr. Ibanoff]"; mes "Hey you... You are alive!"; @@ -543,57 +586,58 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "Anyway, where were you all this time?"; next; select("Explain the whole story."); - mes "[Mr. Ibanoff]"; - mes "Oh... that's really marvelous."; - mes "Well I never..."; - mes "The island truly exists...?"; - next; - mes "[Mr. Ibanoff]"; - mes "What's more..."; - mes "The island is not an island?!?"; - mes "It's a gigantic whale???"; - next; - mes "[Mr. Ibanoff]"; - mes "And trees grow... and water"; - mes "streams... along the whale's"; - mes "back!!?"; - next; - mes "[Mr. Ibanoff]"; - mes "That's unbelievable!"; - mes "The most marvelous incident I have"; - mes "ever heard in my lifetime!"; - next; - mes "[Mr. Ibanoff]"; - mes "Also, I am surprised at the"; - mes "presence of an aged person on Whale"; - mes "Island!"; - next; - mes "[Mr. Ibanoff]"; - mes "He must be a man strong in"; - mes "spirit... with experience and high"; - mes "discipline."; - next; - mes "[Mr. Ibanoff]"; - mes "The story of the island has"; - mes "advanced enough until this part."; - mes "Why don't you announce your"; - mes "findings to our dearest Csar"; - mes "and receive aid to find Whale"; - mes "Island?"; - next; - mes "[Mr. Ibanoff]"; - mes "Our dear Csar likes it very"; - mes "much to hear stories about"; - mes "valuable things, so if he"; - mes "listens to your story, he may give"; - mes "you a prize..."; - next; - mes "[Mr. Ibanoff]"; - mes "And if you have any plans to go"; - mes "back to the island, I want to go"; - mes "together with you! Eh? Hahaha!"; - set mos_whale_edq,16; - close; + mes "[Mr. Ibanoff]"; + mes "Oh... that's really marvelous."; + mes "Well I never..."; + mes "The island truly exists...?"; + next; + mes "[Mr. Ibanoff]"; + mes "What's more..."; + mes "The island is not an island?!?"; + mes "It's a gigantic whale???"; + next; + mes "[Mr. Ibanoff]"; + mes "And trees grow... and water"; + mes "streams... along the whale's"; + mes "back!!?"; + next; + mes "[Mr. Ibanoff]"; + mes "That's unbelievable!"; + mes "The most marvelous incident I have"; + mes "ever heard in my lifetime!"; + next; + mes "[Mr. Ibanoff]"; + mes "Also, I am surprised at the"; + mes "presence of an aged person on Whale"; + mes "Island!"; + next; + mes "[Mr. Ibanoff]"; + mes "He must be a man strong in"; + mes "spirit... with experience and high"; + mes "discipline."; + next; + mes "[Mr. Ibanoff]"; + mes "The story of the island has"; + mes "advanced enough until this part."; + mes "Why don't you announce your"; + mes "findings to our dearest Csar"; + mes "and receive aid to find Whale"; + mes "Island?"; + next; + mes "[Mr. Ibanoff]"; + mes "Our dear Csar likes it very"; + mes "much to hear stories about"; + mes "valuable things, so if he"; + mes "listens to your story, he may give"; + mes "you a prize..."; + next; + mes "[Mr. Ibanoff]"; + mes "And if you have any plans to go"; + mes "back to the island, I want to go"; + mes "together with you! Eh? Hahaha!"; + mos_whale_edq = 16; + changequest 18111,18112; + close; } else if (mos_whale_edq < 18) { mes "[Mr. Ibanoff]"; mes "If our dear Csar listens to this"; @@ -629,7 +673,8 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ next; mes "[Mr. Ibanoff]"; mes "Again, let's get the ship ready and sail before the sun sets!"; - set mos_whale_edq,19; + mos_whale_edq = 19; + changequest 18113,18114; close; } mes "[Mr. Ibanoff]"; @@ -654,6 +699,20 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "When you are ready to depart, tell me."; close; } + if ((gettime(3) >= 0 && gettime(3) < 3) || (gettime(3) >= 6 && gettime(3) < 9) || (gettime(3) >= 12 && gettime(3) < 15) || (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; + // if (isbegin_quest(18114)) + // changequest 18114,18115; + warp "mosk_ship",94,110; + end; + } } else if (mos_whale_edq < 32) { mes "[Mr. Ibanoff]"; mes "What a surprise!!"; @@ -665,12 +724,25 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "I don't care... Wherever you have"; mes "been, it's very good to see you"; mes "again."; - set mos_whale_edq,19; + mos_whale_edq = 19; + // changequest 18113,18114; next; mes "[Mr. Ibanoff]"; mes "I can guess you'd like to go to"; mes "Whale Island once again..."; next; + if ((gettime(3) >= 0 && gettime(3) < 3) || (gettime(3) >= 6 && gettime(3) < 9) || (gettime(3) >= 12 && gettime(3) < 15) || (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 if (mos_whale_edq == 32) { mes "[Mr. Ibanoff]"; mes "Oh. You came back!"; @@ -691,7 +763,7 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "directions. Let's leave"; mes "immediately, as soon as you are"; mes "ready."; - set mos_whale_edq,33; + mos_whale_edq = 33; close; } else if (mos_whale_edq < 39) { mes "[Mr. Ibanoff]"; @@ -743,27 +815,15 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ mes "[Mr. Ibanoff]"; mes "What's going on?"; mes "You should ride a ship now? Let's ready to leave hurry up."; - set mos_whale_edq,4; + mos_whale_edq = 4; close; } else if (mos_whale_edq > 200 && mos_whale_edq < 300) { mes "[Mr. Ibanoff]"; mes "What's going on?"; mes "You should ride a ship now? Let's ready to leave hurry up."; - set mos_whale_edq,19; + mos_whale_edq = 19; close; } - if ((gettime(3) >= 0 && gettime(3) < 3) || (gettime(3) >= 6 && gettime(3) < 9) || (gettime(3) >= 12 && gettime(3) < 15) || (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; - } mes "[Mr. Ibanoff]"; mes "Gee. The tide is too high."; mes "It's too dangerous to depart"; @@ -780,7 +840,7 @@ moscovia,135,49,5 script Mr. Ibanoff#npc 964,{ //---------------------------------------------------------------------------- // Mr. Ibanoff - Ship //---------------------------------------------------------------------------- -mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ +mosk_ship,98,110,3 script Mr. Ibanoff#npc2 4_M_RUSBALD,{ if (mos_whale_edq == 4) { mes "[Mr. Ibanoff]"; mes "What a time for sailing!"; @@ -809,7 +869,9 @@ mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ mes "[Mr. Ibanoff]"; mes "At first, hold the rudder to go"; mes "forward, to the east."; - set mos_whale_edq,5; + mos_whale_edq = 5; + if (isbegin_quest(18106)) + changequest 18106,18107; close; } else if (mos_whale_edq == 5) { mes "[Mr. Ibanoff]"; @@ -818,13 +880,13 @@ mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ mes "East."; close; } else if (mos_whale_edq == 6 || mos_whale_edq == 21) { - set .@r,(mos_whale_edq == 21)?3:4; + .@r = (mos_whale_edq == 21)?3:4; if (rand(1,.@r) == 3) { mes "[Mr. Ibanoff]"; mes "Hm. The sea currents have changed."; mes "Adjust the rudder forward to the"; mes "North, to follow the currents."; - set mos_whale_edq,mos_whale_edq+1; + mos_whale_edq++; close; } mes "[Mr. Ibanoff]"; @@ -862,7 +924,9 @@ mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ mes "that... Hey! You..."; mes "Go around the deck to look more"; mes "carefully! Go!"; - set mos_whale_edq,12; + mos_whale_edq = 12; + if (isbegin_quest(18107)) + changequest 18107,18108; donpcevent "#findship::OnEnable"; close; } else if (mos_whale_edq == 12) { @@ -892,7 +956,9 @@ mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ mes "[Mr. Ibanoff]"; mes "At first, hold the rudder to go"; mes "forward, to the east."; - set mos_whale_edq,20; + mos_whale_edq = 20; + if (isbegin_quest(18114)) + changequest 18114,18115; close; } else if (mos_whale_edq == 20) { mes "[Mr. Ibanoff]"; @@ -902,14 +968,17 @@ mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ close; } else if (mos_whale_edq == 23 || mos_whale_edq == 25) callsub S_D_1,5,241,242,243,244; - else if (mos_whale_edq == 241 || mos_whale_edq == 243 || mos_whale_edq == 244) callsub S_D_2,0; - else if (mos_whale_edq == 242) callsub S_D_2,1; + //else if (mos_whale_edq == 241 || mos_whale_edq == 243 || mos_whale_edq == 244) callsub S_D_2,0; + //else if (mos_whale_edq == 242) callsub S_D_2,1; + else if (mos_whale_edq >= 241 && mos_whale_edq <= 244) callsub S_D_2, (mos_whale_edq -241); else if (mos_whale_edq == 26) { mes "[Mr. Ibanoff]"; mes "Look there!"; mes "There is a moving island!"; mes "We have done well!"; next; + // if (isbegin_quest(18115)) + // changequest 18115,18116; mes "[Mr. Ibanoff]"; mes "Oh...my..."; mes "It really is there..."; @@ -936,9 +1005,11 @@ mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ mes "can return without problems."; mes "I will pray for you."; mes "See you next time."; - set mos_whale_edq,30; + mos_whale_edq = 30; close2; warp "mosk_fild01",93,94; + if (isbegin_quest(18115)) + changequest 18115,18116; end; } mes "[Mr. Ibanoff]"; @@ -952,13 +1023,13 @@ mosk_ship,98,110,3 script Mr. Ibanoff#npc2 964,{ S_D_1: if (rand(1,getarg(0)) == 3) { - set .@ship2,rand(4); + .@ship2 = rand(4); setarray .@d$[0],"East","West","South","North"; mes "[Mr. Ibanoff]"; mes "Hm. The sea currents have changed."; mes "Adjust the rudder forward to the"; mes .@d$[.@ship2]+", to follow the currents."; - set mos_whale_edq,getarg(.@ship2+1); + mos_whale_edq = getarg(.@ship2+1); close; } mes "[Mr. Ibanoff]"; @@ -969,7 +1040,7 @@ S_D_1: mes "[Mr. Ibanoff]"; mes "We had better keep sailing on this heading for now."; close; - + S_D_2: setarray .@d$[0],"East","West","South","North"; mes "[Mr. Ibanoff]"; @@ -983,10 +1054,10 @@ S_D_2: //---------------------------------------------------------------------------- // Rudder //---------------------------------------------------------------------------- -mosk_ship,101,111,4 script rudder#ship 111,{ - if (mos_whale_edq == 5) { +mosk_ship,101,111,4 script rudder#ship HIDDEN_NPC,{ + if (mos_whale_edq == 5) callsub S_Rud1,1,0; - } else if (mos_whale_edq == 4) { + else if (mos_whale_edq == 4) { mes "[Mr. Ibanoff]"; mes "You don't have to adjust the rudder for now."; mes "Wait for my direction."; @@ -997,53 +1068,22 @@ mosk_ship,101,111,4 script rudder#ship 111,{ mes "Only when I order you to,"; mes "you adjust the rudder."; close; - } else if (mos_whale_edq == 7 && $@mos1_edq == 0) { - callsub S_Rud1,4,1; - } else if (mos_whale_edq == 7 && $@mos1_edq > 0) { + } else if ($@mos1_edq > 0) { mes "[Mr. Ibanoff]"; mes "We should make sure to kill any"; mes "monsters onboard."; close; - } else if (mos_whale_edq == 8 && $@mos1_edq == 0) { + } else if (mos_whale_edq == 7) + callsub S_Rud1,4,1; + else if (mos_whale_edq == 8 || mos_whale_edq == 21 || mos_whale_edq == 23) { mes "[Mr. Ibanoff]"; mes "Do not yet adjust the rudder."; mes "Only when I order you to,"; mes "you adjust the rudder."; close; - } else if (mos_whale_edq == 8 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 91 && $@mos1_edq == 0) { - callsub S_Rud1,1,2; - } else if (mos_whale_edq == 92 && $@mos1_edq == 0) { - callsub S_Rud1,2,2; - } else if (mos_whale_edq == 93 && $@mos1_edq == 0) { - callsub S_Rud1,3,2; - } else if (mos_whale_edq == 94 && $@mos1_edq == 0) { - callsub S_Rud1,4,2; - } else if (mos_whale_edq == 7 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 8 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 10 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 11 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq > 10 && mos_whale_edq < 13) { + } else if (mos_whale_edq >= 91 && mos_whale_edq <= 94) + callsub S_Rud1, (mos_whale_edq -90), 2; + else if (mos_whale_edq > 10 && mos_whale_edq < 13) { mes "[Mr. Ibanoff]"; mes "Look... Beyond the sea!"; mes "Do you see something moving"; @@ -1055,51 +1095,15 @@ mosk_ship,101,111,4 script rudder#ship 111,{ mes "Go around the deck to look more"; mes "carefully! Go!"; close; - } else if (mos_whale_edq > 89 && mos_whale_edq < 100 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 20) { + } else if (mos_whale_edq == 20) callsub S_Rud1,1,0; - } else if (mos_whale_edq == 21) { - mes "[Mr. Ibanoff]"; - mes "Do not yet adjust the rudder."; - mes "Only when I order you to,"; - mes "you adjust the rudder."; - close; - } else if (mos_whale_edq == 22 && $@mos1_edq == 0) { + else if (mos_whale_edq == 22) callsub S_Rud1,4,1; - } else if (mos_whale_edq == 22 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 23 && $@mos1_edq == 0) { - mes "[Mr. Ibanoff]"; - mes "Do not yet adjust the rudder."; - mes "Only when I order you to,"; - mes "you adjust the rudder."; - close; - } else if (mos_whale_edq == 23 && $@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 241 && $@mos1_edq == 0) { - callsub S_Rud1,1,2; - } else if (mos_whale_edq == 242 && $@mos1_edq == 0) { - callsub S_Rud1,2,2; - } else if (mos_whale_edq == 243 && $@mos1_edq == 0) { - callsub S_Rud1,3,2; - } else if (mos_whale_edq == 244 && $@mos1_edq == 0) { + else if (mos_whale_edq >= 241 && mos_whale_edq <= 243) + callsub S_Rud1, (mos_whale_edq -240), 2; + else if (mos_whale_edq == 244) callsub S_Rud1,4,1; - } else if ($@mos1_edq > 0) { - mes "[Mr. Ibanoff]"; - mes "We should make sure to kill any"; - mes "monsters onboard."; - close; - } else if (mos_whale_edq == 25 && $@mos1_edq == 0) { + else if (mos_whale_edq == 25) { mes "[Mr. Ibanoff]"; mes "You can adjust the rudder,"; mes "under my direction."; @@ -1109,7 +1113,8 @@ mosk_ship,101,111,4 script rudder#ship 111,{ mes "Hey! Listen to what I am saying."; mes "How come you go there without my"; mes "permission..."; - next; + //next; + close; } mes "[Mr. Ibanoff]"; mes "What? How did you get on"; @@ -1117,22 +1122,22 @@ mosk_ship,101,111,4 script rudder#ship 111,{ mes "I'll forgive you this once, but go"; mes "back now."; close2; - //set mos_whale_edq,4; lol, why is this here? + //mos_whale_edq = 4; warp "moscovia",162,56; end; - + S_Rud1: mes "Which way?"; next; setarray .@d$[1],"East","West","South","North"; - set .@j, select(implode(.@d$,":")) - 1; + .@j = select(implode(.@d$,":")) -1; if (.@j == getarg(0)) { mes "[Mr. Ibanoff]"; mes "Good. Firstly, we should"; mes "keep heading "+strtolower(.@d$[getarg(0)])+" this way."; mes "When I give the order,"; mes "please adjust the rudder again."; - if (getarg(1) == 2) set .@r,rand(1,4); + if (getarg(1) == 2) .@r = rand(1,4); if (getarg(1) == 2 && .@r == 3) { next; mes "[Mr. Ibanoff]"; @@ -1145,34 +1150,37 @@ S_Rud1: mes "These monsters are like none I have"; mes "ever encountered! Be careful! We"; mes "must repulse these monsters!"; - set $@mos1_edq,$@mos1_edq+1; - donpcevent "Baehideun3#ship::OnEnable"; + $@mos1_edq++; + if (mos_whale_edq >= 241) + donpcevent "Baehideun4#ship::OnEnable"; + else + donpcevent "Baehideun3#ship::OnEnable"; } - set mos_whale_edq,(getarg(1) == 2)?((mos_whale_edq >= 241)?((.@r != 3)?26:25):((.@r != 3)?10:11)):mos_whale_edq + 1; + mos_whale_edq = (getarg(1) == 2)?((mos_whale_edq >= 241)?((.@r != 3)?26:25):((.@r != 3)?10:11)):(mos_whale_edq + 1); close; - } + } mes "[Mr. Ibanoff]"; mes "I said that we should go "+.@d$[getarg(0)]+"!"; mes "You should sail in the right"; mes "direction! To the "+strtolower(.@d$[getarg(0)])+"!"; if (getarg(1) >= 1) { - set .@r,(getarg(1) == 1)?5:4; + .@r = (getarg(1) == 1)?5:4; if (rand(1,.@r) <= 2) { next; mes "[Mr. Ibanoff]"; mes "Oh no! Monsters have appeared!"; mes "Let's get ready to fight! Hurry!"; - set $@mos1_edq,$@mos1_edq+1; + $@mos1_edq++; donpcevent "Baehideun1#ship::OnEnable"; } } - close; + close; } //---------------------------------------------------------------------------- // Aged Stranger - Whale Island //---------------------------------------------------------------------------- -mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ +mosk_fild01,86,104,3 script Aged Stranger#npc 4_M_GUSLIMAN,{ if ((MaxWeight-Weight) < 2000) { mes "[Aged Stranger]"; mes "You're carrying too many items."; @@ -1222,6 +1230,8 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "Right. We are standing on"; mes "the back of a gigantic whale!"; mes "That's why I call it Whale Island!"; + // if (isbegin_quest(18109)) + // changequest 18109,18110; next; mes "["+strcharinfo(0)+"]"; mes "How...? How is it possible"; @@ -1261,14 +1271,16 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "You can relax."; next; callsub S_AS_3; - set mos_whale_edq,14; + mos_whale_edq = 14; + if (isbegin_quest(18109)) + changequest 18109,18110; close2; sleep2 20000; - set mos_whale_edq,15; + mos_whale_edq = 15; end; } else if (mos_whale_edq == 14) { callsub S_AS_3; - set mos_whale_edq,15; + mos_whale_edq = 15; close; } else if (mos_whale_edq == 15) { mes "[Aged Stranger]"; @@ -1297,6 +1309,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "want to come again to meet me, you"; mes "can endure the same seas as last"; mes "time. I won't stop you. Hehehe."; + changequest 18110,18111; close2; warp "moscovia",163,54; end; @@ -1403,7 +1416,9 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "Tell me whenever you're ready, and"; mes "I'll send you back to the"; mes "mainland."; - set mos_whale_edq,31; + if (isbegin_quest(18116)) + changequest 18116,18117; + mos_whale_edq = 31; close; } else if (mos_whale_edq == 31) { mes "[Aged Stranger]"; @@ -1421,7 +1436,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "[Aged Stranger]"; mes "I see. If so, let's go."; next; - set mos_whale_edq,32; + mos_whale_edq = 32; callsub S_AS_3; close2; warp "moscovia",162,56; @@ -1441,7 +1456,8 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ delitem 7197,20; //Tough_Vines delitem 7106,20; //Goat's_Horn delitem 7065,10; //Sea_Otter_Leather - set mos_whale_edq,34; + mos_whale_edq = 34; + changequest 18117,18118; mes "[Aged Stranger]"; mes "Wait for a moment until I make the"; mes "instrument successfully."; @@ -1487,7 +1503,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "which comes from a faraway land of"; mes "the ancestors of Moscovia."; getitem 2707,1; - set mos_whale_edq,35; + mos_whale_edq = 35; next; mes "[Aged Stranger]"; mes "I am the last person who has"; @@ -1504,6 +1520,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "island. Everything is going to be"; mes "well."; next; + changequest 18118,18119; } callsub S_AS_2,1; } else if (mos_whale_edq == 36) { @@ -1511,7 +1528,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "Are you ready to learn the Gusli?"; mes "Please equip the Gusli."; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707) { + if (isequipped(2707)) { mes "[Aged Stranger]"; mes "Hm... Very well."; mes "At first, look at me how I play,"; @@ -1534,11 +1551,17 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "[Aged Stranger]"; mes "This may go faster than I expected."; next; + mes "[Aged Stranger]"; + mes "Okay, it's time for your turn. Play it. Play the song that I played."; + next; + callsub S_AS_1,3;// chance success + } + else { + mes "[Aged Stranger]"; + mes "Okay, it's time for your turn. Play it. Play the song that I played."; + next; + callsub S_AS_1,6; } - mes "[Aged Stranger]"; - mes "Okay, it's time for your turn. Play it. Play the song that I played."; - next; - callsub S_AS_1; } mes "[Aged Stranger]"; mes "Um... Your preparations are not"; @@ -1554,7 +1577,7 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "[Aged Stranger]"; mes "Are you ready to learn the Gusli?"; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707) { + if (isequipped(2707)) { mes "[Aged Stranger]"; mes "Um... You did well."; next; @@ -1564,12 +1587,19 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "absolutely play it wonderfully."; mes "Cheer up."; next; - } mes "[Aged Stranger]"; mes "Good. Let's play again. Play the"; mes "song that I played."; next; - callsub S_AS_1; + callsub S_AS_1, 3; + } + else { + mes "[Aged Stranger]"; + mes "Good. Let's play again. Play the"; + mes "song that I played."; + next; + callsub S_AS_1, 6; + } } mes "[Aged Stranger]"; mes "Um... Your preparations are not"; @@ -1581,9 +1611,9 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "Tell me again when you are prepared"; mes "to play the Gusli correctly."; close; - } else if (mos_whale_edq == 38) { + } else if (mos_whale_edq == 38) callsub S_AS_2,0; - } else if (mos_whale_edq > 38) { + else if (mos_whale_edq > 38) { mes "[Aged Stranger]"; mes "This is the Whale Island."; mes "I don't know how you came here."; @@ -1598,7 +1628,6 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ mes "Well, well... Do as you please."; mes "If so, I will take a rest."; close; - break; case 2: mes "[Aged Stranger]"; mes "I see. If so, let's go."; @@ -1607,7 +1636,6 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ close2; warp "moscovia",162,56; end; - break; case 3: mes "[Aged Stranger]"; mes "Oh, if you want, I can"; @@ -1635,39 +1663,37 @@ mosk_fild01,86,104,3 script Aged Stranger#npc 963,{ warp "mosk_fild02",204,54; end; } - } else { - mes "[Aged Stranger]"; - mes "Long time, no see!"; - mes "You probably like the island, don't you?"; - mes "Please stay and take a rest."; - next; - mes "[Aged Stranger]"; - mes "Or if you want, I can send you back"; - mes "to the mainland. What'll it be?"; - next; - if(select("Look around.:Go back to the mainland.") == 1) { - mes "[Aged Stranger]"; - mes "Well, well... Do as you please."; - mes "If so, I will take a rest."; - close; - } - mes "[Aged Stranger]"; - mes "Good. I will go to the place"; - mes "right way."; - next; - soundeffect "mos_gusli1.wav",0; - mes "A old man started to play a instrument"; - mes "closing his eyes."; - mes "And then he didn't any answer so, looks like"; - mes "falling down to only his world."; - close2; - warp "moscovia",162,56; - end; } + mes "[Aged Stranger]"; + mes "Long time, no see!"; + mes "You probably like the island, don't you?"; + mes "Please stay and take a rest."; + next; + mes "[Aged Stranger]"; + mes "Or if you want, I can send you back"; + mes "to the mainland. What'll it be?"; + next; + if(select("Look around.:Go back to the mainland.") == 1) { + mes "[Aged Stranger]"; + mes "Well, well... Do as you please."; + mes "If so, I will take a rest."; + close; + } + mes "[Aged Stranger]"; + mes "Good. I will go to the place"; + mes "right way."; + next; + soundeffect "mos_gusli1.wav",0; + mes "A old man started to play a instrument"; + mes "closing his eyes."; + mes "And then he didn't any answer so, looks like"; + mes "falling down to only his world."; + close2; + warp "moscovia",162,56; end; S_AS_1: - if (rand(1,3) == 2) { + if (rand(1,getarg(0)) == 2) { soundeffect "mos_gusli1.wav",0; emotion e_no1; specialeffect2 EF_EXIT; @@ -1688,7 +1714,11 @@ S_AS_1: mes "[Aged Stranger]"; mes "With your ability to play, surely"; mes "you can win the admiration of all."; - set mos_whale_edq,38; + mos_whale_edq = 38; + if (isbegin_quest(18119)) + changequest 18119,18120; + else if (isbegin_quest(18118))// debug + changequest 18118,18120; close; } mes "[Aged Stranger]"; @@ -1702,7 +1732,7 @@ S_AS_1: mes "I will check on you again."; mes "If you practice, you will be good"; mes "at it in no time."; - set mos_whale_edq,37; + mos_whale_edq = 37; close; S_AS_2: @@ -1756,7 +1786,7 @@ S_AS_2: mes "[Aged Stranger]"; mes "Okay. If you are ready to play the"; mes "Gusli, let me know."; - set mos_whale_edq,36; + mos_whale_edq = 36; close; case 3: mes "[Aged Stranger]"; @@ -1784,12 +1814,7 @@ S_AS_2: mes "with this island. Only if you are a"; mes "friend... heheh."; next; - soundeffect "mos_gusli1.wav",0; - mes "-The old man starts to play"; - mes "his instrument, with eyes closed."; - mes "He is unresponsive..."; - mes "like having fallen into a world"; - mes "only his own.-"; + callsub S_AS_3; close2; warp "moscovia",162,56; end; @@ -1808,7 +1833,7 @@ S_AS_3: //---------------------------------------------------------------------------- // Csar Alexsay III - Moscovia Palace //---------------------------------------------------------------------------- -mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ +mosk_in,131,92,3 script Csar Alexsay III#npc 4_M_RUSKING,7,7,{ if ((MaxWeight-Weight) < 2000) { mes "[Csar Alexsay III]"; mes "You're carrying too many items."; @@ -1885,7 +1910,8 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "And, when you succeed in"; mes "banishing winter with magic,"; mes "announce that to me immediately."; - set mos_nowinter,14; + mos_nowinter = 14; + changequest 18076,18077; close; } } @@ -1893,9 +1919,10 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "I said to bring me"; mes "40 Yaga's Pestles"; mes "from the Baba Yaga."; - set mos_nowinter,13; + mos_nowinter = 13; close; - } else if (mos_nowinter == 13) { + } + else if (mos_nowinter == 13) { mes "[Csar Alexsay III]"; mes "Did you bring some evidence to"; mes "resolve your issue of doubt, traveler?"; @@ -1928,7 +1955,8 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "[Csar Alexsay III]"; mes "If you do that, I will arrest you immediately!"; mes "So take care of yourself."; - set mos_nowinter,14; + mos_nowinter = 14; + changequest 18076,18077; close; } mes "[Csar Alexsay III]"; @@ -1998,8 +2026,9 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "Here, take it."; mes "I give it as an atonement"; mes "to make my people happy."; - set mos_nowinter,21; - getitem 603,1; + mos_nowinter = 21; + completequest 18079; + getitem 603,1;// Old_Blue_Box next; mes "[Csar Alexsay III]"; mes "Stay here as long as you want, and"; @@ -2105,7 +2134,8 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "You got it, traveler?"; mes "You have a heavy responsibility."; mes "Bring evidence of this whale island to me, to provide me with some relief. Now go."; - set mos_whale_edq,18; + mos_whale_edq = 18; + changequest 18112,18113; close; } else if (mos_whale_edq > 17 && mos_whale_edq < 35) { mes "[Csar Alexsay III]"; @@ -2125,7 +2155,7 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "A Gooselri? Which only exists"; mes "in the whale island? Let's see."; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707 || countitem(2707) > 0) { + if (countitem(2707) > 0) { mes "[Csar Alexsay III]"; mes "Oh... Is this instrument... a Gooselri?"; next; @@ -2191,7 +2221,10 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "Even though I regard as your effort for the time so, award you. Take it and go out."; getitem 12702,1; //Old_Bleu_Box getexp (checkre(3))?50000:500000,0; - set mos_whale_edq,39; + mos_whale_edq = 39; + if (isbegin_quest(18118))// debug + changequest 18118,18119; + completequest 18119; close; } mes "[Csar Alexsay III]"; @@ -2219,7 +2252,10 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "Even though I regard as your effort for the time so, award you. Take it."; getitem 12702,1; //Old_Bleu_Box getexp (checkre(3))?70000:700000,0; - set mos_whale_edq,40; + mos_whale_edq = 40; + if (isbegin_quest(18118))// debug + changequest 18118,18119; + completequest 18119; close; } mes "[Csar Alexsay III]"; @@ -2235,7 +2271,7 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "something to satisfy me"; mes "at the whale island?"; next; - if (getequipid(EQI_ACC_L) || getequipid(EQI_ACC_R) == 2707 || countitem(2707)) { + if (countitem(2707)) { mes "[Csar Alexsay III]"; mes "Oh... Is this instrument... a Gooselri?"; next; @@ -2301,7 +2337,8 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "efforts, in the name of the Csar."; getitem 617,1; //Old_Violet_Box getexp (checkre(3))?100000:1200000,0; - set mos_whale_edq,41; + mos_whale_edq = 41; + completequest 18120; close; } mes "[Csar Alexsay III]"; @@ -2338,12 +2375,95 @@ mosk_in,131,92,3 script Csar Alexsay III#npc 965,{ mes "Go back to your hometown and tell everyone about the beauty of Moscovia,"; mes "and my great government."; close; + +OnTouch: + if (mos_nowinter != 12) end; + mes "[Csar Alexsay III]"; + mes "You!!!"; + mes "So many people saw you"; + mes "meet with Baba Yaga!"; + next; + mes "[Csar Alexsay III]"; + mes "The guilt which must be felt, when"; + mes "meeting secretly with a witch..."; + next; + mes "[Csar Alexsay III]"; + mes "For that, we indict capital"; + mes "punishment without any just trial!"; + next; + mes "[Csar Alexsay III]"; + mes "But you are a stranger to these"; + mes "lands... So I will hold you in special trial."; + next; + mes "[Csar Alexsay III]"; + mes "If you have anything to say..."; + mes "spare me no detail."; + next; + select("Explain the circumstances."); + mes "-Talk about what happened with Baba"; + mes "Yaga, and move forward with the plan.-"; + next; + mes "[Csar Alexsay III]"; + mes "Hm-hm, that's an embarrassing story..."; + mes "But if you are telling the"; + mes "truth, my people will be pleased."; + next; + mes "[Csar Alexsay III]"; + mes "Okay, Bring to me"; + mes "any evidence, to believe"; + mes "what you are saying."; + next; + mes "[Csar Alexsay III]"; + mes "You killed the Baba Yaga!!"; + mes "If this is true, bring"; + mes "me Yaga's Pestles."; + mes "If you do, I will make"; + mes "sure no one ever doubts you."; + next; + if (countitem(7762) > 39) { + if(select("Show the Yaga's Pestles.:Do nothing.") == 1) { + mes "[" + strcharinfo(0) + "]"; + mes "Yes, Here you are."; + next; + mes "-Offered the Yaga's Pestles.-"; + delitem 7762,40; + next; + mes "[Csar Alexsay III]"; + mes "Hm.. You do have them."; + mes "For the time being, I will admit"; + mes "that you are coming and going to"; + mes "hunt Baba Yaga."; + next; + mes "[Csar Alexsay III]"; + mes "But do not engage in doubtable"; + mes "behavior that would instigate my"; + mes "people to act in a strange way!"; + next; + mes "[Csar Alexsay III]"; + mes "If you do that, I will arrest you immediately!"; + mes "So take care of yourself."; + next; + mes "[Csar Alexsay III]"; + mes "And, when you succeed in"; + mes "banishing winter with magic,"; + mes "announce that to me immediately."; + mos_nowinter = 14; + changequest 18076,18077; + close; + } + } + mes "[Csar Alexsay III]"; + mes "I said to bring me"; + mes "40 Yaga's Pestles"; + mes "from the Baba Yaga."; + mos_nowinter = 13; + close; } //---------------------------------------------------------------------------- // Prime Minister Dmitree - Moscovia Palace //---------------------------------------------------------------------------- -mosk_in,127,89,3 script Prime Minister Dmitree#m 967,{ +mosk_in,127,89,3 script Prime Minister Dmitree#m 4_M_RUSMAN1,{ if (mos_nowinter > 11 && mos_nowinter < 14) { mes "[Prime Minister Dmitree]"; mes "You are in trouble if"; @@ -2424,7 +2544,7 @@ mosk_in,127,89,3 script Prime Minister Dmitree#m 967,{ next; mes "[Prime Minister Dmitree]"; mes "I will admit you. If our dear Csar is satisfied with your story, he will give you a big prize."; - set mos_whale_edq,17; + mos_whale_edq = 17; close; } else if (mos_whale_edq == 17) { mes "[Prime Minister Dmitree]"; @@ -2467,7 +2587,7 @@ mosk_in,127,89,3 script Prime Minister Dmitree#m 967,{ //---------------------------------------------------------------------------- // Island Trigger - Docks //---------------------------------------------------------------------------- -moscovia,136,46,4 script Find#ship 844,4,4,{ +moscovia,136,46,4 script Find#ship CLEAR_NPC,4,4,{ end; OnTouch: @@ -2480,7 +2600,7 @@ OnTouch: mes "Stop by the whale island?"; next; if(select("Go to Whale Island.:Stay put.") == 1) { - if (getequipid(EQI_ACC_L) == 2707 || getequipid(EQI_ACC_R) == 2707) { + if (isequipped(2707)) { soundeffect "mos_gusli2.wav",0; mes "-Slowly, your hands are on the"; mes "Gusli, and the playing starts..."; @@ -2507,8 +2627,8 @@ OnTouch: mes "The aged stranger said that when I"; mes "want to go to Whale Island again, I"; mes "should play the Gusli from this place..."; - close; } + close; } mes "["+strcharinfo(0)+"]"; mes "I can go some other time."; @@ -2519,31 +2639,21 @@ OnTouch: //---------------------------------------------------------------------------- // Triggers //---------------------------------------------------------------------------- - -mosk_ship,1,1,4 script Baehideun#ship -1,{ -OnInit: - set $@mos1_edq,0; - end; -} - -mosk_ship,81,110,0 script #findship 844,5,5,{ -OnInit: - disablenpc "#findship"; - stopnpctimer; - end; - +mosk_ship,81,110,0 script #findship CLEAR_NPC,5,5,{ OnEnable: enablenpc "#findship"; initnpctimer; end; -OnDisable: +OnTimer300000: + stopnpctimer; +OnInit: + $@mos1_edq = 0; disablenpc "#findship"; - set $@mos1_edq,0; end; OnTouch: - if (mos_whale_edq != 12) end; + if (mos_whale_edq == 12) { mes "seeewaaaaaaaaaaa"; next; mes "[Mr. Ibanoff]"; @@ -2559,70 +2669,63 @@ OnTouch: mes "[Mr. Ibanoff]"; mes "Watch out! "+strcharinfo(0)+"!"; mes "Ah... That... That is... What..."; - set mos_whale_edq,13; + mos_whale_edq = 13; + if (isbegin_quest(18108)) + changequest 18108,18109; close2; warp "mosk_fild01",95,93; - end; - -OnTimer300000: - donpcevent "#findship::OnDisable"; + } end; } - script Baehideun#main -1,{ OnInit: - if (compare(strnpcinfo(0),"main")) end; disablenpc strnpcinfo(0); - stopnpctimer; end; - + OnEnable: enablenpc strnpcinfo(0); - set .@c,charat(strnpcinfo(0),9); + .@c = charat(strnpcinfo(0),9); switch (.@c) { - case 1: setarray .@m, 89,112,1425,85,110,1425; break; - case 2: setarray .@m, 89,112,1425,80,110,1426,83,114,1426,85,110,1425; break; - case 3: setarray .@m, 85,111,1451,89,112,1543,90,106,1543; break; - case 4: setarray .@m, 85,111,1451,89,112,1543,90,106,1543; break; + case 1: setarray .@m, 89,112,1551,85,110,1579; break;// G_MARSE, G_HYDRA + case 2: setarray .@m, 89,112,1425,80,110,1254,83,114,1254,85,110,1425; break;// G_OBEAUNE, RAGGLER + case 3: setarray .@m, 85,111,1451,89,112,1543,90,106,1543; break;// G_MERMAN, G_KAPHA + case 4: setarray .@m, 85,111,1069,89,112,1543,90,106,1543; break;// SWORD_FISH, G_KAPHA } - for (set .@i, 0; .@i < getarraysize(.@m); set .@i, .@i + 3) + for (.@i = 0; .@i < getarraysize(.@m); .@i += 3) monster "mosk_ship",.@m[.@i],.@m[.@i+1],"Sea Monster",.@m[.@i+2],1,strnpcinfo(0)+"::OnMyMobDead"; initnpctimer; end; +OnTimer300000: + killmonster "mosk_ship",strnpcinfo(0)+"::OnMyMobDead"; OnDisable: - set $@mos1_edq,0; + $@mos1_edq = 0; stopnpctimer; disablenpc strnpcinfo(0); end; OnMyMobDead: if (!mobcount("mosk_ship",strnpcinfo(0)+"::OnMyMobDead")) { - set $@mos1_edq,0; + $@mos1_edq = 0; mes "[Mr. Ibanoff]"; mes "Now that all the monsters are gone,"; mes "we can start sailing again"; mes "normally."; - set .@c,charat(strnpcinfo(0),9); + .@c = charat(strnpcinfo(0),9); switch (.@c) { - case 1: break; + case 1: case 2: break; - case 3: set mos_whale_edq,11; break; - case 4: set mos_whale_edq,26; break; + case 3: mos_whale_edq = 11; break; + case 4: mos_whale_edq = 26; break; } donpcevent strnpcinfo(0)+"::OnDisable"; close; } end; - -OnTimer300000: - killmonster "mosk_ship",strnpcinfo(0)+"::OnMyMobDead"; - set $@mos1_edq,0; - donpcevent strnpcinfo(0)+"::OnDisable"; - end; } mosk_ship,2,2,4 duplicate(Baehideun#main) Baehideun1#ship -1 -mosk_ship,3,3,4 duplicate(Baehideun#main) Baehideun2#ship -1 +// mosk_ship,3,3,4 duplicate(Baehideun#main) Baehideun2#ship -1 mosk_ship,5,5,4 duplicate(Baehideun#main) Baehideun3#ship -1 mosk_ship,15,15,4 duplicate(Baehideun#main) Baehideun4#ship -1 @@ -2701,11 +2804,12 @@ function script F_MOS_1 { mes "Oh, God, You're so kind"; mes "Mikhail is such a timid boy. I guess he didn't leave this village."; mes "Please bring him to me, then~"; - set mos_swan,1; + mos_swan = 1; + setquest 18060; close; } -mosk_in,144,279,5 script Gallina#mos 959,{ +mosk_in,144,279,5 script Gallina#mos 4_F_RUSWOMAN1,{ if (!mos_swan) { callfunc("F_MOS_1"); } else if (mos_swan == 1) { @@ -2713,7 +2817,7 @@ mosk_in,144,279,5 script Gallina#mos 959,{ mes "Mikhail, my timid son must still be in this village."; mes "I'm sorry if he's shy and timid like his father."; close; - } else if (mos_swan > 1 && mos_swan < 25) { + } else if (mos_swan < 25) { mes "["+strcharinfo(0)+"]"; mes "Mikhail hasn't come yet?"; next; @@ -2755,7 +2859,8 @@ mosk_in,144,279,5 script Gallina#mos 959,{ mes "[Gallina]"; mes "Well, now I have to get to work!"; mes "I'll make you my hotcakes someday. Please visit me later"; - set mos_swan,100; + mos_swan = 100; + completequest 18069; getexp (checkre(3))?90000:1000000,0; close; } @@ -2769,7 +2874,7 @@ mosk_in,144,279,5 script Gallina#mos 959,{ //---------------------------------------------------------------------------- // Anna - Sister //---------------------------------------------------------------------------- -mosk_in,148,274,1 script Anna#mos 958,{ +mosk_in,148,274,1 script Anna#mos 4_F_RUSCHILD,{ if (!mos_swan) { callfunc("F_MOS_1"); } else if (mos_swan == 1) { @@ -2795,7 +2900,6 @@ mosk_in,148,274,1 script Anna#mos 958,{ emotion e_swt,1; mes "["+strcharinfo(0)+"]"; mes "Hahaha, you're right."; - next; break; case 2: mes "["+strcharinfo(0)+"]"; @@ -2810,7 +2914,6 @@ mosk_in,148,274,1 script Anna#mos 958,{ mes "["+strcharinfo(0)+"]"; mes "You seem very courageous."; mes "I can understand why your mother worries about him."; - next; break; case 3: mes "["+strcharinfo(0)+"]"; @@ -2870,8 +2973,10 @@ mosk_in,148,274,1 script Anna#mos 958,{ next; mes "["+strcharinfo(0)+"]"; mes "It's the only clue, I guess I'll go to ^3131FFInn 'Sticky Herb Tree'^000000?"; - if (mos_swan == 2) set mos_swan,3; - next; + if (mos_swan == 2) { + mos_swan = 3; + changequest 18060,18061; + } break; case 4: mes "["+strcharinfo(0)+"]"; @@ -2886,20 +2991,16 @@ mosk_in,148,274,1 script Anna#mos 958,{ if (.@AnnaInfo$ == "Gravity") { mes "[Anna]"; mes "I know that they have a game called RAGNAROK Online 2... and they like... what am I saying now... right?"; - next; } else if (.@AnnaInfo$ == "Gallina") { mes "[Anna]"; mes "Mom's hotcakes are so delicious! Oh, it's sweet flavor!"; mes "Everyone in this village likes Mom's hotcakes. Hehe."; - next; } else if (.@AnnaInfo$ == "Mikhail") { mes "[Anna]"; mes "Mikhail is a timid fool!"; - next; } else { mes "[Anna]"; mes "I have no idea about that thing."; - next; } break; case 5: @@ -2910,12 +3011,13 @@ mosk_in,148,274,1 script Anna#mos 958,{ mes "She doesn't want to talk to me -"; close; } + next; } } else if (mos_swan == 3) { mes "["+strcharinfo(0)+"]"; mes "Ok, I got a clue from Anna and one thing that I have to do is go to ^3131FFInn 'Sticky Herb Tree'^000000."; close; - } else if (mos_swan > 3 && mos_swan < 12) { + } else if (mos_swan < 12) { mes "[Anna]"; mes "Mikhail is foolish, timid and a coward!"; close; @@ -2951,7 +3053,7 @@ mosk_in,148,274,1 script Anna#mos 958,{ //---------------------------------------------------------------------------- // Bed //---------------------------------------------------------------------------- -mosk_in,136,279,3 script Bed#mos1 111,{ +mosk_in,136,279,3 script Bed#mos1 HIDDEN_NPC,{ mes "- There are sheets and a pillow which seem so neat and soft that I'll probably fall asleep as soon as I lie down on them. -"; if (mos_swan != 11) close; next; @@ -2961,22 +3063,26 @@ mosk_in,136,279,3 script Bed#mos1 111,{ } mes "- You come near the bed to look it over. -"; next; - while (.@c < 2) { - for (set .@i, 0; .@i < 4; set .@i, .@i + 1) - mes " .............. "; - set .@c, .@c + 1; - next; - } + mes " .............. "; + mes " .............. "; + mes " .............. "; + mes " .............. "; + next; + mes " .............. "; + mes " .............. "; + mes " .............. "; + mes " .............. "; + mes " .............. "; + next; mes "- You didn't find anything -"; close; } - -mosk_in,161,279,3 duplicate(Bed#mos1) Bed#mos2 111 +mosk_in,161,279,3 duplicate(Bed#mos1) Bed#mos2 HIDDEN_NPC //---------------------------------------------------------------------------- // Fire pot + Mikhail //---------------------------------------------------------------------------- -mosk_in,205,268,3 script Fire pot#mos 111,{ +mosk_in,205,268,3 script Fire pot#mos HIDDEN_NPC,{ if (!mos_swan) { mes "- It's a fire pot to heat the room or bake something -"; close; @@ -2984,9 +3090,9 @@ mosk_in,205,268,3 script Fire pot#mos 111,{ mes "- It's a fire pot that is used when Gallina bakes hotcakes."; mes "It seems that this has not been used for a long time."; mes "I think I should ask his family where he might have fun off to -"; - set mos_swan,2; + mos_swan = 2; close; - } else if (mos_swan > 1 && mos_swan < 11) { + } else if (mos_swan < 11) { mes "- It's a fire pot that is used when Gallina bakes hotcakes."; mes "It seems that it was used a long time ago. -"; close; @@ -3000,12 +3106,17 @@ mosk_in,205,268,3 script Fire pot#mos 111,{ } mes "- You come near the pot to look it over. -"; next; - while (.@c < 2) { - for (set .@i, 0; .@i < 4; set .@i, .@i + 1) - mes " .............. "; - set .@c, .@c + 1; - next; - } + mes " .............. "; + mes " .............. "; + mes " .............. "; + mes " .............. "; + next; + mes " .............. "; + mes " .............. "; + mes " .............. "; + mes " .............. "; + mes " .............. "; + next; mes "- As you look it over very carefully, you find some pieces of bread on the floor around the fire pot! -"; next; switch(select("Mikhail is in the fire pot.:Mikhail is around the fire pot.:There's nothing between pieces of bread and Mikhail.")) { @@ -3094,19 +3205,18 @@ mosk_in,205,268,3 script Fire pot#mos 111,{ next; mes "- I need to know what's required for the paste."; mes "I'll ask that guy ^3131FFMr. Victor^000000 about them. -"; - set mos_swan,12; + mos_swan = 12; + changequest 18064,18065; close; - break; case 2: mes "- I guess he's near the fire pot. Where can I find him? -"; close; - break; case 3: mes "- I guess pieces of bread have nothing to do with Mikhail. -"; close; } } else if (mos_swan == 12) { - mes "- Ok, what I have to do first is ask Mr.Victor what I need for the paste. -"; + mes "- Ok, what I have to do first is ask Mr. Victor what I need for the paste. -"; close; } else if (mos_swan == 24) { mes "["+strcharinfo(0)+"]"; @@ -3149,15 +3259,16 @@ mosk_in,205,268,3 script Fire pot#mos 111,{ mes "[Mikhail]"; mes "Now I'm gonna give this back to Mom."; donpcevent "Mikhail#mos::OnInit"; - set mos_swan,25; - delitem 7764,1; + mos_swan = 25; + delitem 7764,1;// High_Strength_Adhesive + changequest 18068,18069; close; } mes "- It's a fire pot to heat the room or bake something -"; close; } -mosk_in,202,269,5 script Mikhail#mos 962,{ +mosk_in,202,269,5 script Mikhail#mos 4_M_RUSCHILD,{ end; OnInit: OnEnable: @@ -3168,88 +3279,12 @@ OnEnable: //---------------------------------------------------------------------------- // Sticky Herb Tree Inn NPCs //---------------------------------------------------------------------------- -mosk_in,135,191,5 script Landlord#mos 961,{ +mosk_in,135,191,5 script Landlord#mos 4_F_RUSWOMAN3,{ mes "[Landlord]"; mes "Oh, welcome to the Inn 'Sticky Herb Tree'."; mes "It is the most comfortable and calmest place in all of Moscovia."; next; - if (mos_swan == 3) { - switch(select("Save:Stay the night - 5000z:Ask her about Mikhail.")) { - case 1: - mes "[Landlord]"; - mes "Your respawn point has been saved."; - mes "Hope we can see you again next time hoho."; - savepoint "mosk_in",142,189; - close; - case 2: - if (Zeny > 4999) { - mes "[Landlord]"; - mes "Ok, I'll bring you the best room."; - mes "Please have a rest, young adventurer."; - close2; - set Zeny,Zeny-5000; - percentheal 100,100; - warp "mosk_in",215,181; - end; - } - mes "[Landlord]"; - mes "The service charge is 5000z."; - mes "Please make sure you have enough money for the service."; - close; - case 3: - mes "[Landlord]"; - emotion e_lv; - mes "Oh~! You look great! Look at the "+((Sex)?"solid muscle":"fair skin")+"!"; - mes "But you look tired. Is it because of a long journey?"; - next; - mes "[Landlord]"; - mes "We've got a room available just for you. "+((Sex)?"It's the best in town. How about staying the night?":"It's like a princess' room."); - mes (Sex)?"I'll charge you at reasonable price for you, handsome guy.":"How about staying the night? I'll mark down the price for you, beautiful lady."; - next; - mes "["+strcharinfo(0)+"]"; - mes "Oh, I'm sorry but I didn't come to stay here."; - mes "I'm looking for a kid and I've got something to ask you..."; - next; - emotion e_omg; - mes "[Landlord]"; - mes "What!?!?"; - next; - mes "[Landlord]"; - mes "Hey~ You've heard about 'give and take'?"; - mes "Haven't you?"; - mes "If you're my customer, I could offer you what you want but you're not!"; - next; - mes "[Landlord]"; - mes "If you promise me to stay overnight, I'll tell you about what you want to know. Deal?"; - next; - if(select("Refuse.:Stay overnight and get the info. - 5000z") == 1) { - emotion e_ag; - mes "[Landlord]"; - mes "Well, get the info by yourself then."; - close; - } - if (Zeny < 5000) { - mes "[Landlord]"; - mes "No way. You don't have enough money."; - mes "Go away! I can't offer you a room."; - close; - } - mes "[Landlord]"; - mes "Oh, God! You're as great as you look~"; - mes "Ok, I'll bring you to the room in a bit!!"; - next; - mes "[Landlord]"; - mes "Come on, please follow me with your luggage."; - mes "Oh, let me carry them. Hohoho, you must be exhausted."; - mes "I wish you a good night's rest. Hohoho."; - set mos_swan,4; - close2; - set Zeny,Zeny-5000; - percentheal 100,100; - warp "mosk_in",215,181; - end; - } - } else if (mos_swan == 4 || mos_swan == 5) { + if (mos_swan == 4 || mos_swan == 5) { mes "[Landlord]"; mes "You're up already?"; mes "Well since you're young you've probably already recovered all of your strength."; @@ -3257,95 +3292,153 @@ mosk_in,135,191,5 script Landlord#mos 961,{ next; while(1) { switch(select("Ask her about the inn:Ask her about Mikhail.:End the conversation")) { - case 1: - mes "[Landlord]"; - mes "The name of our inn came from a big apple tree which is outside of the village."; - mes "I hope our inn will be the most famous place in Moscovia like the apple tree that distinguishes itself in the thick wood."; - next; - break; - case 2: - mes "[Landlord]"; - mes "Mikhail?"; - mes "Ah! You're talking about a cute boy, Mr. Ibanoff's son?"; - mes "Yes I saw him. He was here a few hours ago."; - next; - mes "[Landlord]"; - mes "He looked pale and asked me for a high-strength adhesive. He might've broken something important."; - next; - mes "[Landlord]"; - mes "I felt sorry for him because he was so tense. He's such a sweet boy. I'd like to make him my son."; - mes "Hohoho"; - next; - mes "["+strcharinfo(0)+"]"; - mes "So what happened?"; - mes "Did Mikhail get it?"; - next; - mes "[Landlord]"; - mes "Hoho, I don't really know. Maybe my husband does..."; - mes "He's not much to look at, but he's good at repairing and making stuff! hoho"; - next; - mes "[Landlord]"; - mes "But it's been a long time since he was out of Moscovia so I can't ask him how to make adhesives now..."; - next; - mes "["+strcharinfo(0)+"]"; - mes "......And then?"; - next; - mes "[Landlord]"; - mes "I told him to go to the pub over there."; - mes "I also told him not to drink what those guys offer to him!"; - mes "Cause he's such a cute boy!"; - next; - mes "["+strcharinfo(0)+"]"; - mes "So, did he go there?"; - next; - mes "[Landlord]"; - mes "Yes he did-."; - mes "As he's a good boy, he would go there."; - mes "He's really gentle."; - next; - mes "["+strcharinfo(0)+"]"; - mes "OK. Thank you for your answers!"; - next; - mes "[Landlord]"; - mes "I was unkind to make you stay here but wasn't it easier for you? hoho."; - mes "When it gets dark, promise me to come here again. Hoho"; - set mos_swan,7; - close; - break; - case 3: - mes "[Landlord]"; - mes "When you need to take a rest, where will you go?"; - next; - mes "[Landlord]"; - mes "You should come back here to Inn 'Sticky Herb Tree'. Ok?"; - mes "I'll offer you better service next time."; - close; + case 1: + mes "[Landlord]"; + mes "The name of our inn came from a big apple tree which is outside of the village."; + mes "I hope our inn will be the most famous place in Moscovia like the apple tree that distinguishes itself in the thick wood."; + next; + break; + case 2: + mes "[Landlord]"; + mes "Mikhail?"; + mes "Ah! You're talking about a cute boy, Mr. Ibanoff's son?"; + mes "Yes I saw him. He was here a few hours ago."; + next; + mes "[Landlord]"; + mes "He looked pale and asked me for a high-strength adhesive. He might've broken something important."; + next; + mes "[Landlord]"; + mes "I felt sorry for him because he was so tense. He's such a sweet boy. I'd like to make him my son."; + mes "Hohoho"; + next; + mes "["+strcharinfo(0)+"]"; + mes "So what happened?"; + mes "Did Mikhail get it?"; + next; + mes "[Landlord]"; + mes "Hoho, I don't really know. Maybe my husband does..."; + mes "He's not much to look at, but he's good at repairing and making stuff! hoho"; + next; + mes "[Landlord]"; + mes "But it's been a long time since he was out of Moscovia so I can't ask him how to make adhesives now..."; + next; + mes "["+strcharinfo(0)+"]"; + mes "......And then?"; + next; + mes "[Landlord]"; + mes "I told him to go to the pub over there."; + mes "I also told him not to drink what those guys offer to him!"; + mes "Cause he's such a cute boy!"; + next; + mes "["+strcharinfo(0)+"]"; + mes "So, did he go there?"; + next; + mes "[Landlord]"; + mes "Yes he did-."; + mes "As he's a good boy, he would go there."; + mes "He's really gentle."; + next; + mes "["+strcharinfo(0)+"]"; + mes "OK. Thank you for your answers!"; + next; + mes "[Landlord]"; + mes "I was unkind to make you stay here but wasn't it easier for you? hoho."; + mes "When it gets dark, promise me to come here again. Hoho"; + mos_swan = 7; + changequest 18061,18062; + close; + case 3: + mes "[Landlord]"; + mes "When you need to take a rest, where will you go?"; + next; + mes "[Landlord]"; + mes "You should come back here to Inn 'Sticky Herb Tree'. Ok?"; + mes "I'll offer you better service next time."; + close; } } } - if(select("Save:Stay the night - 5000z") == 1) { + switch(select("Save", "Stay the night - 5000z", ( mos_swan == 3 ? "Ask her about Mikhail." : "" ))) { + case 1: mes "[Landlord]"; mes "Your respawn point has been saved."; mes "Hope we can see you again next time hoho."; savepoint "mosk_in",142,189; close; - } - if (Zeny> 4999) { + case 2: + if (Zeny > 4999) { + mes "[Landlord]"; + if (mos_swan == 3) { + mes "Ok, I'll bring you the best room."; + mes "Please have a rest, young adventurer."; + } + else { + mes "[Landlord]"; + mes "Please be comfortable."; + } + break; + } mes "[Landlord]"; - mes "Please be comfortable."; - close2; - set Zeny,Zeny-5000; - percentheal 100,100; - warp "mosk_in",215,181; - end; + mes "The service charge is 5000z."; + mes "Please make sure you have enough money for the service."; + close; + case 3: + mes "[Landlord]"; + emotion e_lv; + mes "Oh~! You look great! Look at the "+((Sex)?"solid muscle":"fair skin")+"!"; + mes "But you look tired. Is it because of a long journey?"; + next; + mes "[Landlord]"; + mes "We've got a room available just for you. "+((Sex)?"It's the best in town. How about staying the night?":"It's like a princess' room."); + mes (Sex)?"I'll charge you at reasonable price for you, handsome guy.":"How about staying the night? I'll mark down the price for you, beautiful lady."; + next; + mes "["+strcharinfo(0)+"]"; + mes "Oh, I'm sorry but I didn't come to stay here."; + mes "I'm looking for a kid and I've got something to ask you..."; + next; + emotion e_omg; + mes "[Landlord]"; + mes "What!?!?"; + next; + mes "[Landlord]"; + mes "Hey~ You've heard about 'give and take'?"; + mes "Haven't you?"; + mes "If you're my customer, I could offer you what you want but you're not!"; + next; + mes "[Landlord]"; + mes "If you promise me to stay overnight, I'll tell you about what you want to know. Deal?"; + next; + if(select("Refuse.:Stay overnight and get the info. - 5000z") == 1) { + emotion e_ag; + mes "[Landlord]"; + mes "Well, get the info by yourself then."; + close; + } + if (Zeny < 5000) { + mes "[Landlord]"; + mes "No way. You don't have enough money."; + mes "Go away! I can't offer you a room."; + close; + } + mes "[Landlord]"; + mes "Oh, God! You're as great as you look~"; + mes "Ok, I'll bring you to the room in a bit!!"; + next; + mes "[Landlord]"; + mes "Come on, please follow me with your luggage."; + mes "Oh, let me carry them. Hohoho, you must be exhausted."; + mes "I wish you a good night's rest. Hohoho."; + mos_swan = 4; + break; } - mes "[Landlord]"; - mes "The service charge is 5000z."; - mes "Please make sure you have enough money for the service."; - close; + close2; + Zeny = Zeny -5000; + percentheal 100,100; + warp "mosk_in",215,181; + end; } -mosk_in,141,212,3 script Pub Owner#mos 964,{ +mosk_in,141,212,3 script Pub Owner#mos 4_M_RUSBALD,{ if ((MaxWeight-Weight) < 2000) { mes "- Please stop here!! -"; mes "- You're carrying too many items -"; @@ -3387,23 +3480,27 @@ mosk_in,141,212,3 script Pub Owner#mos 964,{ next; mes "[Pub Owner]"; mes "You're welcome."; - set mos_swan,8; + mos_swan = 8; + // changequest 18062,18063; close; } mes "[Pub Owner]"; mes "Although you may be an experienced adventurer, you look so young."; mes "I recommend you these drinks. Which one will you take?"; next; - set .@j, select("Milk - 1000z:Sticky_Herb juice - 1000z:They are all expensive!") - 1; + .@j = select("Milk - 1000z:Sticky_Herb juice - 1000z:They are all expensive!") - 1; if (.@j == 2) { mes "[Pub Owner]"; mes "Hahaha, too much for you eh cheapskate."; close; } if (Zeny > 999) { - set Zeny,Zeny-1000; - set mos_swan,9; - if (!.@j) getitem 519,1; else getitem 531,1; + Zeny = Zeny -1000; + mos_swan = 9; + if (.@j == 0) + getitem 519,1; + else + getitem 531,1; mes "[Pub Owner]"; mes "Here you are. This is what you ordered."; mes "How do you like Moscovia?"; @@ -3461,40 +3558,28 @@ mosk_in,141,212,3 script Pub Owner#mos 964,{ mes "Well, do you have some stories for me? or you've got something to ask me."; mes "I recommend you those drinks."; next; - switch(select("Milk - 1000z:Apple juice - 1000z:They are all expensive!")) { - case 1: - if (Zeny > 999) { - set Zeny,Zeny-1000; - set mos_swan,9; - getitem 519,1; - mes "[Pub Owner]"; - mes "Here you are. This is what you ordered."; - mes "Enjoy yourself."; - close; - } - mes "[Pub Owner]"; - mes "You'll need a lot of money while you're traveling."; - mes "If you don't have enough money, I'll offer you a glass of water."; - close; - case 2: - if (Zeny > 999) { - set Zeny,Zeny-1000; - set mos_swan,9; - getitem 531,1; - mes "[Pub Owner]"; - mes "Here you are. This is what you ordered."; - mes "Enjoy yourself."; - close; - } - mes "[Pub Owner]"; - mes "You'll need a lot of money while you're traveling."; - mes "If you don't have enough money, I'll offer you a glass of water."; - close; - case 3: - mes "[Pub Owner]"; - mes "Hahaha, Here is the sightseeing place."; - close; + .@s = select( "Milk - 1000z:Apple juice - 1000z:They are all expensive!" ); + if (.@s == 3) { + mes "[Pub Owner]"; + mes "Hahaha, Here is the sightseeing place."; + close; } + if (Zeny > 999) { + Zeny = Zeny -1000; + mos_swan = 9; + if (.@s == 1) + getitem 519,1; + else + getitem 531,1; + mes "[Pub Owner]"; + mes "Here you are. This is what you ordered."; + mes "Enjoy yourself."; + close; + } + mes "[Pub Owner]"; + mes "You'll need a lot of money while you're traveling."; + mes "If you don't have enough money, I'll offer you a glass of water."; + close; } else if (mos_swan == 9) { mes "[Pub Owner]"; mes "Have you spoken to Victor?"; @@ -3507,7 +3592,7 @@ mosk_in,141,212,3 script Pub Owner#mos 964,{ close; } -mosk_in,147,202,3 script Victor#mos 968,{ +mosk_in,147,202,3 script Victor#mos 4_M_RUSMAN2,{ if ((MaxWeight-Weight) < 2000) { mes "- Please stop here!! -"; mes "- You're carrying too many items -"; @@ -3603,7 +3688,8 @@ mosk_in,147,202,3 script Victor#mos 968,{ next; mes "[Victor]"; mes "He might've just hidden himself somewhere, haha!"; - set mos_swan,10; + mos_swan = 10; + changequest 18062,18063; close; } else if (mos_swan == 10 || mos_swan == 11) { mes "[Victor]"; @@ -3640,7 +3726,8 @@ mosk_in,147,202,3 script Victor#mos 968,{ next; mes "[Victor]"; mes "You should bring ^3131FF'10 sticky herbs'^000000 and ^3131FF 1 medicine bowl^000000 to me."; - set mos_swan,13; + mos_swan = 13; + changequest 18065,18066; close; } else if (mos_swan > 12 && mos_swan < 23) { mes "[Victor]"; @@ -3659,20 +3746,21 @@ mosk_in,147,202,3 script Victor#mos 968,{ mes "[Victor]"; mes "Give me the stuff! I'll make it quickly. You're annoying me!"; next; - for (set .@i, 0; .@i < 3; set .@i, .@i + 1) + for (.@i = 0; .@i < 3; .@i++) mes "- He's making adhesive with a crunching sound -"; next; - for (set .@i, 0; .@i < 4; set .@i, .@i + 1) + for (.@i = 0; .@i < 4; .@i++) mes "- And he may be rubbing something -"; next; mes "[Victor]"; mes "Ok, done!"; mes "I don't want you to bother me any longer!"; mes "Please leave!"; - delitem 7763,10; - delitem 7134,1; - set mos_swan,24; - getitem 7764,1; + delitem 7763,10;// Sticky_Herb + delitem 7134,1;// Medicine_Bowl + mos_swan = 24; + getitem 7764,1;// High_Strength_Adhesive + changequest 18067,18068; close; } mes "[Victor]"; @@ -3699,35 +3787,35 @@ mosk_in,215,181,0 script #swan_inn -1,1,1,{ end; OnTouch: if (mos_swan != 4) end; - mes ".................."; - mes ".................."; - next; - mes ".................."; - mes ".................."; - mes ".................."; - next; - mes ".................."; - mes ".................."; - mes ".................."; - mes ".................."; - next; - mes "["+strcharinfo(0)+"]"; - mes "Oh, I got a good night's sleep. How long did I sleep?"; - next; - mes "["+strcharinfo(0)+"]"; - mes "Although I was forced to stay here, it's true that it's got great facilities."; - mes "I feel refreshed."; - next; - mes "["+strcharinfo(0)+"]"; - mes "Ok, I guess I will go to the landlord to get some info."; - set mos_swan,5; - close; + mes ".................."; + mes ".................."; + next; + mes ".................."; + mes ".................."; + mes ".................."; + next; + mes ".................."; + mes ".................."; + mes ".................."; + mes ".................."; + next; + mes "["+strcharinfo(0)+"]"; + mes "Oh, I got a good night's sleep. How long did I sleep?"; + next; + mes "["+strcharinfo(0)+"]"; + mes "Although I was forced to stay here, it's true that it's got great facilities."; + mes "I feel refreshed."; + next; + mes "["+strcharinfo(0)+"]"; + mes "Ok, I guess I will go to the landlord to get some info."; + mos_swan = 5; + close; } //---------------------------------------------------------------------------- // Swamp //---------------------------------------------------------------------------- -mosk_dun03,153,90,3 script Bubbling Swamp#mos1 844,{ +mosk_dun03,153,90,3 script Bubbling Swamp#mos1 CLEAR_NPC,{ if ((MaxWeight-Weight) < 2000) { mes "- Your bag is very heavy today -"; close; @@ -3739,7 +3827,8 @@ mosk_dun03,153,90,3 script Bubbling Swamp#mos1 844,{ next; mes "["+strcharinfo(0)+"]"; mes "I don't see any traces of Mikhail. I think I should go back and check his house one more time."; - set mos_swan,11; + mos_swan = 11; + changequest 18063,18064; close; } else if (mos_swan == 11 && mos_swan == 12) { mes "- You can see a small muddy swamp -"; @@ -3755,13 +3844,10 @@ mosk_dun03,153,90,3 script Bubbling Swamp#mos1 844,{ next; if (rand(1,10) < 6) { mes "- You have pricked your finger on a Sticky Herb. -"; - if (mos_swan == 22) { - getitem 7763,1; - set mos_swan,23; - close; - } getitem 7763,1; - set mos_swan,mos_swan+1; + mos_swan++; + if (mos_swan == 23) + changequest 18066,18067; close; } mes "- You have pricked your finger on a Green Herb. -"; @@ -3777,7 +3863,7 @@ mosk_dun03,153,90,3 script Bubbling Swamp#mos1 844,{ //---------------------------------------------------------------------------- // Larissa - Hotcake Quests //---------------------------------------------------------------------------- -mosk_in,211,259,5 script Larissa#mos_01 960,{ +mosk_in,211,259,5 script Larissa#mos_01 4_F_RUSWOMAN2,{ if ((MaxWeight-Weight) < 2000) { mes "- Please stop here !! -"; mes "- You're carrying too many items -"; @@ -3787,16 +3873,16 @@ mosk_in,211,259,5 script Larissa#mos_01 960,{ } if (mos_swan == 100) { mes "[Larissa]"; - mes "Oh, you're the adventurer that Madame told me about ."; + mes "Oh, you're the adventurer that Madame told me about."; mes "Did you find her son?"; mes "I'm so glad. He's a good kid."; next; mes "[Larissa]"; mes "Here you are. This special pancake is for you."; mes "It will be very delicious."; - set mos_swan,101; - getitem 592,5; - getitem 593,5; + mos_swan = 101; + getitem 592,5;// Jam_Pancake + getitem 593,5;// Honey_Pancake next; mes "[Larissa]"; mes "Whenever you'd like to eat these pancake, you come on by."; @@ -3828,19 +3914,17 @@ mosk_in,211,259,5 script Larissa#mos_01 960,{ mes "Oh, my! What are you doing now?"; mes "I'm going to do that from the beginning."; mes "Look, pass it through a sieve."; - next; break; case 2: mes "[Larissa]"; mes "There you go. Just do it slowly while tapping the sides, sifting the sugar and baking powder through the sieve together."; - next; break; case 3: mes "[Larissa]"; mes "If we don't have the sieve, we can use our fist but we've got one. So we might as well use it right?"; - next; break; } + next; mes "[Larissa]"; mes "That way, it will mix well."; mes "And then I'm adding an egg, some milk and a white potion."; @@ -3849,12 +3933,11 @@ mosk_in,211,259,5 script Larissa#mos_01 960,{ if(select("Stir it up with great speed.:Do the same as she said.") == 1) { mes "[Larissa]"; mes "No, you don't have to do that way. It won't rise properly if you stir it too fast."; - next; } else { mes "[Larissa]"; mes "You're very good at this!"; - next; } + next; mes "[Larissa]"; mes "It'll rise while baking if you stir it properly"; mes "Ok, let me bake now. Let's pour it on our pan and spread it around."; @@ -3868,13 +3951,12 @@ mosk_in,211,259,5 script Larissa#mos_01 960,{ mes "No, you don't do that."; mes "You'll burn it up."; mes "Wait for a while."; - next; } else { mes "[Larissa]"; mes "Hmm let's see. It's good."; mes "You were good at it."; - next; } + next; mes "[Larissa]"; mes "Ok, turn it over. Oh it looks delicious"; mes "What should I top it with? First I put some cheese but the rest is up to you..."; @@ -3914,10 +3996,10 @@ mosk_in,211,259,5 script Larissa#mos_01 960,{ setarray .@n, 594,1; break; } - setarray .@di,7031,1,519,2,504,2,548,1,1019,1,518,1; - for (set .@i, 0; .@i < getarraysize(.@di); set .@i, .@i + 2) + setarray .@di[0],7031,1,519,2,504,2,548,1,1019,1,518,1; + for (.@i = 0; .@i < getarraysize(.@di); .@i += 2) delitem .@n[.@i],.@n[.@i+1]; - getitem .@n,.@n[1]; + getitem .@n[0],.@n[1]; close; } mes "[Larissa]"; @@ -3946,7 +4028,7 @@ mosk_in,211,259,5 script Larissa#mos_01 960,{ //---------------------------------------------------------------------------- // Acorn Dealer - Sells Acorns //---------------------------------------------------------------------------- -moscovia,208,182,7 script Acorn Dealer#mos 967,{ +moscovia,208,182,7 script Acorn Dealer#mos 4_M_RUSMAN1,{ mes "[Acorn Dealer]"; mes "We have very fresh acorns. Everyone will like them!"; mes "You can buy one acorn for 100zeny!"; @@ -3968,7 +4050,7 @@ moscovia,208,182,7 script Acorn Dealer#mos 967,{ mes "I'll bet you that they are very fresh!"; mes "How many acorns do you need?"; next; - while(.@input <= 0 || .@input > 500) { + while(.@input == 0 || .@input > 500) { input .@input; if (.@input <= 0) { mes "[Acorn Dealer]"; @@ -3991,7 +4073,7 @@ moscovia,208,182,7 script Acorn Dealer#mos 967,{ mes "right here."; close; } - set .@price, .@input * 100; + .@price = .@input * 100; if (Zeny < .@price) { mes "[Acorn Dealer]"; mes "Hello? You've turned pale! Are you ok??"; @@ -4001,7 +4083,7 @@ moscovia,208,182,7 script Acorn Dealer#mos 967,{ mes "[Acorn Dealer]"; mes "Oh, thank you..."; mes "What do you think of them? They're fresh, aren't they?"; - set Zeny,Zeny - .@price; + Zeny = Zeny - .@price; getitem 1026,.@input; close; } @@ -4009,8 +4091,7 @@ moscovia,208,182,7 script Acorn Dealer#mos 967,{ //---------------------------------------------------------------------------- // Big Squirrel - Trade Acorns for Gems //---------------------------------------------------------------------------- -- script Squirrel#mos_main -1,{ - if (compare(strnpcinfo(0),"mos_sq")) end; +mosk_fild01,113,108,3 script Big Squirrel#mos HIDDEN_NPC,2,2,{ OnTouch: if ((MaxWeight-Weight) < 2000) { mes "- Please stop here!! -"; @@ -4036,54 +4117,61 @@ OnTouch: next; mes "- After eating the acorn up, the squirrel dances around wildly. Suddenly it curls its body and throws something up with a spit-spit sound -"; delitem 1026,20; - set .@cyworld,rand(1,1000); - set .@stworld,rand(1,150); - if (.@cyworld > 0 && .@cyworld < 100) getitem 733,1; - else if (.@cyworld == 100) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 730,1; - else getitem 7289,1; - } else if (.@cyworld == 200) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 731,1; - else set .@stonez1,rand(1,10); - if (.@stonez1 < 6) getitem 7290,1; - else if (.@stonez1 > 5 && .@stonez1 < 8) getitem 7297,1; - else getitem 7292,1; - } else if (.@cyworld == 300) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 732,1; - else set .@stonez2,rand(1,10); - if (.@stonez2 < 6) getitem 7291,1; - else getitem 7294,1; - } else if (.@cyworld == 400) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 730,1; - else getitem 7295,1; - } else if (.@cyworld == 500) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 731,1; - else getitem 7293,1; - } else if (.@cyworld == 600) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 732,1; - else getitem 7292,1; - } else if (.@cyworld == 700) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 730,1; - else getitem 7290,1; - } else if (.@cyworld == 800) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 731,1; - else getitem 7296,1; - } else if (.@cyworld == 900) { - if (.@stworld > 0 && .@stworld < 90) callsub S_BS_1,.@stworld; - else if (.@stworld > 89 && .@stworld < 100) getitem 732,1; - else getitem 7297,1; - } else if (.@cyworld == 1000) getitem 727,1; - else if (.@cyworld > 100 && .@cyworld < 500) getitem 733,1; - else if (.@cyworld > 500 && .@cyworld < 900) getitem 724,1; - else getitem 724,1; + .@cyworld = rand(1,1000); + .@stworld = rand(1,150); + if (.@cyworld % 100 == 0 && .@cyworld < 1000) { + if (.@stworld < 90) { + if (.@stworld < 10) getitem 718,1;// Dark_Red_Jewel + else if (.@stworld < 20) getitem 719,1;// Violet_Jewel + else if (.@stworld < 30) getitem 720,1;// Skyblue_Jewel + else if (.@stworld < 40) getitem 721,1;// Azure_Jewel + else if (.@stworld < 50) getitem 722,1;// Scarlet_Jewel + else if (.@stworld < 60) getitem 723,1;// Cardinal_Jewel + else if (.@stworld < 70) getitem 725,1;// Red_Jewel + else if (.@stworld < 80) getitem 728,1;// Golden_Jewel + else getitem 729,1;// Bluish_Green_Jewel + } + else if (.@stworld < 100) { + if (.@cyworld == 100 || .@cyworld == 400 || .@cyworld == 700) + getitem 730,1;// Crystal_Jewel + else if (.@cyworld == 200 || .@cyworld == 500 || .@cyworld == 800) + getitem 731,1;// Crystal_Jewel_ + else + getitem 732,1;// Crystal_Jewel__ + } + else { + switch(.@cyworld) { + case 200: + .@stonez1 = rand(1,10); + if (.@stonez1 < 6) + getitem 7290,1;// Phlogopite + else if (.@stonez1 < 8) + getitem 7297,1;// Biotite + else + getitem 7292,1;// Muscovite + break; + case 300: + if (rand(1,10) < 6) + getitem 7291,1;// Agate + else + getitem 7294,1;// Turquoise + break; + case 100: getitem 7289,1; break;// Olivine + case 400: getitem 7295,1; break;// Citrine + case 500: getitem 7293,1; break;// Rose_Quartz + case 600: getitem 7292,1; break;// Muscovite + case 700: getitem 7290,1; break;// Phlogopite + case 800: getitem 7296,1; break;// Pyroxene + case 900: getitem 7297,1; break;// Biotite + } + } + } + else if (.@cyworld == 1000) + getitem 727,1;// White_Jewel + else if (.@cyworld < 500) + getitem 733,1;// Crystal_Jewel___ + else + getitem 724,1;// Cardinal_Jewel_ close; case 2: mes "["+strcharinfo(0)+"]"; @@ -4105,22 +4193,8 @@ OnTouch: } mes "- The squirrel looks at the acorn which you held for a while but it turned its head with indifference. -"; close; - -S_BS_1: - set .@stworld, getarg(0); - if (.@stworld < 10) getitem 718,1; - else if (.@stworld < 20) getitem 719,1; - else if (.@stworld < 30) getitem 720,1; - else if (.@stworld < 40) getitem 721,1; - else if (.@stworld < 50) getitem 722,1; - else if (.@stworld < 60) getitem 723,1; - else if (.@stworld < 70) getitem 725,1; - else if (.@stworld < 80) getitem 728,1; - else if (.@stworld < 90) getitem 729,1; - return; } -mosk_fild01,113,108,3 duplicate(Squirrel#mos_main) Big Squirrel#mos 111 -mosk_fild01,113,108,5 duplicate(Squirrel#mos_main) #mos_sq 1104,2,2 +mosk_fild01,113,108,5 script #mos_sq 1104,{ end; } // Banish Winter :: mos_nowinter //============================================================ @@ -4128,98 +4202,7 @@ mosk_fild01,113,108,5 duplicate(Squirrel#mos_main) #mos_sq 1104,2,2 //---------------------------------------------------------------------------- // Baba Yaga, the Horrible - Starting Point //---------------------------------------------------------------------------- -mosk_in,215,46,5 script #babayaga -1,7,7,{ - end; -OnTouch: - if (!mos_nowinter) { - if (countitem(7762) > 39 && BaseLevel > 59) { - set mos_nowinter,2; - mes "[Baba Yaga, the Horrible]"; - mes "Who the hell are you?"; - mes "You want me to kick your ass!"; - next; - mes "[Baba Yaga, the Horrible]"; - mes "No. They are..."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "You have our Yaga Pestles!"; - mes "You have so many of them..."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Who, who are you?"; - close; - } else if (countitem(7762) > 39 && BaseLevel < 60) { - mes "[Baba Yaga, the Horrible]"; - mes "Hohoho~"; - mes "You cannot beat my friends!"; - mes "I don't know where you got"; - mes "those Yaga Pestles, but"; - mes "give them back to me!"; - set mos_nowinter,1; - set .@getback,rand(1,20); - delitem 7762,.@getback; - close2; - warp "mosk_dun02",53,217; - end; - } - mes "[Baba Yaga, the Horrible]"; - mes "Who the hell are you?"; - mes "You want me to kick your ass!"; - set mos_nowinter,1; - close2; - warp "mosk_dun02",53,217; - end; - } else if (mos_nowinter == 1) { - if (countitem(7762) > 39 && BaseLevel > 59) { - set mos_nowinter,2; - mes "[Baba Yaga, the Horrible]"; - mes "Who the hell are you."; - mes "You want me to kick your ass!"; - next; - mes "[Baba Yaga, the Horrible]"; - mes "No. They are..."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "You have our Yaga Pestles!"; - mes "You have so many of them..."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Who, who are you?"; - close; - } else if (countitem(7762) > 39 && BaseLevel < 60) { - mes "[Baba Yaga, the Horrible]"; - mes "You, chicken,"; - mes "I need to kick your ass more."; - next; - if (Sex) { - mes "[Baba Yaga, the Horrible]"; - mes "I will bewitch"; - mes "and enslave you."; - mes "Come here, Heeee!"; - } else { - mes "[Baba Yaga, the Horrible]"; - mes "Recently, I have no appetite."; - mes "But you will be"; - mes "a good appetizer."; - mes "Come here, Heeeeeeeee."; - } - close2; - warp "mosk_dun02",53,217; - end; - } - mes "[Baba Yaga, the Horrible]"; - mes "I need to kick your ass more."; - mes "Come here"; - mes "to play a game"; - mes "Heeeeeeeeeeee"; - close2; - warp "mosk_dun02",53,217; - end; - } - end; -} - -mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ +mosk_in,215,46,5 script Baba Yaga, the Horrible 4_F_BABAYAGA,7,7,{ if (!mos_nowinter || mos_nowinter == 1) { mes "[Baba Yaga, the Horrible]"; mes "Hohoho"; @@ -4305,14 +4288,14 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "Please, don't kill me..."; next; mes "'Hmmm, what should I do...'"; - set mos_nowinter,4; + mos_nowinter = 4; close; } mes "[Baba Yaga, the Horrible]"; mes "Akkk... What on earth did you do to me..."; next; mes "Hmm... What do you want..."; - set mos_nowinter,3; + mos_nowinter = 3; close; } else if (mos_nowinter == 3) { mes "[Baba Yaga, the Horrible]"; @@ -4357,7 +4340,7 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "Please, don't kill me..."; next; mes "'Hmm... what should I do...'"; - set mos_nowinter,4; + mos_nowinter = 4; close; } mes "[Baba Yaga, the Horrible]"; @@ -4423,8 +4406,7 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "Cough, cough,"; mes "I am coughing now, so do not disturb me,"; mes "you write them down."; - set .@plus1,1; - next; + .@plus1 = 1; } else { mes "[Baba Yaga, the Horrible]"; mes "No, It just..."; @@ -4434,8 +4416,8 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "Hey, relax your hand and"; mes "keep writing."; mes "Forget the Sticky Mucus..."; - next; } + next; mes "[Baba Yaga, the Horrible]"; mes "Where were we..."; mes "Cough, cough, cough!"; @@ -4462,8 +4444,8 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "a 1, 2, or 3 carat"; mes "^ff0000Diamond^000000."; next; + mes "[Baba Yaga, the Horrible]"; if (.@plus1 == 1) { - mes "[Baba Yaga, the Horrible]"; mes "Ok, I am repeating the items."; mes "Eh, they are..."; next; @@ -4481,10 +4463,9 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "10 Burning Heart^000000 and,"; mes "a 1, 2, or 3 carat"; mes "^ff00001 Diamond^000000."; - set mos_nowinter,6; - next; + mos_nowinter = 6; + changequest 18070,18071; } else { - mes "[Baba Yaga, the Horrible]"; mes "Ok, I am repeating the items."; mes "Eh, they are..."; next; @@ -4501,36 +4482,45 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "10 Burning Heart^000000 and,"; mes "a 1, 2, or 3 carat"; mes "^ff0000Diamond^000000."; - set mos_nowinter,7; - next; + mos_nowinter = 7; + changequest 18070,18072; } + next; mes "[Baba Yaga, the Horrible]"; mes "I am preparing to make it,"; mes "you should get me them quickly. Cough, cough!"; close; - } else if (mos_nowinter == 6) { + } else if (mos_nowinter == 6 || mos_nowinter == 7) { mes "[Baba Yaga, the Horrible]"; - mes "Ehhh... You came back early."; + mes "Ehhh... You came back earlier."; next; mes "[Baba Yaga, the Horrible]"; mes "I'm almost prepared.."; mes "Did you get"; mes "all of the items?"; next; - setarray .@n, 940,20,908,5,7006,20,1061,10,7041,10,938,10,1051,1,990,5,7097,10; - for (set .@i, 0; .@i < getarraysize(.@n); set .@i, .@i + 2) { - if (countitem(.@n[.@i]) < .@n[.@i+1]) { - set .@f, 1; - break; - } - } - if (!.@f && (countitem(730) || countitem(731) || countitem(732))) { - for (set .@i, 0; .@i < getarraysize(.@n); set .@i, .@i + 2) - delitem .@n[.@i],.@n[.@i+1]; - if (countitem(730)) delitem 730,1; - else if (countitem(731)) delitem 731,1; - else if (countitem(732)) delitem 732,1; - set mos_nowinter,8; + setarray .@item[0], 940,20,908,5,7006,20,1061,10,7041,10,1051,1,990,5,7097,10; + .@size = getarraysize(.@item); + if (mos_nowinter == 6) { + setarray .@item[.@size], 938,10; + .@size += 2; + } + for (.@i = 0; .@i < .@size; .@i += 2) + if (countitem(.@item[.@i]) < .@item[.@i+1]) break; + if (.@i >= .@size && (countitem(730) || countitem(731) || countitem(732))) { + for (.@i = 0; .@i < .@size; .@i += 2) + delitem .@item[.@i],.@item[.@i+1]; + if (countitem(730)) + delitem 730,1; // Crystal_Jewel + else if (countitem(731)) + delitem 731,1; // Crystal_Jewel_ + else if (countitem(732)) + delitem 732,1; // Crystal_Jewel__ + if (mos_nowinter == 6) + changequest 18071,18073; + else + changequest 18072,18073; + mos_nowinter = 8; mes "[Baba Yaga, the Horrible]"; mes "Right, you got them all."; mes "With this amount.. For some time..."; @@ -4587,7 +4577,8 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "^ff000020 Grasshopper's Legs,"; mes "5 Spawn,"; mes "20 Wings Of Red Bat"; - mes "10 Sticky Mucus,"; + if (mos_nowinter == 6) + mes "10 Sticky Mucus,"; mes "10 Witch Starsand^000000..."; next; mes "[Baba Yaga, the Horrible]"; @@ -4603,100 +4594,6 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "Hu, I talked so much"; mes "that it hurts me, Kaaaak~"; close; - } else if (mos_nowinter == 7) { - mes "[Baba Yaga, the Horrible]"; - mes "Ehhh... You came back earlier."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "I almost prepared"; - mes "Did you get"; - mes "all of them?"; - next; - setarray .@n, 940,20,908,5,7006,20,1061,10,7041,10,1051,1,990,5,7097,10; - for (set .@i, 0; .@i < getarraysize(.@n); set .@i, .@i + 2) { - if (countitem(.@n[.@i]) < .@n[.@i+1]) { - set .@f, 1; - break; - } - } - if (!.@f && (countitem(730) || countitem(731) || countitem(732))) { - for (set .@i, 0; .@i < getarraysize(.@n); set .@i, .@i + 2) - delitem .@n[.@i],.@n[.@i+1]; - if (countitem(730)) delitem 730,1; - else if (countitem(731)) delitem 731,1; - else if (countitem(732)) delitem 732,1; - set mos_nowinter,8; - mes "[Baba Yaga, the Horrible]"; - mes "Right, you got them all."; - mes "With this amount.. For some time......"; - mes "No, to make the Secret Medicine."; - mes "These are enough, cough."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Let me see, we have all"; - mes "that we need..."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Ehhh..."; - mes "Huk!"; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Cough, cough, cough!"; - mes "Eh... I mean..."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Have you heard the story of"; - mes "a dragon sleeping for a long time?"; - mes "Next thing that I need is"; - mes "something from that dragon, kkkk."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "You can find a funny-shaped bottle"; - mes "in the dragon's lair."; - mes "It's a gourd bottle that can"; - mes "contain people's speech."; - mes "I must have this."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "I don't know how strong you are,"; - mes "but I would like to recommend that"; - mes "you avoid fighting that dragon, Kaaaaak~"; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Then, release me."; - mes "I want to do something,"; - mes "...but, my life is the priority. Yes, it is... Cough, cough!"; - close; - } - mes "[Baba Yaga, the Horrible]"; - mes "I think"; - mes "I need more, cough, cough!"; - next; - mes "[Baba Yaga, the Horrible]"; - mes "I am not able to do"; - mes "anything without them."; - mes "I am repeating the items in the list,"; - mes "you should get them all, kaaaaak!"; - next; - mes "[Baba Yaga, the Horrible]"; - mes "^ff000020 Grasshopper's Legs,"; - mes "5 Spawn,"; - mes "20 Wings Of Red Bat,"; - mes "10 Witch Starsand^000000..."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "^ff000010 Fine Grit,"; - mes "1 Detonator,"; - mes "5 Red Blood,"; - mes "10 Burning Hearts^000000 and"; - mes "a 1, 2, or 3 carat"; - mes "^ff0000Diamond^000000."; - next; - mes "[Baba Yaga, the Horrible]"; - mes "Cough, cough."; - mes "Hu, I talked so much"; - mes "that it hurts me, Kaaaak~"; - close; } else if (mos_nowinter == 8) { mes "[Baba Yaga, the Horrible]"; mes "It is very, very hard to return alive"; @@ -4709,7 +4606,7 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "the magic gourd bottle, cough!"; close; } else if (mos_nowinter == 9) { - if (countitem(7761)) { + if (countitem(7761)) {// Magic_Gourd_Bottle mes "[Baba Yaga, the Horrible]"; mes "Akkkk?"; mes "Did you really bring it"; @@ -4762,7 +4659,8 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ next; mes "[Baba Yaga, the Horrible]"; mes "Take care of yourself, cough, cough."; - set mos_nowinter,10; + mos_nowinter = 10; + changequest 18074,18075; close; } mes "[Baba Yaga, the Horrible]"; @@ -4812,7 +4710,7 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "what I told"; mes "you to do?"; next; - if (!countitem(7761)) { + if (!countitem(7761)) {// Magic_Gourd_Bottle mes "[Baba Yaga, the Horrible]"; mes "Where is the Gourd Bottle?"; mes "I can't do anything without it."; @@ -4860,7 +4758,7 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "The magic is complete."; mes "Do your best,"; mes "Cough!"; - set mos_nowinter,15; + mos_nowinter = 15; close; } else if (mos_nowinter == 15 || mos_nowinter == 16) { mes "[Baba Yaga, the Horrible]"; @@ -4888,7 +4786,7 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "[Baba Yaga, the Horrible]"; mes "Well, try it again."; mes "We still have enough materials."; - set mos_nowinter,16; + mos_nowinter = 16; close; } else if (mos_nowinter == 18) { mes "[Baba Yaga, the Horrible]"; @@ -4909,8 +4807,9 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{ mes "If you do this, what the villagers want"; mes "will be happening,"; mes "forever."; - getitem 7765,1; - set mos_nowinter,19; + getitem 7765,1;// Yaga_Secret_Medicine + mos_nowinter = 19; + changequest 18077,18078; close; } else if (mos_nowinter == 19) { mes "[Baba Yaga, the Horrible]"; @@ -4955,14 +4854,78 @@ S_BY_1: mes "I don't remember"; mes "where it is."; mes "Could you please come back later?"; - set mos_nowinter,5; + mos_nowinter = 5; + setquest 18070; close; + +OnTouch: + if (mos_nowinter == 0 || mos_nowinter == 1) { + mes "[Baba Yaga, the Horrible]"; + if (countitem(7762) > 39 && BaseLevel > 59) {// Yaga_Pestle + mos_nowinter = 2; + mes "Who the hell are you."; + mes "You want me to kick your ass!"; + next; + mes "[Baba Yaga, the Horrible]"; + mes "No. They are..."; + next; + mes "[Baba Yaga, the Horrible]"; + mes "You have our Yaga Pestles!"; + mes "You have so many of them..."; + next; + mes "[Baba Yaga, the Horrible]"; + mes "Who, who are you?"; + close; + } + if (mos_nowinter == 0) { + mos_nowinter = 1; + if (countitem(7762) > 39 && BaseLevel < 60) { + mes "Hohoho~"; + mes "You cannot beat my friends!"; + mes "I don't know where you got"; + mes "those Yaga Pestles, but"; + mes "give them back to me!"; + delitem 7762, rand(1,20); + } + else { + mes "Who the hell are you?"; + mes "You want me to kick your ass!"; + } + } + else { + if (countitem(7762) > 39 && BaseLevel < 60) { + mes "You, chicken,"; + mes "I need to kick your ass more."; + next; + mes "[Baba Yaga, the Horrible]"; + if (Sex) { + mes "I will bewitch"; + mes "and enslave you."; + mes "Come here, Heeee!"; + } else { + mes "Recently, I have no appetite."; + mes "But you will be"; + mes "a good appetizer."; + mes "Come here, Heeeeeeeee."; + } + } + else { + mes "I need to kick your ass more."; + mes "Come here"; + mes "to play a game"; + mes "Heeeeeeeeeeee"; + } + } + close2; + warp "mosk_dun02",53,217; + } + end; } //---------------------------------------------------------------------------- // Book //---------------------------------------------------------------------------- -mosk_in,217,45,0 script #book_russia 111,{ +mosk_in,217,45,0 script #book_russia HIDDEN_NPC,{ if (mos_nowinter == 15) { mes "-Beside the pot,"; mes "There is an unusually large book."; @@ -5026,7 +4989,7 @@ mosk_in,217,45,0 script #book_russia 111,{ mes "I'll mark this spot."; mes "so I can easily find the mixing"; mes "process next time..."; - set mos_nowinter,16; + mos_nowinter = 16; next; mes "^0000ffSeasonal Magic^000000:^ff0000Eternal Summer^000000"; mes "First of all, you need to put and"; @@ -5209,7 +5172,7 @@ mosk_in,217,45,0 script #book_russia 111,{ //---------------------------------------------------------------------------- // Mixing Pot //---------------------------------------------------------------------------- -mosk_in,221,43,0 script #bowl 111,{ +mosk_in,221,43,0 script #bowl HIDDEN_NPC,{ if (mos_nowinter != 16) end; mes "-It is a very dirty pot."; mes "Something is boiling"; @@ -5217,55 +5180,55 @@ mosk_in,221,43,0 script #bowl 111,{ mes "with it."; mes "Well, let's get it started.-"; next; - setarray .@m$, "Powder Of Wing Of Bat","Liquid Of Spawn","Grasshopper's Leg","Starsand Of Witch","Fine Grit"; - while(1) { + setarray .@menu$[0], "Powder Of Wing Of Bat","Liquid Of Spawn","Grasshopper's Leg","Starsand Of Witch","Fine Grit"; + .@implode$ = implode( .@menu$,":" ); + while( .@nankai < 3 ) { mes "-Something is still being boiled in the pot."; mes "What am I going to do?-"; next; switch(select("Put the materials in it.:Pour water in it.:Stir it up.:It is over!")) { case 1: - set .@m, select (implode(.@m$,":")) - 1; - if ((!.@m && .@bat) || (.@m == 1 && .@mush) || (.@m == 2 && .@locker)) specialeffect EF_POISONHIT; + .@m = select( .@implode$ ) -1; + if ((!.@m && .@bat) || (.@m == 1 && .@mush) || (.@m == 2 && .@locker)) + specialeffect EF_POISONHIT; else { specialeffect EF_SMOKE; - if (!.@m) set .@bat,.@bat+1; - if (.@m == 1) set .@mush,.@mush+1; - if (.@m == 2) set .locker,.@locker+1; - set .@maho,.@maho+1; + if (.@m == 0) .@bat++; + if (.@m == 1) .@mush++; + if (.@m == 2) .locker++; + .@maho++;; } - if (.@m >= 3) specialeffect EF_POISONHIT; - set .@nankai,.@nankai+1; - mes "-I put the "+.@m$[.@m]+" in the pot."; + if (.@m >= 3) + specialeffect EF_POISONHIT; + .@nankai++; + mes "-I put the "+ .@menu$[.@m] +" in the pot."; mes "Its smell slightly changes.-"; - next; break; case 2: specialeffect EF_POISONHIT; - set .@nankai,.@nankai+1; + .@nankai++; mes "-I pour water in the pot a little."; mes "The liquid has become thin."; mes "No other remarkable changes"; mes "have happened.-"; - next; break; case 3: specialeffect EF_POISONHIT; - set .@nankai,.@nankai+1; + .@nankai++; mes "-I stir it up"; mes "with a stick several times."; mes "No other remarkable changes"; mes "have happened.-"; - next; break; case 4: specialeffect EF_POISONATTACK; mes "["+strcharinfo(0)+"]"; mes "I will tell Baba Yaga that"; mes "the work has been done."; - set mos_nowinter,17; + mos_nowinter = 17; close; } - if (.@nankai == 3) break; + next; } specialeffect EF_BUBBLE; mes "-The liquid has been changed"; @@ -5276,32 +5239,39 @@ mosk_in,221,43,0 script #bowl 111,{ mes "-Anyway, the first step is done"; mes "let's go on the next stage.-"; next; - while(1) { + while( .@nankai < 7 ) { mes "-Well, What am I going to do?-"; next; switch(select("Put the materials in it.:Pour water in it.:Stir it up.:It is over!")) { case 1: - set .@m, select (implode(.@m$,":")) - 1; + .@w = 0; + .@m = select( implode( .@menu$,":" ) ) -1; if (.@m >= 3) { if (.@nankai == 5 || .@nankai == 6) { - if ((.@m == 3 && .@star) || (.@m == 4 && .@sand)) specialeffect EF_POISONHIT; + if ((.@m == 3 && .@star) || (.@m == 4 && .@sand)) + specialeffect EF_POISONHIT; else { specialeffect EF_SMOKE; - set .@maho,.@maho+1; - if (.@m == 3) set .@star,.@star+1; - if (.@m == 4) set .@sand,.@sand+1; - set .@w, 1; + .@maho++; + if (.@m == 3) .@star++; + if (.@m == 4) .@sand++; + .@w = 1; } } else { specialeffect EF_POISONHIT; - if (.@m == 3) set .@star,.@star+1; - if (.@m == 4) set .@sand,.@sand+1; + if (.@m == 3) .@star++; + if (.@m == 4) .@sand++; } next; - } else specialeffect EF_POISONHIT; - set .@nankai,.@nankai+1; - mes "-I put the "+.@m$[.@m]+" in the pot."; - mes (.@m <= 2)?"It's smell drastically changes.-":"Its "+((.@w)?"smell":"color")+" slightly changes.-"; + } + else + specialeffect EF_POISONHIT; + .@nankai++; + mes "-I put the "+ .@menu$[.@m] +" in the pot."; + if (.@m <= 2) + mes "It's smell drastically changes.-"; + else + mes "Its "+ ( .@w ? "smell" : "color" ) +" slightly changes.-"; break; case 2: if (.@nankai == 3) { @@ -5310,15 +5280,12 @@ mosk_in,221,43,0 script #bowl 111,{ mes "something in the cloudy liquid"; mes "has changed.-"; specialeffect EF_DRAGONSMOKE; - set .@maho,.@maho+1; - set .@nankai,.@nankai+1; - next; + .@maho++; } else { specialeffect EF_POISONHIT; mes "-I pour water in the pot and, the liquid gets thin.-"; - set .@nankai,.@nankai+1; - next; } + .@nankai++; break; case 3: if (.@nankai == 4) { @@ -5335,43 +5302,38 @@ mosk_in,221,43,0 script #bowl 111,{ mes "brighter and"; mes "its smell gets"; mes "more bearable."; - set .@maho,.@maho+1; - set .@nankai,.@nankai+1; - next; - } else if (!.@input) { + .@maho++; + .@nankai++; + } else if (!.@input) mes "-I won't stir it up.-"; - next; - } else if (.@input > 100) { + else if (.@input > 100) { mes "-It won't be able"; mes "to stir so many times."; mes "Let me think again.-"; - next; } else { mes "-Yes, it must be " + .@input + " times.-"; next; mes "-I stir it up really hard."; mes "It is boiled.-"; - set .@nankai,.@nankai+1; - next; + .@nankai++; } } else { mes "-Bubble, bubble-"; next; mes "["+strcharinfo(0)+"]"; mes "Something changed?"; - set .@nankai,.@nankai+1; - next; + .@nankai++; } break; case 4: mes "["+strcharinfo(0)+"]"; mes "I will tell Baba Yaga that"; mes "it has been done."; - set mos_nowinter,17; + mos_nowinter = 17; specialeffect EF_POISONATTACK; close; } - if (.@nankai == 7) break; + next; } mes "-I am sure that the book told me"; mes "to wait for some time.-"; @@ -5384,45 +5346,53 @@ mosk_in,221,43,0 script #bowl 111,{ mes "the pot has changed enough."; mes "Let's go on to the next stage.-"; next; - set .@w, 0; + setarray .@menu2$, "Witched Starsand","Fine Grit","Detonator","Red Blood","Burning Heart"; + setarray .@menu3$, "Witched Starsand","Fine Grit","Detonator","Red Blood","Burning Heart","Piece Of Diamond"; + .@implode2$ = implode( .@menu2$,":" ); + .@implode3$ = implode( .@menu3$,":" ); while(1) { mes "-Well, What am I going to do?-"; next; switch(select("Put the materials in it.:Pour water in it.:Stir it up.:It is over!")) { case 1: + .@w = 0; if (.@nankai != 11) { - setarray .@m2$, "Witched Starsand","Fine Grit","Detonator","Red Blood","Burning Heart"; - set .@m, select (implode(.@m2$,":")) - 1; + .@m = select( .@implode2$ ) -1; if ((.@m == 2 && .@nankai == 9) || (.@m == 3 && .@nankai == 8) || (.@m == 4 && .@nankai == 10)) { specialeffect EF_SMOKE; - set .@maho,.@maho+1; + .@maho++; } else { specialeffect EF_POISONHIT; - set .@w, 1; + .@w = 1; } - if (.@m <= 1) specialeffect EF_POISONHIT; - set .@nankai,.@nankai+1; - mes "-I put the "+.@m2$[.@m]+" in the pot."; - mes (.@m <= 1)?"Its smell slightly changes.-":((.@w)?"The smell gets worse.-":"The smell has been changed a little.-"); + if (.@m <= 1) + specialeffect EF_POISONHIT; + .@nankai++; + mes "-I put the "+ .@menu2$[.@m] +" in the pot."; + if (.@m <= 1) + mes "Its smell slightly changes.-"; + else + mes ( .@w ? "The smell gets worse.-" : "The smell has been changed a little.-" ); } else { - setarray .@m3$, "Witched Starsand","Fine Grit","Detonator","Red Blood","Burning Heart","Piece Of Diamond"; - set .@m, select (implode(.@m3$,":")) - 1; - if (.@m != 5) specialeffect EF_POISONHIT; + .@m = select( .@implode3$ ) -1; + if (.@m != 5) + specialeffect EF_POISONHIT; else { - set .@maho,.@maho+1; + .@maho++; specialeffect EF_SMOKE; } - set .@nankai,.@nankai+1; - mes "-I put "+((.@m == 5)?"a":"the")+" "+.@m3$[.@m]+" in the pot."; - mes (.@m == 5)?"The solution alters in color.-":"The smell gets worse.-"; + .@nankai++; + mes "-I put "+((.@m == 5)?"a":"the")+" "+ .@menu3$[.@m] +" in the pot."; + if (.@m == 5) + mes "The solution alters in color.-"; + else + mes "The smell gets worse.-"; } - next; break; case 2: - set .@nankai,.@nankai+1; + .@nankai++; mes "-I pour water in the pot a little."; mes "The smell gets better.-"; - next; break; case 3: if (.@nankai == 7) { @@ -5437,55 +5407,51 @@ mosk_in,221,43,0 script #bowl 111,{ specialeffect EF_WIND; mes "-Stirring up makes it"; mes "brighter.-"; - set .@maho,.@maho+1; - set .@nankai,.@nankai+1; - next; - } else if (.@input == 0) { + .@maho++; + .@nankai++; + } else if (.@input == 0) mes "-I won't stir it up.-"; - next; - } else if (.@input > 100) { + else if (.@input > 100) { mes "-It won't be to"; mes "stir so many times."; mes "Let me think again.-"; - next; } else { mes "-Yes, it must be " + .@input + " times.-"; next; mes "-I stir it up really hard."; mes "It is boiled.-"; - set .@nankai,.@nankai+1; - next; + .@nankai++; } } else { mes "-Bubble, bubble-"; next; mes "["+strcharinfo(0)+"]"; mes "Something changed?"; - set .@nankai,.@nankai+1; - next; + .@nankai++; } break; case 4: mes "-It seems that the work is over."; mes "I need to show this to Baba Yaga.-"; if (.@maho == 12) { - set mos_nowinter,18; + mos_nowinter = 18; specialeffect EF_GASPUSH; close; } specialeffect EF_POISONATTACK; - set mos_nowinter,17; + mos_nowinter = 17; close; } + next; } } //---------------------------------------------------------------------------- // Center of Town //---------------------------------------------------------------------------- -moscovia,224,190,0 script #nowinterplz 844,{ +moscovia,224,190,0 script #nowinterplz CLEAR_NPC,{ if (mos_nowinter != 19) end; - if (countitem(7765)) { + if (countitem(7765)) {// Yaga_Secret_Medicine mes "["+strcharinfo(0)+"]"; mes "This place must be"; mes "the center of town..."; @@ -5498,7 +5464,8 @@ moscovia,224,190,0 script #nowinterplz 844,{ mes "Secret Medicine.-"; delitem 7765,1; specialeffect EF_BARRIER; - set mos_nowinter,20; + mos_nowinter = 20; + changequest 18078,18079; next; mes "-You feel like your"; mes "body is heating up."; @@ -5523,38 +5490,32 @@ moscovia,224,190,0 script #nowinterplz 844,{ //---------------------------------------------------------------------------- // Villagers //---------------------------------------------------------------------------- -moscovia,252,203,5 script A Little Girl#mos1 958,{ +moscovia,252,203,5 script A Little Girl#mos1 4_F_RUSCHILD,{ if (mos_nowinter == 10) { - if (mos_kid == 1) { + if (mos_kid == 0) { + .@kid = rand(1,100); + select("Do you like the warm weather, little girl?"); mes "[Yosefina]"; - mes "Baba Yaga, the Horrible Cannibal"; - mes "is living outside the town."; + if (.@kid > 70) { + mes "Yes, I like it very much~"; + mes "I never want it to leave. I don't want winter to come."; + specialeffect2 EF_SUMMONSLAVE; + mos_kid = 1; + if (mos_middle == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Yes, I like it very much~"; + mes "But, as soon as the sun sets I must go back home."; next; mes "[Yosefina]"; - mes "My mom told me."; - mes "that she is real."; + mes "Baba Yaga kidnaps"; + mes "bad kids wandering"; + mes "in the night, I heard."; close; } - set .@kid,rand(1,100); - select("Do you like the warm weather, little girl?"); - if (.@kid > 70) { - mes "[Yosefina]"; - mes "Yes, I like it very much~"; - mes "I never want it to leave. I don't want winter to come."; - specialeffect2 EF_SUMMONSLAVE; - set mos_kid,1; - if (mos_middle == 1 && mos_elder == 1) set mos_nowinter,11; - close; - } - mes "[Yosefina]"; - mes "Yes, I like it very much~"; - mes "But, as soon as the sun sets I must go back home."; - next; - mes "[Yosefina]"; - mes "Baba Yaga kidnaps"; - mes "bad kids wandering"; - mes "in the night, I heard."; - close; } mes "[Yosefina]"; mes "Baba Yaga, the Horrible Cannibal"; @@ -5566,35 +5527,32 @@ moscovia,252,203,5 script A Little Girl#mos1 958,{ close; } -moscovia,233,204,3 script A Young Man#mos2 968,{ +moscovia,233,204,3 script A Young Man#mos2 4_M_RUSMAN2,{ if (mos_nowinter == 10) { - if (mos_middle == 1) { + if (mos_middle == 0) { + select("You don't like winter, do you?"); + .@kid = rand(1,100); mes "[Fedor]"; - mes "Finally, winter is over."; - mes "Spring is coming"; - mes "to my mind..."; + if (.@kid > 70) { + mes "No, I don't like the cold winter."; + mes "And I get angry when"; + mes "seeing couples."; + specialeffect2 EF_SUMMONSLAVE; + mos_middle = 1; + if (mos_kid == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Huuuu, I wish I could have a girlfriend"; + mes "I would be able to enjoy the warm sunlight better..."; + next; + mes "[Fedor]"; + mes "Who are you?"; + mes "Don't make matters worse!"; close; } - select("You don't like winter, do you?"); - set .@kid,rand(1,100); - if (.@kid > 70) { - mes "[Fedor]"; - mes "No, I don't like the cold winter."; - mes "And I get angry when"; - mes "seeing couples."; - specialeffect2 EF_SUMMONSLAVE; - set mos_middle,1; - if (mos_kid == 1 && mos_elder == 1) set mos_nowinter,11; - close; - } - mes "[Fedor]"; - mes "Huuuu, I wish I could have a girlfriend"; - mes "I would be able to enjoy the warm sunlight better..."; - next; - mes "[Fedor]"; - mes "Who are you?"; - mes "Don't make matters worse!"; - close; } mes "[Fedor]"; mes "Finally, winter is over."; @@ -5603,37 +5561,30 @@ moscovia,233,204,3 script A Young Man#mos2 968,{ close; } -moscovia,219,229,5 script A Middle-Aged Man#mos3 964,{ +moscovia,219,229,5 script A Middle-Aged Man#mos3 4_M_RUSBALD,{ if (mos_nowinter == 10) { - if (mos_elder == 1) { + if (mos_elder == 0) { + select("Whoever likes the winter?"); mes "[Viktor]"; - mes "Our people are very, very"; - mes "proud of their strength and"; - mes "invincible spirits."; - next; - mes "[Viktor]"; - mes "It doesn't matter to us"; - mes "how cold the winter is!"; + if (rand(1,100) > 70) { + mes "Tell me about it!"; + mes "Everyone will be sad"; + mes "when it comes again."; + mes "I don't want winter to come."; + specialeffect2 EF_SUMMONSLAVE; + mos_elder = 1; + if (mos_kid == 1 && mos_middle == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Hmm, do you think so..."; + mes "I am too familiar with both"; + mes "summer and winter to care much for"; + mes "one over the other."; close; } - select("Whoever likes the winter?"); - if (rand(1,100) > 70) { - mes "[Viktor]"; - mes "Tell me about it!"; - mes "Everyone will be sad"; - mes "when it comes again."; - mes "I don't want winter to come."; - specialeffect2 EF_SUMMONSLAVE; - set mos_elder,1; - if (mos_kid == 1 && mos_middle == 1) set mos_nowinter,11; - close; - } - mes "[Viktor]"; - mes "Hmm, do you think so..."; - mes "I am too familiar with both"; - mes "summer and winter to care much for"; - mes "one over the other."; - close; } mes "[Viktor]"; mes "Our people are very, very"; @@ -5646,67 +5597,55 @@ moscovia,219,229,5 script A Middle-Aged Man#mos3 964,{ close; } -moscovia,255,203,3 script A Little Boy#mos4 962,{ - if (mos_nowinter == 10) { - if (mos_kid == 1) { - mes "[Vasili]"; - mes "Wow, he is"; - mes "an adventurer, an adventurer!!"; - next; - mes "[Vasili]"; - mes "Tell me your exciting story."; - mes "Have you fought a dragon?"; - mes "Where is your gold-shining sword and shield?"; - mes "Where?"; - close; - } - mes "[Vasili]"; - mes "Wow, he is"; - mes "an adventurer, an adventurer!!"; - next; - mes "[Vasili]"; - mes "Why did you come here?"; - mes "Don't you have any colleague?"; - mes "I heard that the heroes in epics were tall,"; - mes "but, why are you so small?"; - mes "Where is your gold-shining sword?"; - mes "I heard that the armor glittered white,"; - mes "but, why don't you have on the armor?"; - mes "Won't you go for another adventure?"; - mes "How can you do it in the cold and snowy winter?"; - next; - select("I will go if it gets warm."); - if (rand(1,100) > 70) { - mes "[Vasili]"; - mes "Will you? I will also"; - mes "go out for adventures"; - mes "with shining armor and"; - mes "a long and heavy sword"; - mes "some day."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Vasili]"; - mes "If winter is gone,"; - mes "it is much easier to go on adventures."; - set mos_kid,1; - if (mos_middle == 1 && mos_elder == 1) set mos_nowinter,11; - close; - } - mes "[Vasili]"; - mes "Ah, when are you leaving?"; - mes "Where are you going this time?"; - next; - mes "[Vasili]"; - mes "Will you go to slay the dragon,"; - mes "that breathes fire and can"; - mes "exterminates 10 men by flapping"; - mes "its wings once?"; - close; - } +moscovia,255,203,3 script A Little Boy#mos4 4_M_RUSCHILD,{ mes "[Vasili]"; mes "Wow, he is"; mes "an adventurer, an adventurer!!"; next; + if (mos_nowinter == 10) { + if (mos_kid == 0) { + mes "[Vasili]"; + mes "Why did you come here?"; + mes "Don't you have any colleague?"; + mes "I heard that the heroes in epics were tall,"; + mes "but, why are you so small?"; + mes "Where is your gold-shining sword?"; + mes "I heard that the armor glittered white,"; + mes "but, why don't you have on the armor?"; + mes "Won't you go for another adventure?"; + mes "How can you do it in the cold and snowy winter?"; + next; + select("I will go if it gets warm."); + mes "[Vasili]"; + if (rand(1,100) > 70) { + mes "Will you? I will also"; + mes "go out for adventures"; + mes "with shining armor and"; + mes "a long and heavy sword"; + mes "some day."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Vasili]"; + mes "If winter is gone,"; + mes "it is much easier to go on adventures."; + mos_kid = 1; + if (mos_middle == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Ah, when are you leaving?"; + mes "Where are you going this time?"; + next; + mes "[Vasili]"; + mes "Will you go to slay the dragon,"; + mes "that breathes fire and can"; + mes "exterminates 10 men by flapping"; + mes "its wings once?"; + close; + } + } mes "[Vasili]"; mes "Tell me your exciting story."; mes "Have you fought a dragon?"; @@ -5715,38 +5654,34 @@ moscovia,255,203,3 script A Little Boy#mos4 962,{ close; } -moscovia,204,188,5 script A Lady#mos5 959,{ +moscovia,204,188,5 script A Lady#mos5 4_F_RUSWOMAN1,{ if (mos_nowinter == 10) { - if (mos_middle == 1) { - mes "[Katya]"; - mes "The spring has come~"; - next; - mes "[Katya]"; - mes "A million sunflowers are blooming~"; - close; - } - select("You look good today."); - if (rand(1,100) > 70) { + if (mos_middle == 0) { + select("You look good today."); mes "[Katya]"; + if (rand(1,100) > 70) { + mes "Yes, I feel good."; + mes "When it gets warm, sunflowers bloom."; + mes "The sunflower is the symbol"; + mes "of this province."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Katya]"; + mes "I wish that winter never comes back and"; + mes "I could see sunflowers everyday."; + mos_middle = 1; + if (mos_kid == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } mes "Yes, I feel good."; mes "When it gets warm, sunflowers bloom."; mes "The sunflower is the symbol"; mes "of this province."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Katya]"; - mes "I wish that winter never comes back and"; - mes "I could see sunflowers everyday."; - set mos_middle,1; - if (mos_kid == 1 && mos_elder == 1) set mos_nowinter,11; close; } - mes "[Katya]"; - mes "Yes, I feel good."; - mes "When it gets warm, sunflowers bloom."; - mes "The sunflower is the symbol"; - mes "of this province."; - close; } mes "[Katya]"; mes "The spring has come~"; @@ -5756,42 +5691,36 @@ moscovia,204,188,5 script A Lady#mos5 959,{ close; } -moscovia,167,97,3 script A Lady#mos6 961,{ +moscovia,167,97,3 script A Lady#mos6 4_F_RUSWOMAN3,{ if (mos_nowinter == 10) { - if (mos_elder == 1) { + if (mos_elder == 0) { + select("The weather is getting warmer."); mes "[Roza]"; - mes "Naughty children get too"; - mes "excited in the warm days."; + if (rand(1,100) > 70) { + mes "Yes, kids like it and"; + mes "flowers are blooming."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Roza]"; + mes "Whoever likes the cold and dark winter?"; + mes "I hope this weather last forever."; + mos_elder = 1; + if (mos_kid == 1 && mos_middle == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "In the warm days,"; + mes "I'm in trouble."; + mes "It's too hard to control"; + mes "the children."; next; mes "[Roza]"; - mes "Where is the sun?"; - mes "Where is it hiding?"; + mes "I think"; + mes "I need winter again."; close; } - select("The weather is getting warmer."); - if (rand(1,100) > 70) { - mes "[Roza]"; - mes "Yes, kids like it and"; - mes "flowers are blooming."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Roza]"; - mes "Whoever likes the cold and dark winter?"; - mes "I hope this weather last forever."; - set mos_elder,1; - if (mos_kid == 1 && mos_middle == 1) set mos_nowinter,11; - close; - } - mes "[Roza]"; - mes "In the warm days,"; - mes "I'm in trouble."; - mes "It's too hard to control"; - mes "the children."; - next; - mes "[Roza]"; - mes "I think"; - mes "I need winter again."; - close; } mes "[Roza]"; mes "Naughty children get too"; @@ -5803,51 +5732,35 @@ moscovia,167,97,3 script A Lady#mos6 961,{ close; } -moscovia,202,102,3 script A Little Boy#mos7 962,{ +moscovia,202,102,3 script A Little Boy#mos7 4_M_RUSCHILD,{ if (mos_nowinter == 10) { - if (mos_kid == 1) { + if (mos_kid == 0) { + select("Do you like mysterious stories?"); mes "[Feliks]"; - mes "This is the story"; - mes "about a terrible dragon."; - next; - mes "[Feliks]"; - mes "It is sleeping"; - mes "in its lair,"; - mes "but, it destroys everything"; - mes "around it when it awakes."; - next; - mes "[Feliks]"; - mes "This came from my grandma's"; - mes "grandma's grandma's"; - mes "grandma's grandma's"; - mes "grandma's grandma."; - close; - } - select("Do you like mysterious stories?"); - if (rand(1,100) > 70) { - mes "[Feliks]"; - mes "Yes, I love them."; - mes "But, in winter,"; - mes "nobody comes out of their homes."; - mes "So it's not very fun."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Feliks]"; - mes "If winter never comes"; - mes "I can have"; - mes "fun all the time..."; - set mos_kid,1; - if (mos_middle == 1 && mos_elder == 1) { - set mos_nowinter,11; + if (rand(1,100) > 70) { + mes "Yes, I love them."; + mes "But, in winter,"; + mes "nobody comes out of their homes."; + mes "So it's not very fun."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Feliks]"; + mes "If winter never comes"; + mes "I can have"; + mes "fun all the time..."; + mos_kid = 1; + if (mos_middle == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; } + mes "Yes, my Grandma told me"; + mes "fairy-tales."; + mes "The winter is cold, but"; + mes "it is fun to hear them."; close; } - mes "[Feliks]"; - mes "Yes, my Grandma told me"; - mes "fairy-tales."; - mes "The winter is cold, but"; - mes "it is fun to hear them."; - close; } mes "[Feliks]"; mes "This is the story"; @@ -5867,86 +5780,74 @@ moscovia,202,102,3 script A Little Boy#mos7 962,{ close; } -moscovia,220,172,3 script A Young Man#mos8 968,{ - if (mos_nowinter == 10) { - if (mos_middle == 1) { - mes "[Ilyav]"; - mes "I am going to adventure"; - mes "to experience new worlds"; - mes "as you do."; - close; - } - mes "[Ilyav]"; - mes "I am going to adventure"; - mes "to experience new worlds"; - mes "as you do."; - next; - select("When do you feel good?"); - if (rand(1,100) > 70) { - mes "[Ilyav]"; - mes "When the weather is as good as recently"; - mes "I feel an impulse to adventure"; - mes "many times a day."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Ilyav]"; - mes "But, I don't want to in the cold winter."; - mes "Hu, if the weather everday was as good as lately,"; - mes "I would like to go out a lot more."; - mes "I hate winter..."; - set mos_middle,1; - if (mos_kid == 1 && mos_elder == 1) set mos_nowinter,11; - close; - } - mes "[Ilyav]"; - mes "Well..."; - mes "I don't know."; - mes "I just am sometimes."; - close; - } +moscovia,220,172,3 script A Young Man#mos8 4_M_RUSMAN2,{ mes "[Ilyav]"; mes "I am going to adventure"; mes "to experience new worlds"; mes "as you do."; + if (mos_nowinter == 10) { + if (mos_middle == 0) { + next; + select("When do you feel good?"); + mes "[Ilyav]"; + if (rand(1,100) > 70) { + mes "When the weather is as good as recently"; + mes "I feel an impulse to adventure"; + mes "many times a day."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Ilyav]"; + mes "But, I don't want to in the cold winter."; + mes "Hu, if the weather everday was as good as lately,"; + mes "I would like to go out a lot more."; + mes "I hate winter..."; + mos_middle = 1; + if (mos_kid == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Well..."; + mes "I don't know."; + mes "I just am sometimes."; + } + } close; } -moscovia,253,175,3 script A Man#mos9 964,{ +moscovia,253,175,3 script A Man#mos9 4_M_RUSBALD,{ if (mos_nowinter == 10) { - if (mos_elder == 1) { + if (mos_elder == 0) { + select("What do you usually do in winter?"); mes "[Orek]"; - mes "The present Csar is a bit strict and"; - mes "terrible, but"; - mes "he actually loves"; - mes "his people."; - close; - } - select("What do you usually do in winter?"); - if (rand(1,100) > 70) { - mes "[Orek]"; - mes "It is too cold in winter so I don't go outside."; - mes "There's so much snow that it makes it hard to go"; - mes "around here and there."; + if (rand(1,100) > 70) { + mes "It is too cold in winter so I don't go outside."; + mes "There's so much snow that it makes it hard to go"; + mes "around here and there."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Orek]"; + mes "In winter, fishing is more difficult,"; + mes "anyway, it is bad for us."; + mes "I think it would be ok if we never had winter again."; + mos_elder = 1; + if (mos_kid == 1 && mos_middle == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "It snows a lot in winter and"; + mes "gets too cold."; + mes "So, we don't go outside"; + mes "without a particular reason."; next; - specialeffect2 EF_SUMMONSLAVE; mes "[Orek]"; - mes "In winter, fishing is more difficult,"; - mes "anyway, it is bad for us."; - mes "I think it would be ok if we never had winter again."; - set mos_elder,1; - if (mos_kid == 1 && mos_middle == 1) set mos_nowinter,11; + mes "My family just sits beside the pechka and talks,"; + mes "hoping that winter passes by soon."; close; } - mes "[Orek]"; - mes "It snows a lot in winter and"; - mes "gets too cold."; - mes "So, we don't go outside"; - mes "without a particular reason."; - next; - mes "[Orek]"; - mes "My family just sits beside the pechka and talks,"; - mes "hoping that winter passes by soon."; - close; } mes "[Orek]"; mes "The present Csar is a bit strict and"; @@ -5956,49 +5857,7 @@ moscovia,253,175,3 script A Man#mos9 964,{ close; } -moscovia,168,135,3 script A Lady#mos10 961,{ - if (mos_nowinter == 10) { - if (mos_elder == 1) { - mes "[Kyra]"; - mes "I've seen many people"; - mes "from other provinces recently."; - next; - mes "[Kyra]"; - mes "This used to not"; - mes "be a tourist town."; - mes "What happened...?"; - close; - } - mes "[Kyra]"; - mes "I've seen many people"; - mes "from other provinces recently."; - next; - mes "[Kyra]"; - mes "This used to not"; - mes "be a tourist town."; - mes "What happened...?"; - next; - select("Here it is warm and good."); - if (rand(1,100) > 70) { - mes "[Kyra]"; - mes "Hohoho, that may be true now."; - mes "But, you don't even know how cold it gets here in winter."; - mes "You wouldn't even want to go outside."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Kyra]"; - mes "It is good to stay with my family, but"; - mes "nobody likes the cold winter."; - set mos_elder,1; - if (mos_kid == 1 && mos_middle == 1) set mos_nowinter,11; - close; - } - mes "[Kyra]"; - mes "Hohoho, that may be true now."; - mes "But, you don't even know how cold it gets here in winter."; - mes "You wouldn't even want to go outside."; - close; - } +moscovia,168,135,3 script A Lady#mos10 4_F_RUSWOMAN3,{ mes "[Kyra]"; mes "I've seen many people"; mes "from other provinces recently."; @@ -6007,103 +5866,76 @@ moscovia,168,135,3 script A Lady#mos10 961,{ mes "This used to not"; mes "be a tourist town."; mes "What happened...?"; + if (mos_nowinter == 10) { + if (mos_elder == 0) { + next; + select("Here it is warm and good."); + mes "[Kyra]"; + if (rand(1,100) > 70) { + mes "Hohoho, that may be true now."; + mes "But, you don't even know how cold it gets here in winter."; + mes "You wouldn't even want to go outside."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Kyra]"; + mes "It is good to stay with my family, but"; + mes "nobody likes the cold winter."; + mos_elder = 1; + if (mos_kid == 1 && mos_middle == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Hohoho, that may be true now."; + mes "But, you don't even know how cold it gets here in winter."; + mes "You wouldn't even want to go outside."; + } + } close; } -moscovia,192,80,3 script A Lady#mos11 959,{ +moscovia,192,80,3 script A Lady#mos11 4_F_RUSWOMAN1,{ + mes "[Sabina]"; + mes "Sunflowers are squeezed for oil and"; + mes "their bodies are used for medicinal purposes."; + mes "They are very useful."; if (mos_nowinter == 10) { - if (mos_middle == 1) { - mes "[Sabina]"; - mes "Sunflowers are squeezed for oil and"; - mes "their bodies are used for medicinal purposes."; - mes "They are very useful."; - close; - } - mes "[Sabina]"; - mes "Sunflowers are squeezed for oil and"; - mes "their bodies are used for medicinal purposes."; - mes "They are very useful."; - next; - select("When do sunflowers bloom?"); - if (rand(1,100) > 70) { + if (mos_middle == 0) { + next; + select("When do sunflowers bloom?"); mes "[Sabina]"; + if (rand(1,100) > 70) { + mes "They start to bloom"; + mes "from the late summer."; + mes "You cannot help being"; + mes "attracted to sunflowers,"; + mes "if you see the spectacular scene"; + mes "of a field filled up with them."; + next; + mes "[Sabina]"; + mes "If the summer continues to last,"; + mes "I can see them all the time..."; + specialeffect2 EF_SUMMONSLAVE; + mos_middle = 1; + if (mos_kid == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } mes "They start to bloom"; mes "from the late summer."; mes "You cannot help being"; mes "attracted to sunflowers,"; mes "if you see the spectacular scene"; mes "of a field filled up with them."; - next; - mes "[Sabina]"; - mes "If the summer continues to last,"; - mes "I can see them all the time..."; - specialeffect2 EF_SUMMONSLAVE; - set mos_middle,1; - if (mos_kid == 1 && mos_elder == 1) set mos_nowinter,11; - close; } - mes "[Sabina]"; - mes "They start to bloom"; - mes "from the late summer."; - mes "You cannot help being"; - mes "attracted to sunflowers,"; - mes "if you see the spectacular scene"; - mes "of a field filled up with them."; - close; } - mes "[Sabina]"; - mes "Sunflowers are squeezed for oil and"; - mes "their bodies are used for medicinal purposes."; - mes "They are very useful."; close; } -moscovia,211,215,5 script A Young Man#mos12 967,{ - if (mos_nowinter == 10) { - if (mos_middle == 1) { - mes "[Izlof]"; - mes "There is a old saying,"; - mes "'an opportunity is a chance.'"; - next; - mes "[Izlof]"; - mes "It is best to confess"; - mes "to ladies in the warm weather,"; - mes "when their minds wander"; - mes "like right now!"; - close; - } - mes "[Izlof]"; - mes "There is a old saying,"; - mes "'an opportunity is a chance.'"; - next; - mes "[Izlof]"; - mes "It is best to confess"; - mes "to ladies in the warm weather,"; - mes "when their minds wander"; - mes "right now!"; - next; - select("It's good to have warm weather."); - if (rand(1,100) > 70) { - mes "[Izlof]"; - mes "Of course."; - mes "From now on, it is my golden age of opportunity!"; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Izlof]"; - mes "If it is the summer all the time,"; - mes "my life will be in an amorous mood."; - mes "Hahaha!"; - mes "I don't want winter to come."; - set mos_middle,1; - if (mos_kid == 1 && mos_elder == 1) set mos_nowinter,11; - close; - } - mes "[Izlof]"; - mes "Of course."; - mes "The cold winter has gone."; - mes "From now on, it is my golden age!"; - close; - } +moscovia,211,215,5 script A Young Man#mos12 4_M_RUSMAN1,{ mes "[Izlof]"; mes "There is a old saying,"; mes "'an opportunity is a chance.'"; @@ -6113,101 +5945,107 @@ moscovia,211,215,5 script A Young Man#mos12 967,{ mes "to ladies in the warm weather,"; mes "when their minds wander"; mes "right now!"; + if (mos_nowinter == 10) { + if (mos_middle == 0) { + next; + select("It's good to have warm weather."); + mes "[Izlof]"; + if (rand(1,100) > 70) { + mes "Of course."; + mes "From now on, it is my golden age of opportunity!"; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Izlof]"; + mes "If it is the summer all the time,"; + mes "my life will be in an amorous mood."; + mes "Hahaha!"; + mes "I don't want winter to come."; + mos_middle = 1; + if (mos_kid == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Of course."; + mes "The cold winter has gone."; + mes "From now on, it is my golden age!"; + } + } close; } -moscovia,149,112,3 script A Man#mos13 964,{ - if (mos_nowinter == 10) { - if (mos_elder == 1) { - mes "[Lev]"; - mes "I was once like you,"; - mes "with a hot heart and cool reason,"; - mes "adventuring everywhere and"; - mes "coping with all the troubles..."; - close; - } - mes "[Lev]"; - mes "I was once like you,"; - mes "with a hot heart and cool reason,"; - mes "adventuring everywhere and"; - mes "coping with all the troubles..."; - next; - select("You need to take a rest."); - if (rand(1,100) > 70) { - mes "[Lev]"; - mes "Yes, under the warm sunlight,"; - mes "I like to rest."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Lev]"; - mes "I hope that this warm weather"; - mes "will last forever."; - mes "I hate the cold winter."; - set mos_elder,1; - if (mos_kid == 1 && mos_middle == 1) set mos_nowinter,11; - close; - } - mes "[Lev]"; - mes "Yes, under the warm sunlight,"; - mes "I like to rest."; - next; - mes "[Lev]"; - mes "But, I am still alive!"; - mes "I don't want to hear talk"; - mes "like that from you."; - close; - } +moscovia,149,112,3 script A Man#mos13 4_M_RUSBALD,{ mes "[Lev]"; mes "I was once like you,"; mes "with a hot heart and cool reason,"; mes "adventuring everywhere and"; mes "coping with all the troubles..."; + if (mos_nowinter == 10) { + if (mos_elder == 0) { + next; + select("You need to take a rest."); + mes "[Lev]"; + if (rand(1,100) > 70) { + mes "Yes, under the warm sunlight,"; + mes "I like to rest."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Lev]"; + mes "I hope that this warm weather"; + mes "will last forever."; + mes "I hate the cold winter."; + mos_elder = 1; + if (mos_kid == 1 && mos_middle == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Yes, under the warm sunlight,"; + mes "I like to rest."; + next; + mes "[Lev]"; + mes "But, I am still alive!"; + mes "I don't want to hear talk"; + mes "like that from you."; + } + } close; } -moscovia,196,71,3 script A Young Man#mos14 968,{ - if (mos_nowinter == 10) { - if (mos_middle == 1) { - mes "[Fredek]"; - mes "The men here grow up"; - mes "after going through tough waves in"; - mes "the vast sea"; - next; - mes "[Fredek]"; - mes "Do you like"; - mes "sailing?"; - close; - } - mes "[Fredek]"; - mes "The men here grow up"; - mes "after going through tough waves in"; - mes "the vast sea"; - next; - select("However, if winter comes..."); - if (rand(1,100) > 70) { - mes "[Fredek]"; - mes "Yes, in winter the"; - mes "sea is frozen, so it"; - mes "is impossible to sail."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Fredek]"; - mes "I hope that winter never comes."; - mes "It is my dream."; - set mos_middle,1; - if (mos_kid == 1 && mos_elder == 1) set mos_nowinter,11; - close; - } - mes "[Fredek]"; - mes "Although I won't be able"; - mes "to sail, my passion is not"; - mes "cooled down from winter."; - close; - } +moscovia,196,71,3 script A Young Man#mos14 4_M_RUSMAN2,{ mes "[Fredek]"; mes "The men here grow up"; mes "after going through tough waves in"; mes "the vast sea"; + if (mos_nowinter == 10) { + if (mos_middle == 0) { + next; + select("However, if winter comes..."); + mes "[Fredek]"; + if (rand(1,100) > 70) { + mes "Yes, in winter the"; + mes "sea is frozen, so it"; + mes "is impossible to sail."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Fredek]"; + mes "I hope that winter never comes."; + mes "It is my dream."; + mos_middle = 1; + if (mos_kid == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Although I won't be able"; + mes "to sail, my passion is not"; + mes "cooled down from winter."; + close; + } + } next; mes "[Fredek]"; mes "Do you like"; @@ -6215,95 +6053,80 @@ moscovia,196,71,3 script A Young Man#mos14 968,{ close; } -moscovia,234,168,5 script A Man#mos15 964,{ - if (mos_nowinter == 10) { - if (mos_elder == 1) { - mes "[Gavrel]"; - mes "Don't you think that the castle is magnificent?"; - mes "It was built by my great great grandfather."; - close; - } - mes "[Gavrel]"; - mes "Don't you think that the castle is magnificent?"; - mes "It was built by my great great grandfather."; - next; - mes "[Gavrel]"; - mes "It is very strong and"; - mes "it is warm inside of it."; - mes "I am very proud of it."; - next; - select("Is it cold much in winter?"); - if (rand(1,100) > 70) { - mes "[Gavrel]"; - mes "Yes, it is very cold."; - mes "If you didn't prepare,"; - mes "it would be hard for you."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Gavrel]"; - mes "It would be a lot better"; - mes "if winter never came again."; - mes "But, design of coldness is"; - mes "winter itself, isn't it?"; - set mos_elder,1; - if (mos_kid == 1 && mos_middle == 1) set mos_nowinter,11; - close; - } - mes "[Gavrel]"; - mes "Yes, it is very cold."; - mes "If you didn't prepare,"; - mes "it would be hard for you."; - close; - } +moscovia,234,168,5 script A Man#mos15 4_M_RUSBALD,{ mes "[Gavrel]"; mes "Don't you think that the castle is magnificent?"; mes "It was built by my great great grandfather."; + if (mos_nowinter == 10) { + if (mos_elder == 0) { + next; + mes "[Gavrel]"; + mes "It is very strong and"; + mes "it is warm inside of it."; + mes "I am very proud of it."; + next; + select("Is it cold much in winter?"); + mes "[Gavrel]"; + if (rand(1,100) > 70) { + mes "Yes, it is very cold."; + mes "If you didn't prepare,"; + mes "it would be hard for you."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Gavrel]"; + mes "It would be a lot better"; + mes "if winter never came again."; + mes "But, design of coldness is"; + mes "winter itself, isn't it?"; + mos_elder = 1; + if (mos_kid == 1 && mos_middle == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Yes, it is very cold."; + mes "If you didn't prepare,"; + mes "it would be hard for you."; + } + } close; } -moscovia,228,80,3 script A Little Boy#mos16 962,{ +moscovia,228,80,3 script A Little Boy#mos16 4_M_RUSCHILD,{ if (mos_nowinter == 10) { - if (mos_kid == 1) { + if (mos_kid == 0) { + select("Do you like summer?"); mes "[Rurik]"; - mes "It's hard to look up at you."; - mes "Come lower so I can see your eyes."; - next; - mes "[Rurik]"; - mes "Hmm, that's better."; - mes "Children are the future."; - mes "I won't have a future if I fall"; - mes "back and hurt my neck"; - mes "while looking up at you."; + if (rand(1,100) > 70) { + mes "Ah, move a bit to the side."; + mes "a bit more... Yes."; + mes "Ah, stop there."; + next; + mes "[Rurik]"; + mes "I certainly like the summer."; + mes "Unless the sunlight is too strong,"; + mes "it is much better than the cold winter."; + next; + specialeffect2 EF_SUMMONSLAVE; + mes "[Rurik]"; + mes "By the way, what is this for?"; + mes "It is natural to like the summer."; + mes "Do you think"; + mes "the winter should come again?"; + mos_kid = 1; + if (mos_middle == 1 && mos_elder == 1) { + mos_nowinter = 11; + changequest 18075,18076; + } + close; + } + mes "Sure, I like the summer."; + mes "Why are you asking"; + mes "such a question so suddenly?"; close; } - select("Do you like summer?"); - if (rand(1,100) > 70) { - mes "[Rurik]"; - mes "Ah, move a bit to the side."; - mes "a bit more... Yes."; - mes "Ah, stop there."; - next; - mes "[Rurik]"; - mes "I certainly like the summer."; - mes "Unless the sunlight is too strong,"; - mes "it is much better than the cold winter."; - next; - specialeffect2 EF_SUMMONSLAVE; - mes "[Rurik]"; - mes "By the way, what is this for?"; - mes "It is natural to like the summer."; - mes "Do you think"; - mes "the winter should come again?"; - set mos_kid,1; - if (mos_middle == 1 && mos_elder == 1) set mos_nowinter,11; - close; - } - mes "[Rurik]"; - mes "Sure, I like the summer."; - mes "Why are you asking"; - mes "such a question so suddenly?"; - close; } mes "[Rurik]"; mes "It's hard to look up at you."; @@ -6321,7 +6144,7 @@ moscovia,228,80,3 script A Little Boy#mos16 962,{ //---------------------------------------------------------------------------- // Magic Bottle //---------------------------------------------------------------------------- -mosk_dun03,225,233,0 script Pile of skeletons#mosk 111,{ +mosk_dun03,225,233,0 script Pile of skeletons#Magic HIDDEN_NPC,5,5,{ if (mos_nowinter == 8) { mes "-There are ugly skulls"; mes "all over here but, "; @@ -6333,10 +6156,7 @@ mosk_dun03,225,233,0 script Pile of skeletons#mosk 111,{ } mes "-The ugly skulls are gathered.-"; close; -} -mosk_dun03,225,233,0 script #Magic_Bottle -1,5,5,{ - end; OnTouch: if (mos_nowinter == 8) { mes "-She said that the Magic Gourd Bottle that"; @@ -6355,20 +6175,22 @@ OnTouch: next; while(1) { if(select("Look for it.:I will try next time.") == 1) { - if (BaseJob == Job_Thief) { + if (BaseClass == Job_Thief) { mes "["+strcharinfo(0)+"]"; mes "Here it is."; mes "That was easy to find."; - set mos_nowinter,9; + mos_nowinter = 9; getitem 7761,1; + changequest 18073,18074; close; } if (rand(1,20) > 14) { mes "["+strcharinfo(0)+"]"; mes "Ah, I got it!"; mes "I better get out of here quickly."; - set mos_nowinter,9; - getitem 7761,1; + mos_nowinter = 9; + getitem 7761,1;// Magic_Gourd_Bottle + changequest 18073,18074; close; } mes "............"; @@ -6385,103 +6207,9 @@ OnTouch: } } -//---------------------------------------------------------------------------- -// Csar Alexsay III -//---------------------------------------------------------------------------- -mosk_in,131,92,3 script #Csar -1,7,7,{ - if (mos_nowinter == 12) { - mes "[Csar Alexsay III]"; - mes "You!!!"; - mes "So many people saw you"; - mes "meet with Baba Yaga!"; - next; - mes "[Csar Alexsay III]"; - mes "The guilt which must be felt, when"; - mes "meeting secretly with a witch..."; - next; - mes "[Csar Alexsay III]"; - mes "For that, we indict capital"; - mes "punishment without any just trial!"; - next; - mes "[Csar Alexsay III]"; - mes "But you are a stranger to these"; - mes "lands... So I will hold you in special trial."; - next; - mes "[Csar Alexsay III]"; - mes "If you have anything to say..."; - mes "spare me no detail."; - next; - select("Explain the circumstances."); - mes "-Talk about what happened with Baba"; - mes "Yaga, and move forward with the plan.-"; - next; - mes "[Csar Alexsay III]"; - mes "Hm-hm, that's an embarrassing story..."; - mes "But if you are telling the"; - mes "truth, my people will be pleased."; - next; - mes "[Csar Alexsay III]"; - mes "Okay, Bring to me"; - mes "any evidence, to believe"; - mes "what you are saying."; - next; - mes "[Csar Alexsay III]"; - mes "You killed the Baba Yaga!!"; - mes "If this is true, bring"; - mes "me Yaga's Pestles."; - mes "If you do, I will make"; - mes "sure no one ever doubts you."; - next; - if (countitem(7762) > 39) { - if(select("Show the Yaga's Pestles.:Do nothing.") == 1) { - mes "[" + strcharinfo(0) + "]"; - mes "Yes, Here you are."; - next; - mes "-Offered the Yaga's Pestles.-"; - delitem 7762,40; - next; - mes "[Csar Alexsay III]"; - mes "Hm.. You do have them."; - mes "For the time being, I will admit"; - mes "that you are coming and going to"; - mes "hunt Baba Yaga."; - next; - mes "[Csar Alexsay III]"; - mes "But do not engage in doubtable"; - mes "behavior that would instigate my"; - mes "people to act in a strange way!"; - next; - mes "[Csar Alexsay III]"; - mes "If you do that, I will arrest you immediately!"; - mes "So take care of yourself."; - next; - mes "[Csar Alexsay III]"; - mes "And, when you succeed in"; - mes "banishing winter with magic,"; - mes "announce that to me immediately."; - set mos_nowinter,14; - close; - } - mes "[Csar Alexsay III]"; - mes "I said to bring me"; - mes "40 Yaga's Pestles"; - mes "from the Baba Yaga."; - set mos_nowinter,13; - close; - } - mes "[Csar Alexsay III]"; - mes "I said to bring me"; - mes "40 Yaga's Pestles"; - mes "from the Baba Yaga."; - set mos_nowinter,13; - close; - } - end; -} - // Shafka Hat :: mos_whale_edq //============================================================ -moscovia,211,93,3 script Irina#edq 958,{ +moscovia,211,93,3 script Irina#edq 4_F_RUSCHILD,{ if (!checkweight(1201,1)) { mes "Wait a moment!!"; mes "You have too many items."; @@ -6547,6 +6275,8 @@ moscovia,211,93,3 script Irina#edq 958,{ mes "If you bring the materials,"; mes "we can make one immediately!"; mes "The materials are: ^0000FFNine Tails 20, Yarn 10, Soft Silk 10, Sea-otter Fur 20, Spool 1^000000."; + if (isbegin_quest(18121) == 0) + setquest 18121; next; if (countitem(1022) > 19 && countitem(7038) > 9 && countitem(7166) > 9 && countitem(7065) > 19 && countitem(7217)) { mes "[Irina]"; @@ -6559,6 +6289,7 @@ moscovia,211,93,3 script Irina#edq 958,{ delitem 7065,20; //Sea_Otter_Leather delitem 7217,1; //Spool getitem 5243,1; //Chullos + completequest 18121; mes "[Irina]"; mes "Good, I made it. So, how about it?"; mes "Do you like it?"; @@ -6594,7 +6325,7 @@ moscovia,211,93,3 script Irina#edq 958,{ //---------------------------------------------------------------------------- // Sage - Starting Point //---------------------------------------------------------------------------- -mosk_fild02,198,252,3 script Sage#rus01 755,{ +mosk_fild02,198,252,3 script Sage#rus01 4_M_SAGE_C,{ if (!rhea_rus_main) { mes "[Sage]"; mes "Ah, a foreigner,"; @@ -6659,7 +6390,8 @@ mosk_fild02,198,252,3 script Sage#rus01 755,{ next; mes "[Sage]"; mes "But, don't worry about me. I know my way around here and am not afraid of monsters, haha."; - set rhea_rus_main,1; + rhea_rus_main = 1; + // setquest 8136; close; } mes "[Sage]"; @@ -6682,11 +6414,11 @@ mosk_fild02,198,252,3 script Sage#rus01 755,{ //---------------------------------------------------------------------------- // Mysterious Stone //---------------------------------------------------------------------------- -mosk_dun01,169,162,0 script Mysterious Stone#rus02 111,{ +mosk_dun01,169,162,0 script Mysterious Stone#rus02 HIDDEN_NPC,{ if (!rhea_rus_main) { mes "- The road forks here -"; close; - } else if (rhea_rus_main && rhea_rus_main < 3) { + } else if (rhea_rus_main < 3) { mes "- Words are engraved -"; mes "- on the stone -"; next; @@ -6716,8 +6448,8 @@ mosk_dun01,169,162,0 script Mysterious Stone#rus02 111,{ warp "mosk_dun01",190,47; end; case 2: + mes "["+ strcharinfo(0) +"]"; if (!checkriding()) { - mes "["+ strcharinfo(0) +"]"; mes "...What about the left...?"; next; mes "- You decide to go to the left -"; @@ -6727,24 +6459,21 @@ mosk_dun01,169,162,0 script Mysterious Stone#rus02 111,{ next; mes "- An unknown force has -"; mes "- cursed your body -"; - sc_start SC_CURSE,60000,0; - close2; - warp "mosk_dun01",190,47; - end; } - mes "["+ strcharinfo(0) +"]"; - mes "...What about the left...?"; - next; - mes "- You decide to go to the left -"; - next; - mes "- !!!!!! -"; - emotion e_omg,1; - next; - mes "- Your trusty Pecopeco senses -"; - mes "- an unknown force and tries -"; - mes "- to run away!! -"; + else { + mes "...What about the left...?"; + next; + mes "- You decide to go to the left -"; + next; + mes "- !!!!!! -"; + emotion e_omg,1; + next; + mes "- Your trusty Pecopeco senses -"; + mes "- an unknown force and tries -"; + mes "- to run away!! -"; + setriding 0; + } sc_start SC_CURSE,60000,0; - setriding 0; close2; warp "mosk_dun01",190,47; end; @@ -6758,7 +6487,9 @@ mosk_dun01,169,162,0 script Mysterious Stone#rus02 111,{ mes "- !!!!!! -"; emotion e_omg,1; donpcevent "Gray Wolf#rus03::OnEnable"; - set rhea_rus_main,2; + rhea_rus_main = 2; + // if (isbegin_quest(8136)) + // changequest 8136,8137; close; } } else if (rhea_rus_main == 3 || rhea_rus_main == 4) { @@ -6771,7 +6502,8 @@ mosk_dun01,169,162,0 script Mysterious Stone#rus02 111,{ next; mes "- You carefully read the stone -"; mes "- and decide to wait -"; - if (rhea_rus_main == 3) set rhea_rus_main,4; + if (rhea_rus_main == 3) + rhea_rus_main = 4; donpcevent "Gray Wolf#rus03::OnEnable"; close; } @@ -6780,7 +6512,7 @@ mosk_dun01,169,162,0 script Mysterious Stone#rus02 111,{ //---------------------------------------------------------------------------- // Gray Wolf //---------------------------------------------------------------------------- -mosk_dun01,167,160,3 script Gray Wolf#rus03 972,{ +mosk_dun01,167,160,3 script Gray Wolf#rus03 4_RUS_DWOLF,{ if (rhea_rus_main < 2) { mes "[Gray Wolf]"; mes "... Turn back, adventurer..."; @@ -6810,7 +6542,8 @@ mosk_dun01,167,160,3 script Gray Wolf#rus03 972,{ mes "[Gray Wolf]"; mes "I'm warning you again!"; mes "Unless you want to be killed, leave now."; - set rhea_rus_main,3; + rhea_rus_main = 3; + // changequest 8137,8138; emotion e_omg,1; specialeffect2 EF_HIT2; percentheal -50,0; @@ -6873,44 +6606,38 @@ mosk_dun01,167,160,3 script Gray Wolf#rus03 972,{ next; mes "- He turns his back to me -"; mes "- I jump up and suddenly -"; - set rhea_rus_main,5; + rhea_rus_main = 5; + // changequest 8138,8139; donpcevent "Gray Wolf#rus03::OnDisable"; close2; - warp "mosk_dun01",46,253; + warp "mosk_dun01",45,257; end; } -OnInit: - disablenpc "Gray Wolf#rus03"; - end; - OnEnable: enablenpc "Gray Wolf#rus03"; initnpctimer; end; -OnDisable: - disablenpc "Gray Wolf#rus03"; - stopnpctimer - end; - OnTimer120000: +OnDisable: stopnpctimer; - donpcevent "Gray Wolf#rus03::OnDisable"; +OnInit: + disablenpc "Gray Wolf#rus03"; end; } //---------------------------------------------------------------------------- // Wall (Maria Morebna, Gray Wolf, Koshei) //---------------------------------------------------------------------------- -mosk_dun01,45,259,0 script Wall#rus04 111,{ +mosk_dun01,45,259,0 script Wall#rus04 HIDDEN_NPC,{ if (rhea_rus_main < 5) { mes "["+ strcharinfo(0) +"]"; mes "...?!"; emotion e_what,1; close; } else if (rhea_rus_main == 5) { - set .@speak01,rand(1,3); + .@speak01 = rand(1,3); if (.@speak01 == 3) { mes "["+ strcharinfo(0) +"]"; mes "...?!"; @@ -6960,7 +6687,8 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ mes "[Girl's Voice]"; mes "Please don't forget about me."; donpcevent "Gray Wolf#rus05::OnDisable"; - set rhea_rus_main,6; + rhea_rus_main = 6; + // changequest 8139,8140; close; } else if (rhea_rus_main > 5 && rhea_rus_main < 8) { mes "[Girl's Voice]"; @@ -6972,12 +6700,10 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ close; } else if (rhea_rus_main == 8) { if (rhea_rus_quiz < 3) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Girl's Voice]"; mes "Did you get the key?"; @@ -7032,13 +6758,13 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ mes "If you gather all the things necessary, go to Moscovia and find the keymaker. Do me this favor, please."; close; } else if (rhea_rus_main == 47) { - if (countitem(7876)) { + if (countitem(7876)) {// Gold_Key if ($@rus_req02 == 1) { mes "[Girl's Voice]"; mes "I can feel Koshei's energy.. It is not a time to use the key..."; close; } - set $@rus_req02,1; + $@rus_req02 = 1; mes "[Girl's Voice]"; mes "Did you get the key?"; next; @@ -7069,7 +6795,7 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ next; mes "[Girl's Voice]"; mes "You must've said it wrong..."; - set $@rus_req02,0; + $@rus_req02 = 0; close; } mes "- The wind disappears and -"; @@ -7126,7 +6852,8 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ mes "[Koshei, the Immortal]"; mes "Stop! Where do you think you're going?!!!"; delitem 7876,1; - set rhea_rus_main,48; + rhea_rus_main = 48; + // changequest 8176,8177; monster "mosk_dun01",45,256,"Koshei, the Immortal",1890,1,"Wall#rus04::OnMyMobDead"; donpcevent "Koshei#rus47::OnEnable"; close; @@ -7166,7 +6893,8 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ next; mes "[Gray Wolf]"; mes "I can't keep her alive for much longer. You must find Baba Yaga."; - set rhea_rus_main,49; + rhea_rus_main = 49; + // changequest 8177,8178; close2; donpcevent "Gray Wolf#rus05::OnDisable"; end; @@ -7297,29 +7025,31 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ next; mes "[Maria Morebna]"; mes "Please accept my poor reward, I hope that it will be of some help for such a brave adventurer. I hope that the gods will bless you on your journey."; + // completequest 8180; next; mes "[Maria Morebna]"; mes "It's been a long time since I've felt the sunlight, fresh wind and the scent of grass. I'm so grateful."; - set rhea_rus_main,52; - set .@rus_food,rand(1,6); + rhea_rus_main = 52; + // completequest 8171; + .@rus_food = rand(1,6); switch (rand(1,6)) { - case 1: getitem 12093,1; break; - case 2: getitem 12088,1; break; - case 3: getitem 12073,1; break; - case 4: getitem 12078,1; break; - case 5: getitem 12083,1; break; - case 6: getitem 12098,1; break; + case 1: getitem 12093,1; break;// Dex_Dish08 + case 2: getitem 12088,1; break;// Agi_Dish08 + case 3: getitem 12073,1; break;// Str_Dish08 + case 4: getitem 12078,1; break;// Int_Dish08 + case 5: getitem 12083,1; break;// Vit_Dish08 + case 6: getitem 12098,1; break;// Luk_Dish08 } if (checkre(3)) { - if (BaseLevel < 56) getexp 5700,500; - else if (BaseLevel < 61) getexp 6700,800; - else if (BaseLevel < 66) getexp 8000,1000; - else if (BaseLevel < 71) getexp 13000,1200; - else if (BaseLevel < 76) getexp 17000,1400; - else if (BaseLevel < 81) getexp 20000,1700; - else if (BaseLevel < 86) getexp 45000,2000; - else if (BaseLevel < 91) getexp 75000,3000; - else if (BaseLevel < 160) getexp 200000,4000; + if (BaseLevel < 56) getexp 1300,350; + else if (BaseLevel < 61) getexp 2460,615; + else if (BaseLevel < 66) getexp 4242,1060; + else if (BaseLevel < 71) getexp 6489,1622; + else if (BaseLevel < 76) getexp 16491,4123; + else if (BaseLevel < 81) getexp 27629,6907; + else if (BaseLevel < 86) getexp 34041,8510; + else if (BaseLevel < 91) getexp 41846,10462; + else if (BaseLevel < 150) getexp 88814,22204; else getitem 617,1; //Old_Violet_Box } else { if (BaseLevel < 56) getexp 13000,3500; @@ -7355,24 +7085,18 @@ mosk_dun01,45,259,0 script Wall#rus04 111,{ } OnInit: - enablenpc "Wall#rus04"; - set $@rus_req02,0; - end; - + $@rus_req02 = 0; OnEnable: enablenpc "Wall#rus04"; end; +OnMyMobDead: + $@rus_req02 = 0; + // stopnpctimer; + announce "Koshei, the Immortal : Keeeek, you, cursed human.. I'll never give up!!! We'll see who's smiling in the end!!!",bc_map,0xCE3131; OnDisable: disablenpc "Wall#rus04"; end; - -OnMyMobDead: - donpcevent "Koshei#rus47::OnDisable"; - set $@rus_req02,0; - stopnpctimer; - announce "Koshei, the Immortal : Keeeek, you, cursed human.. I'll never give up!!! We'll see who's smiling in the end!!!",bc_map,0xCE3131; - end; } //---------------------------------------------------------------------------- @@ -7417,33 +7141,26 @@ OnTimer300000: //---------------------------------------------------------------------------- - script mos_rus#main -1,{ end; -OnInit: - if (compare(strnpcinfo(0),"main")) end; - disablenpc strnpcinfo(0); - end; OnEnable: initnpctimer; enablenpc strnpcinfo(0); end; +OnTimer120000: OnDisable: stopnpctimer; +OnInit: disablenpc strnpcinfo(0); end; - -OnTimer120000: - stopnpctimer; - donpcevent strnpcinfo(0)+"::OnDisable"; - end; } -mosk_dun01,50,256,3 duplicate(mos_rus#main) Gray Wolf#rus05 972 -mosk_dun01,46,256,3 duplicate(mos_rus#main) Maria Morebna#rus46 958 +mosk_dun01,50,256,3 duplicate(mos_rus#main) Gray Wolf#rus05 4_RUS_DWOLF +mosk_dun01,46,256,3 duplicate(mos_rus#main) Maria Morebna#rus46 4_F_RUSCHILD //---------------------------------------------------------------------------- // The Blacksmith (Golden Key) //---------------------------------------------------------------------------- -moscovia,178,127,0 script The Blacksmith#rus06 63,{ +moscovia,178,127,0 script The Blacksmith#rus06 1_M_SMITH,{ if ((MaxWeight-Weight) < 3500) { mes "[The Blacksmith]"; mes "Why are you carrying that much?"; @@ -7523,10 +7240,11 @@ moscovia,178,127,0 script The Blacksmith#rus06 63,{ mes "[The Blacksmith]"; mes "Bahahaha~"; mes "I promise you, I'll explain when you bring the ^0000ff25 Steel^000000 to me. Please just get the Steel and come back."; - set rhea_rus_main,7; + rhea_rus_main = 7; + // changequest 8140,8141; close; } else if (rhea_rus_main == 7) { - if (countitem(999) > 24) { + if (countitem(999) > 24) {// Steel mes "[The Blacksmith]"; mes "Ohhh, that was faster than I expected!"; next; @@ -7566,14 +7284,20 @@ moscovia,178,127,0 script The Blacksmith#rus06 63,{ next; mes "[The Blacksmith]"; mes "You need ^0000ff2 Cursed Ruby, 3 Gold, 1 Red Ring, 2 Lusalka's Hair, 10 Golden Thread^000000 to make the key."; + // changequest 8141,8142; next; mes "[The Blacksmith]"; mes "Well, you know what to do now. I will be waiting here."; mes "Bahahaha~"; mes "And don't forget to wear these!"; - delitem 999,25; - set rhea_rus_main,8; - if (BaseClass == Job_Merchant || BaseClass == Job_Swordman || BaseClass == Job_Thief || BaseClass == Job_Archer || BaseClass == Job_Ninja || BaseClass == Job_Gunslinger) getitem 2429,1; else getitem 2430,1; close; + delitem 999,25;// Steel + rhea_rus_main = 8; + // changequest 8138,8139; + if (BaseClass == Job_Merchant || BaseClass == Job_Swordman || BaseClass == Job_Thief || BaseClass == Job_Archer || BaseClass == Job_Ninja || BaseClass == Job_Gunslinger) + getitem 2429,1;// Iron_Boots01 + else + getitem 2430,1;// Iron_Boots02 + close; } mes "[The Blacksmith]"; mes "What are you doing? First, you must get me ^0000ff25 Steel^000000."; @@ -7582,14 +7306,12 @@ moscovia,178,127,0 script The Blacksmith#rus06 63,{ mes "The faster you get me the materials, The faster you can help Maria Morebna."; close; } else if (rhea_rus_main == 8) { - if (countitem(724) > 1 && countitem(969) > 2 && countitem(7877) && countitem(7878) > 1 && countitem(7879) > 9) { + if (countitem(724) > 1 && countitem(969) > 2 && countitem(7877) && countitem(7878) > 1 && countitem(7879) > 9) {// Cardinal_Jewel_, Gold, Red_Ring, Lusalka_Hair, Golden_Thread if (rhea_rus_ring > 8 && rhea_rus_hair > 8 && rhea_rus_quiz > 29) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[The Blacksmith]"; mes "So, you got all the materials. I can't believe it."; @@ -7628,20 +7350,23 @@ moscovia,178,127,0 script The Blacksmith#rus06 63,{ mes "[The Blacksmith]"; mes "This spell protects you from any curse the keymaker might try to use. Remember the words of the spell. It won't last very long because I am just a blacksmith."; next; - if (countitem(2429) || countitem(2430)) { - mes "[The Blacksmith]"; + mes "[The Blacksmith]"; + if (countitem(2429)) + delitem 2429,1; + else if (countitem(2430)) + delitem 2430,1; + else { mes "The forest is dangerous. Be very careful in there!"; - mes "Ah and you shouldn't be needing those Steel Boots anymore. Good luck!"; - if (countitem(2429)) delitem 2429,1; else delitem 2430,1; - set rhea_rus_main,9; + mes "Ah, and your steel boots..?"; + next; + mes "[The Blacksmith]"; + mes "Where are they?"; close; } - mes "[The Blacksmith]"; mes "The forest is dangerous. Be very careful in there!"; - mes "Ah, and your steel boots..?"; - next; - mes "[The Blacksmith]"; - mes "Where are they?"; + mes "Ah and you shouldn't be needing those Steel Boots anymore. Good luck!"; + rhea_rus_main = 9; + // changequest 8142,8158; close; } } @@ -7717,7 +7442,7 @@ moscovia,178,127,0 script The Blacksmith#rus06 63,{ //---------------------------------------------------------------------------- // Vassili Grandpapa (Red Ring) //---------------------------------------------------------------------------- -moscovia,206,81,0 script Vassili Grandpapa#rus07 712,{ +moscovia,206,81,0 script Vassili Grandpapa#rus07 4_M_05,{ if ((MaxWeight-Weight) < 3500) { mes "[Vassili Grandpapa]"; mes "Why are you carring that much?"; @@ -7739,13 +7464,11 @@ moscovia,206,81,0 script Vassili Grandpapa#rus07 712,{ mes "Eeee, I don't want to experience that coldness any more."; close; } else if (rhea_rus_main == 8) { - if (rhea_rus_ring < 1) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (rhea_rus_ring == 0) { + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Vassili Grandpapa]"; mes "Hmm, are you an adventurer? So, how do you like it here?"; @@ -7803,9 +7526,10 @@ moscovia,206,81,0 script Vassili Grandpapa#rus07 712,{ next; mes "[Vassili Grandpapa]"; mes "She disappeared soon... after Now all I have is Ryubaba. She is also pretty and smart but nothing can relieve the sadnesss in my heart from losing Mashenka..."; - set rhea_rus_ring,1; + rhea_rus_ring = 1; + // setquest 8143; close; - } else if (rhea_rus_ring && rhea_rus_ring < 8) { + } else if (rhea_rus_ring < 8) { mes "[Vassili Grandpapa]"; mes "I can still remember how happy she was when I gave it to her."; next; @@ -7813,12 +7537,10 @@ moscovia,206,81,0 script Vassili Grandpapa#rus07 712,{ mes "She disappeared soon... after Now all I have is Ryubaba. She is also pretty and smart but nothing can relieve the sadnesss in my heart from losing Mashenka..."; close; } else if (rhea_rus_ring == 8) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Vassili Grandpapa]"; mes "Ehh? you are the adventurer that I met before. Something to tell me?"; @@ -7826,7 +7548,7 @@ moscovia,206,81,0 script Vassili Grandpapa#rus07 712,{ mes "["+ strcharinfo(0) +"]"; mes "...Listen to... this."; next; - if (countitem(7883)) { + if (countitem(7883)) {// Pointed_Wooden_Flute mes "- You play the flute -"; next; mes "^ff0000Red ring that my father gave me^000000"; @@ -7925,36 +7647,39 @@ moscovia,206,81,0 script Vassili Grandpapa#rus07 712,{ mes "[Vassili Grandpapa]"; mes "You said you needed this ring, right? Take it..."; mes "It has brought me nothing but grief."; + // if (isbegin_quest(8147) == 1) + // completequest 8147; next; mes "[Vassili Grandpapa]"; mes "...It is my fault that this tragedy between my daughters happened. I will spend the rest of my life trying to make up for it..."; - delitem 7883,1; //Pointed_Wooden_Flute - set rhea_rus_ring,10; - getitem 7877,1; //Red_Ring + delitem 7883,1; // Pointed_Wooden_Flute + getitem 7877,1; // Red_Ring + rhea_rus_ring = 10; + // completequest 8144; if (checkre(3)) { if (BaseLevel < 56) getexp 470,0; - else if (BaseLevel > 55 && BaseLevel < 61) getexp 615,0; - else if (BaseLevel > 60 && BaseLevel < 66) getexp 750,0; - else if (BaseLevel > 65 && BaseLevel < 71) getexp 1000,0; - else if (BaseLevel > 70 && BaseLevel < 76) getexp 1500,0; - else if (BaseLevel > 75 && BaseLevel < 81) getexp 2000,0; - else if (BaseLevel > 80 && BaseLevel < 86) getexp 4500,0; - else if (BaseLevel > 85 && BaseLevel < 91) getexp 8500,0; - else if (BaseLevel > 90 && BaseLevel < 99) getexp 30000,0; + else if (BaseLevel < 61) getexp 615,0; + else if (BaseLevel < 66) getexp 750,0; + else if (BaseLevel < 71) getexp 1000,0; + else if (BaseLevel < 76) getexp 1500,0; + else if (BaseLevel < 81) getexp 2000,0; + else if (BaseLevel < 86) getexp 4500,0; + else if (BaseLevel < 91) getexp 8500,0; + else if (BaseLevel < 150) getexp 30000,0; else { getitem 607,1; //Yggdrasilberry getexp 30000,0; } } else { if (BaseLevel < 56) getexp 4700,0; - else if (BaseLevel > 55 && BaseLevel < 61) getexp 6150,0; - else if (BaseLevel > 60 && BaseLevel < 66) getexp 10605,0; - else if (BaseLevel > 65 && BaseLevel < 71) getexp 16223,0; - else if (BaseLevel > 70 && BaseLevel < 76) getexp 41227,0; - else if (BaseLevel > 75 && BaseLevel < 81) getexp 69073,0; - else if (BaseLevel > 80 && BaseLevel < 86) getexp 85102,0; - else if (BaseLevel > 85 && BaseLevel < 91) getexp 104615,0; - else if (BaseLevel > 90 && BaseLevel < 99) getexp 222035,0; + else if ( BaseLevel < 61) getexp 6150,0; + else if (BaseLevel < 66) getexp 10605,0; + else if (BaseLevel < 71) getexp 16223,0; + else if (BaseLevel < 76) getexp 41227,0; + else if (BaseLevel < 81) getexp 69073,0; + else if (BaseLevel < 86) getexp 85102,0; + else if (BaseLevel < 91) getexp 104615,0; + else if (BaseLevel < 99) getexp 222035,0; else getitem 607,1; //Yggdrasilberry } close; @@ -7985,7 +7710,7 @@ moscovia,206,81,0 script Vassili Grandpapa#rus07 712,{ //---------------------------------------------------------------------------- // Ryubaba (Red Ring) //---------------------------------------------------------------------------- -moscovia,213,216,3 script Ryubaba#rus08 960,{ +moscovia,213,216,3 script Ryubaba#rus08 4_F_RUSWOMAN2,{ if ((MaxWeight-Weight) < 3500) { mes "[Ryubaba]"; mes "What on earth do you have in your bag?"; @@ -8011,12 +7736,10 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ emotion e_heh; close; } else if (rhea_rus_ring == 1) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Ryubaba]"; mes "Ah, how beautiful I am."; @@ -8028,11 +7751,10 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ mes "["+ strcharinfo(0) +"]"; mes "Are you crazy!? Don't you know how wide the world is and how many beautiful people there are? You're pretty full of it, country girl!"; next; - if (!Sex) { - mes "["+ strcharinfo(0) +"]"; + mes "["+ strcharinfo(0) +"]"; + if (!Sex) mes "Besides, if there was a most beautiful girl in the world it would be me, me, me!"; - } else { - mes "["+ strcharinfo(0) +"]"; + else { mes "Have you seen dancers dancing? Have you seen beautiful and pure priests?!"; mes "And nothing is like the kind Kafra Employees!!!"; } @@ -8040,7 +7762,7 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ mes "[Ryubaba]"; mes "What!? You bastard!!"; mes "I hate you! Get out of my face!"; - set rhea_rus_ring,2; + rhea_rus_ring = 2; close2; warp "moscovia",220,210; end; @@ -8051,8 +7773,8 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ next; mes "[Ryubaba]"; mes "Huhu, oh you jest. You know what you're talking about. Ah, this is a Choco drink that I have made. Give it a taste, isn't it good?"; - set rhea_rus_ring,4; - getitem 573,1; + rhea_rus_ring = 4; + getitem 573,1;// Chocolate_Drink close; } else if (rhea_rus_ring == 2) { mes "[Ryubaba]"; @@ -8062,30 +7784,32 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ warp "moscovia",220,210; end; } else if (rhea_rus_ring == 3) { - if (countitem(748) > 0 || countitem(749) > 0) { + if (countitem(748) > 0 || countitem(749) > 0) {// Witherless_Rose, Frozen_Rose mes "[Ryubaba]"; mes "What? Why are you here? You get of my..."; next; mes "[Ryubaba]"; mes "...Is that for me?"; next; - if (countitem(748) || countitem(749)) { + mes "[Ryubaba]"; + if (countitem(748)) + delitem 748,1; + else if (countitem(749)) + delitem 749,1; + else { + mes "Well, I forgive.. eh?"; + next; mes "[Ryubaba]"; - mes "Ok. Well, I forgive you."; - if (countitem(748)) delitem 748,1; else delitem 749,1; - set rhea_rus_ring,4; - close; + mes "What? Are you trying to trick me!?"; + mes "I have never met a person ruder than you!"; + mes "I hate you! Get out of my face!"; + close2; + warp "moscovia",220,210; + end; } - mes "[Ryubaba]"; - mes "Well, I forgive.. eh?"; - next; - mes "[Ryubaba]"; - mes "What? Are you trying to trick me!?"; - mes "I have never met a person ruder than you!"; - mes "I hate you! Get out of my face!"; - close2; - warp "moscovia",220,210; - end; + mes "Ok. Well, I forgive you."; + rhea_rus_ring = 4; + close; } mes "[Ryubaba]"; mes "I have never met a person ruder than you!"; @@ -8107,12 +7831,11 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ mes "Why are you here?"; next; input .@input$; + mes "[Ryubaba]"; if (.@input$ == "Red Ring") { - mes "[Ryubaba]"; mes "A Red Ring?!"; next; } else { - mes "[Ryubaba]"; mes "Heh, what are you talking about? What is that?"; close; } @@ -8125,7 +7848,8 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ next; mes "[Ryubaba]"; mes "Right... Let me finish talking. We tried searching for her but we couldn't find her. She must have been wearing the ring when she disappeared around the marsh."; - set rhea_rus_ring,5; + rhea_rus_ring = 5; + // changequest 8143,8144; close; } else if (rhea_rus_ring > 4 && rhea_rus_ring < 7) { mes "[Ryubaba]"; @@ -8139,12 +7863,10 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ mes "Right... Let me finish talking. We tried searching for her but we couldn't find her. She must have been wearing the ring when she disappeared around the marsh."; close; } else if (rhea_rus_ring == 7) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Ryubaba]"; mes "Ah, you come here again. What can I do for you?"; @@ -8152,7 +7874,7 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ mes "["+ strcharinfo(0) +"]"; mes "... Listen to this song."; next; - if (countitem(7883) > 0) { + if (countitem(7883) > 0) {// Pointed_Wooden_Flute mes "- You play the flute -"; next; mes "^ff0000Red ring that my father gave me^000000"; @@ -8236,43 +7958,46 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ next; mes "[Ryubaba]"; mes "W, wait!!!"; - set rhea_rus_ring,8; + rhea_rus_ring = 8; + // changequest 8146,8147; close2; warp "moscovia",203,80; end; } mes "[Ryubaba]"; mes "Are you sure!? Thank you!"; + // completequest 8146; next; mes "[Ryubaba]"; mes "I have to repent for my sins and atone for them for the rest of my life."; - delitem 7883,1; //Pointed_Wooden_Flute - set rhea_rus_ring,9; - getitem 7877,1; //Red_Ring + delitem 7883,1; // Pointed_Wooden_Flute + getitem 7877,1; // Red_Ring + rhea_rus_ring = 9; + // // completequest 8143; if (checkre(3)) { if (BaseLevel < 56) getexp 470,0; - else if (BaseLevel > 55 && BaseLevel < 61) getexp 615,0; - else if (BaseLevel > 60 && BaseLevel < 66) getexp 750,0; - else if (BaseLevel > 65 && BaseLevel < 71) getexp 1000,0; - else if (BaseLevel > 70 && BaseLevel < 76) getexp 1500,0; - else if (BaseLevel > 75 && BaseLevel < 81) getexp 2000,0; - else if (BaseLevel > 80 && BaseLevel < 86) getexp 4500,0; - else if (BaseLevel > 85 && BaseLevel < 91) getexp 8500,0; - else if (BaseLevel > 90 && BaseLevel < 99) getexp 30000,0; + else if (BaseLevel < 61) getexp 615,0; + else if (BaseLevel < 66) getexp 750,0; + else if (BaseLevel < 71) getexp 1000,0; + else if (BaseLevel < 76) getexp 1500,0; + else if (BaseLevel < 81) getexp 2000,0; + else if (BaseLevel < 86) getexp 4500,0; + else if (BaseLevel < 91) getexp 8500,0; + else if (BaseLevel < 150) getexp 30000,0; else { getitem 607,1; //Yggdrasilberry getexp 30000,0; } } else { if (BaseLevel < 56) getexp 4700,0; - else if (BaseLevel > 55 && BaseLevel < 61) getexp 6150,0; - else if (BaseLevel > 60 && BaseLevel < 66) getexp 10605,0; - else if (BaseLevel > 65 && BaseLevel < 71) getexp 16223,0; - else if (BaseLevel > 70 && BaseLevel < 76) getexp 41227,0; - else if (BaseLevel > 75 && BaseLevel < 81) getexp 69073,0; - else if (BaseLevel > 80 && BaseLevel < 86) getexp 85102,0; - else if (BaseLevel > 85 && BaseLevel < 91) getexp 104615,0; - else if (BaseLevel > 90 && BaseLevel < 99) getexp 222035,0; + else if (BaseLevel < 61) getexp 6150,0; + else if (BaseLevel < 66) getexp 10605,0; + else if (BaseLevel < 71) getexp 16223,0; + else if (BaseLevel < 76) getexp 41227,0; + else if (BaseLevel < 81) getexp 69073,0; + else if (BaseLevel < 86) getexp 85102,0; + else if (BaseLevel < 91) getexp 104615,0; + else if (BaseLevel < 99) getexp 222035,0; else getitem 607,1; //Yggdrasilberry } close; @@ -8314,7 +8039,7 @@ moscovia,213,216,3 script Ryubaba#rus08 960,{ //---------------------------------------------------------------------------- // Little Boy (Ryubaba Info) //---------------------------------------------------------------------------- -moscovia,223,210,3 script Little Boy#rus09 962,{ +moscovia,223,210,3 script Little Boy#rus09 4_M_RUSCHILD,{ if (rhea_rus_main < 8) { mes "[Little Boy]"; mes "I will be an adventer and will marry the most beautiful bride!"; @@ -8332,7 +8057,7 @@ moscovia,223,210,3 script Little Boy#rus09 962,{ mes "[Little Boy]"; mes "I don't like her cause she doesn't give me candies or cookies. Although she is beautiful, her temper is so bad..."; next; - if (countitem(529) || countitem(538)) { + if (countitem(529) || countitem(538)) {// Candy, Well_Baked_Cookie mes "[Little Boy]"; mes "Ah, do you have candies or cookies?"; next; @@ -8349,16 +8074,18 @@ moscovia,223,210,3 script Little Boy#rus09 962,{ mes "[Little Boy]"; mes "Ah, I will inform you of something!"; next; - if (countitem(529)) { - mes "[Little Boy]"; - mes "Sister Ryubaba likes presents! Especially flowers such as roses. She believes that they resemble her."; - if (countitem(529)) delitem 529,1; else delitem 538,1; - set rhea_rus_ring,3; + mes "[Little Boy]"; + if (countitem(529)) + delitem 529,1; + else if (countitem(538)) + delitem 538,1; + else { + mes "Sister Ryubaba likes.. eh?"; + mes "Don't you have candies or cookies? Don't you want to give them to me?"; close; } - mes "[Little Boy]"; - mes "Sister Ryubaba likes.. eh?"; - mes "Don't you have candies or cookies? Don't you want to give them to me?"; + mes "Sister Ryubaba likes presents! Especially flowers such as roses. She believes that they resemble her."; + rhea_rus_ring = 3; close; } mes "[Little Boy]"; @@ -8379,7 +8106,7 @@ moscovia,223,210,3 script Little Boy#rus09 962,{ //---------------------------------------------------------------------------- // Shepherdess (Wooden Flute for Red Ring) //---------------------------------------------------------------------------- -mosk_fild02,157,233,0 script Shepherdess#rus10 69,{ +mosk_fild02,157,233,0 script Shepherdess#rus10 1_F_04,{ if (rhea_rus_main < 8) { mes "[Shepherdess]"; mes "Haaaa, boring, boring! Herding sheep is really boring!"; @@ -8396,12 +8123,10 @@ mosk_fild02,157,233,0 script Shepherdess#rus10 69,{ mes "I wish that I could listen to music all the time."; close; } else if (rhea_rus_ring == 5) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Shepherdess]"; mes "Haaaa, boring, boring! Herding sheep is really boring!"; @@ -8423,16 +8148,15 @@ mosk_fild02,157,233,0 script Shepherdess#rus10 69,{ next; mes "[Shepherdess]"; mes "I am an excellent flute player! If you get me enough Pointed Branches, I will make a flute from them and play beautiful music for you. Please~!"; - set rhea_rus_ring,6; + rhea_rus_ring = 6; + // changequest 8144,8145; close; } else if (rhea_rus_ring == 6) { - if (countitem(7882) > 24) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (countitem(7882) > 24) {// Pointed_Branch + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Shepherdess]"; mes "Wow, did you get the Pointed Branches!?"; @@ -8477,8 +8201,9 @@ mosk_fild02,157,233,0 script Shepherdess#rus10 69,{ mes "- ^0000ffShepherdess gives me the^000000 -"; mes "- ^0000ff'Pointed Wooden Flute'!!^000000 -"; delitem 7882,25; - set rhea_rus_ring,7; - getitem 7883,1; + rhea_rus_ring = 7; + getitem 7883,1;// Pointed_Wooden_Flute + // changequest 8145,8146; close; } mes "[Shepherdess]"; @@ -8510,12 +8235,12 @@ mosk_fild02,157,233,0 script Shepherdess#rus10 69,{ //---------------------------------------------------------------------------- - script PTree#rusmain -1,{ if (rhea_rus_ring == 6) { - if (countitem(7882) < 50) { + if (countitem(7882) < 50) {// Pointed_Branch if (rand(1,3) == 2) { mes "- I avoid the thorns and -"; mes "- cut off a branch!! -"; getitem 7882,1; - donpcevent "Pointed Tree#rus11::OnDisable"; + donpcevent strnpcinfo(0) +"::OnDisable"; close; } mes "- My hand is pricked by thorns! -"; @@ -8524,38 +8249,32 @@ mosk_fild02,157,233,0 script Shepherdess#rus10 69,{ close; } } - -OnInit: - enablenpc "Pointed Tree#rus11"; - end; - -OnEnable: - stopnpctimer; - enablenpc "Pointed Tree#rus11"; end; OnDisable: initnpctimer; - disablenpc "Pointed Tree#rus11"; + disablenpc strnpcinfo(0); end; OnTimer60000: - donpcevent "Pointed Tree#rus11::OnEnable"; +OnEnable: + stopnpctimer; + enablenpc strnpcinfo(0); end; } -mosk_fild02,151,188,0 duplicate(PTree#rusmain) Pointed Tree#rus11 111 -mosk_fild02,160,227,0 duplicate(PTree#rusmain) Pointed Tree#rus12 111 -mosk_fild02,160,179,0 duplicate(PTree#rusmain) Pointed Tree#rus13 111 -mosk_fild02,142,247,0 duplicate(PTree#rusmain) Pointed Tree#rus14 111 -mosk_fild02,149,223,0 duplicate(PTree#rusmain) Pointed Tree#rus15 111 -mosk_fild02,114,223,0 duplicate(PTree#rusmain) Pointed Tree#rus16 111 -mosk_fild02,101,197,0 duplicate(PTree#rusmain) Pointed Tree#rus17 111 -mosk_fild02,125,182,0 duplicate(PTree#rusmain) Pointed Tree#rus18 111 +mosk_fild02,151,188,0 duplicate(PTree#rusmain) Pointed Tree#rus11 HIDDEN_NPC +mosk_fild02,160,227,0 duplicate(PTree#rusmain) Pointed Tree#rus12 HIDDEN_NPC +mosk_fild02,160,179,0 duplicate(PTree#rusmain) Pointed Tree#rus13 HIDDEN_NPC +mosk_fild02,142,247,0 duplicate(PTree#rusmain) Pointed Tree#rus14 HIDDEN_NPC +mosk_fild02,149,223,0 duplicate(PTree#rusmain) Pointed Tree#rus15 HIDDEN_NPC +mosk_fild02,114,223,0 duplicate(PTree#rusmain) Pointed Tree#rus16 HIDDEN_NPC +mosk_fild02,101,197,0 duplicate(PTree#rusmain) Pointed Tree#rus17 HIDDEN_NPC +mosk_fild02,125,182,0 duplicate(PTree#rusmain) Pointed Tree#rus18 HIDDEN_NPC //---------------------------------------------------------------------------- // Worried Mother (Lusalka's Hair) //---------------------------------------------------------------------------- -moscovia,166,145,1 script Worried Mother#rus19 961,{ +moscovia,166,145,1 script Worried Mother#rus19 4_F_RUSWOMAN3,{ if (rhea_rus_main < 8) { mes "[Worried Mother]"; mes "Where is she..."; @@ -8568,12 +8287,10 @@ moscovia,166,145,1 script Worried Mother#rus19 961,{ close; } else if (rhea_rus_main == 8) { if (rhea_rus_hair < 1) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Worried Mother]"; mes "Where is she..."; @@ -8604,7 +8321,8 @@ moscovia,166,145,1 script Worried Mother#rus19 961,{ next; mes "[Worried Mother]"; mes "Please, please find my daughter."; - set rhea_rus_hair,1; + rhea_rus_hair = 1; + // setquest 8148; close; } else if (rhea_rus_hair == 1) { mes "[Worried Mother]"; @@ -8627,7 +8345,8 @@ moscovia,166,145,1 script Worried Mother#rus19 961,{ next; mes "[Worried Mother]"; mes "I'm not sure where she would be but it has to be somewhere near water. Please, find where my daughter is. I beg of you."; - set rhea_rus_hair,2; + rhea_rus_hair = 2; + // changequest 8148,8149; close; } else if (rhea_rus_hair > 1 && rhea_rus_hair < 9) { mes "[Worried Mother]"; @@ -8658,13 +8377,13 @@ moscovia,166,145,1 script Worried Mother#rus19 961,{ //---------------------------------------------------------------------------- // Marsh Warning Signs //---------------------------------------------------------------------------- -- script Caution#07rus::NoSwim 837,{ +- script Caution#07rus::NoSwim -1,{ mes " WARNING !! "; mes "No Swimming"; close; } -mosk_fild02,101,204,0 duplicate(NoSwim) Caution#rus01 837 -mosk_fild02,101,200,0 duplicate(NoSwim) Caution#rus02 837 +mosk_fild02,101,204,0 duplicate(NoSwim) Caution#rus01 2_BULLETIN_BOARD +mosk_fild02,101,200,0 duplicate(NoSwim) Caution#rus02 2_BULLETIN_BOARD //---------------------------------------------------------------------------- // Lusalka Trigger (Lusalka's Hair) @@ -8672,15 +8391,15 @@ mosk_fild02,101,200,0 duplicate(NoSwim) Caution#rus02 837 mosk_fild02,116,202,3 script Lusalka#07russai_22 -1,3,3,{ end; OnTouch: - if (rhea_rus_main != 8) { + if (rhea_rus_main != 8 || rhea_rus_hair < 2) { emotion e_what,1; end; } if (rhea_rus_hair == 2) { - if (gettime(3)>=23 || gettime(3)<=5) { + if (gettime(3) >= 17 || gettime(3) <= 6) { mes "- Splash !! -"; next; - if (countitem(523) > 0) { + if (countitem(523) > 0) {// Holy_Water mes "- You hear a splashing sound -"; mes "- and see something gleaming -"; donpcevent "Lusalka#rus23::OnEnable"; @@ -8691,7 +8410,7 @@ OnTouch: mes "- seems to stare at you!! -"; next; specialeffect2 EF_FLASHER; - percentheal -100,0; + percentheal -60,0; close; } } else if (rhea_rus_hair > 2 && rhea_rus_hair < 7) { @@ -8702,7 +8421,7 @@ OnTouch: mes "And please, tell him to stop suffering and to be happy. This is my request."; close; } else if (rhea_rus_hair == 7) { - if (gettime(3)>=23 || gettime(3)<=5) { + if (gettime(3) >= 17 || gettime(3) <= 6) { mes "- Splash !! -"; next; if (countitem(523) > 0) { @@ -8712,7 +8431,7 @@ OnTouch: } mes "-You seem to hear the splash but something gleaming raids on you!!-"; specialeffect2 EF_FLASHER; - percentheal -100,0; + percentheal -60,0; close; } } else if (rhea_rus_hair == 8) { @@ -8732,8 +8451,10 @@ OnTouch: mes "- As soon as you touch the -"; mes "- cool damp hair, you seem -"; mes "- the feel the sadness within -"; - set rhea_rus_hair,9; + rhea_rus_hair = 9; getitem 7878,2; + // // completequest 8150; + // completequest 8153; close; } else if (rhea_rus_hair > 8) { mes "- You feel that someone -"; @@ -8752,8 +8473,8 @@ OnTouch: //---------------------------------------------------------------------------- // Lusalka (Lusalka's Hair) //---------------------------------------------------------------------------- -mosk_fild02,124,202,3 script Lusalka#rus23 971,{ - if (countitem(523)) { +mosk_fild02,124,202,3 script Lusalka#rus23 4_F_RUSGREEN,{ + if (countitem(523)) {// Holy_Water if (rhea_rus_main < 8) { mes "[Lusalka]"; mes "...Your alive..."; @@ -8762,17 +8483,16 @@ mosk_fild02,124,202,3 script Lusalka#rus23 971,{ close; } else if (rhea_rus_main == 8) { if (rhea_rus_hair < 2) { + mes "[Lusalka]"; mes "...Your alive..."; mes "My stare didn't..."; mes "What are you doing here...?"; close; } else if (rhea_rus_hair == 2) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "...Your alive..."; mes "My stare didn't..."; @@ -8846,7 +8566,8 @@ mosk_fild02,124,202,3 script Lusalka#rus23 971,{ mes "- ^0000ffI recieve the^000000 -"; mes "- ^0000ffgolden earrings^000000 -"; mes "- ^0000fffrom Lusalka!^000000 -"; - set rhea_rus_hair,3; + rhea_rus_hair = 3; + // changequest 8149,8150; donpcevent "Lusalka#rus23::OnDisable"; close; } else if (rhea_rus_hair > 2 && rhea_rus_hair < 7) { @@ -8857,12 +8578,10 @@ mosk_fild02,124,202,3 script Lusalka#rus23 971,{ mes "And please, tell him to stop suffering and to be happy. This is my request."; close; } else if (rhea_rus_hair == 7) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Lusalka]"; mes "Have you seen him? How was he?"; @@ -8926,7 +8645,9 @@ mosk_fild02,124,202,3 script Lusalka#rus23 971,{ mes "["+ strcharinfo(0) +"]"; mes "W, who are you!? Ahkkk!!"; sc_start SC_BLIND,10000,0; - set rhea_rus_hair,8; + rhea_rus_hair = 8; + // // completequest 8150; + // completequest 8153; donpcevent "Lusalka#rus23::OnDisable"; close; } else if (rhea_rus_hair > 7) { @@ -8952,34 +8673,27 @@ mosk_fild02,124,202,3 script Lusalka#rus23 971,{ } mes "-When Lusalka watches you, you are blacked out-"; specialeffect2 EF_FLASHER; - percentheal -100,0; + percentheal -60,0; donpcevent "Lusalka#rus23::OnDisable"; close; -OnInit: - disablenpc "Lusalka#rus23"; - end; - OnEnable: initnpctimer; enablenpc "Lusalka#rus23"; end; +OnTimer300000: OnDisable: stopnpctimer; +OnInit: disablenpc "Lusalka#rus23"; end; - -OnTimer300000: - stopnpctimer; - donpcevent "Lusalka#rus23::OnDisable"; - end; } //---------------------------------------------------------------------------- // Wanderer (Lusalka's Hair) //---------------------------------------------------------------------------- -prontera,228,279,3 script Wanderer#rus24 968,{ +prontera,228,279,3 script Wanderer#rus24 4_M_RUSMAN2,{ if (rhea_rus_main < 8) { mes "[A Wanderer from a strange land]"; mes "Hey, there are so many adventurers around here. I can see why this is the capital of the Rune Midgarts Kingdom!"; @@ -8996,12 +8710,10 @@ prontera,228,279,3 script Wanderer#rus24 968,{ mes "In your free time, come to see me! The weather here is even more favorable than our the best summer back home."; close; } else if (rhea_rus_hair == 3) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[A Wanderer from a strange land]"; mes "Hey, there are so many adventurers around here. I can see why this is the capital of the Rune Midgarts Kingdom!"; @@ -9058,7 +8770,8 @@ prontera,228,279,3 script Wanderer#rus24 968,{ mes "Though, he did tell"; mes "me that he wanted"; mes "to travel to a desert."; - set rhea_rus_hair,4; + rhea_rus_hair = 4; + // changequest 8150,8151; close; } else if (rhea_rus_hair > 3 && rhea_rus_hair < 7) { mes "[A Wanderer from a strange land]"; @@ -9084,7 +8797,7 @@ prontera,228,279,3 script Wanderer#rus24 968,{ //---------------------------------------------------------------------------- // Morroc Villager (Lusalka's Hair) //---------------------------------------------------------------------------- -morocc,165,82,0 script Morroc Villager#rus25 48,{ +morocc,165,82,0 script Morroc Villager#rus25 1_M_02,{ if (rhea_rus_main < 8) { mes "[Morroc Villager]"; mes "Huh, more and more adventurers are settling here recently, so it's hard to tell who is a villager or an adventurer."; @@ -9101,12 +8814,10 @@ morocc,165,82,0 script Morroc Villager#rus25 48,{ mes "But natives, like me, can tell the difference."; close; } else if (rhea_rus_hair == 4) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Morroc Villager]"; mes "Huh, more and more adventurers are settling here recently, so it's hard to tell who is a villager or an adventurer."; @@ -9138,7 +8849,8 @@ morocc,165,82,0 script Morroc Villager#rus25 48,{ next; mes "[Morroc Villager]"; mes "Yep that's gotta be who you're looking for. I can see his gloomy face right now... that poor sad man."; - set rhea_rus_hair,5; + rhea_rus_hair = 5; + // changequest 8151,8152; close; } else if (rhea_rus_hair > 4 && rhea_rus_hair < 7) { mes "[Morroc Villager]"; @@ -9157,7 +8869,7 @@ morocc,165,82,0 script Morroc Villager#rus25 48,{ //---------------------------------------------------------------------------- // Soldier/Igor (Lusalka's Hair) //---------------------------------------------------------------------------- -moc_pryd04,126,120,0 script Soldier#rus26 967,{ +moc_pryd04,126,120,0 script Soldier#rus26 4_M_RUSMAN1,{ if (rhea_rus_main < 8) { mes "[A gloomy looking soldier]"; mes "............................"; @@ -9168,12 +8880,11 @@ moc_pryd04,126,120,0 script Soldier#rus26 967,{ mes "............................"; close; } else if (rhea_rus_hair == 4 || rhea_rus_hair == 5) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + .@player_name$ = strcharinfo(0); + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ .@player_name$ +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[A gloomy looking soldier]"; mes "............................"; @@ -9181,25 +8892,25 @@ moc_pryd04,126,120,0 script Soldier#rus26 967,{ mes "[A gloomy looking soldier]"; mes "...I don't know who you are. Just get outta my face. I don't want to talk..."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "It's pretty dangerous here. There are fierce monsters all over the place."; next; mes "[A gloomy looking soldier]"; mes "... Good. Let them come. I want to die here alone."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "A-Are you Igor? What're you talking about? Have you gone nuts?"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Do you have any idea how much your lover is suffering?"; next; mes "[A gloomy looking soldier]"; mes "My... lover...?"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I brought a message from her. She says not to suffer anymore and to just be happy..."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "The more you suffer, the deeper she sinks into sadness. Don't think that you're the only one that's suffering..."; next; mes "[A gloomy looking soldier]"; @@ -9214,10 +8925,10 @@ moc_pryd04,126,120,0 script Soldier#rus26 967,{ mes "T, this is Svetlana's...?!"; mes "H, how did you!?"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I met her by accident. She became Lusalka in the marsh of Moscovia."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "She told me that you wouldn't believe me so she gave me these earrings as proof... The present that you gave to her."; next; mes "[A gloomy looking soldier]"; @@ -9242,15 +8953,13 @@ moc_pryd04,126,120,0 script Soldier#rus26 967,{ mes "[A gloomy looking soldier]"; mes "I, I was a coward. I was too afraid of drowning to pull her out of the marsh. Too afraid of...."; mes "Oh... Svetlana!!!"; - set rhea_rus_hair,6; + rhea_rus_hair = 6; close; } else if (rhea_rus_hair == 6) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[A gloomy looking soldier]"; mes "I knew that she had become the cursed nymph Lusalka. But, I still went every night... to find her. I just wanted to see her and talk to her."; @@ -9278,7 +8987,8 @@ moc_pryd04,126,120,0 script Soldier#rus26 967,{ next; mes "[A gloomy looking soldier]"; mes "Before the full moon, I will be back to Moscovia and meet her. I will come back so strong and happy that when I go to see her she will not suffer anymore."; - set rhea_rus_hair,7; + rhea_rus_hair = 7; + // changequest 8152,8153; close; } else if (rhea_rus_hair == 7) { mes "[A gloomy looking soldier]"; @@ -9300,30 +9010,22 @@ moc_pryd04,126,120,0 script Soldier#rus26 967,{ //---------------------------------------------------------------------------- // Marozka's Dungeon (Golden Thread) //---------------------------------------------------------------------------- -mosk_dun01,45,250,3 script 1#rus27 45,3,3,{ +mosk_dun01,45,250,3 script 1#rus27 WARPNPC,3,3,{ end; OnTouch: warp "mosk_que",49,22; end; -OnInit: - disablenpc "1#rus27"; - end; - OnEnable: initnpctimer; specialeffect EF_PORTAL2; enablenpc "1#rus27"; end; -OnDisable: - stopnpctimer; - disablenpc "1#rus27"; - end; - OnTimer30000: stopnpctimer; - donpcevent "1#rus27::OnDisable"; +OnInit: + disablenpc "1#rus27"; end; } mosk_que,0,0,0,0 monster Freezer 1887,10,20000,0,0 @@ -9364,7 +9066,8 @@ OnTouch: next; mes "[Voice unidentified]"; mes "Show me what you can do."; - set rhea_rus_quiz,1; + rhea_rus_quiz = 1; + // setquest 8155; close; } } @@ -9372,15 +9075,13 @@ OnTouch: close; } -mosk_que,45,131,0 script Stone Furnace#rus28 111,{ +mosk_que,45,131,0 script Stone Furnace#rus28 HIDDEN_NPC,{ if (rhea_rus_main == 8) { if (rhea_rus_quiz == 1) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "- You can see the -"; mes "- well baked cookies. -"; @@ -9407,51 +9108,42 @@ mosk_que,45,131,0 script Stone Furnace#rus28 111,{ percentheal -5,0; close; } - if (!$@rus_req01) { - mes "[Marozka's Guard]"; - mes "How did this rat get inside the cave?!"; - announce "Marozka's Guard : Invader! Search the whole cave!!",bc_map,0x87CEEB; - set rhea_rus_quiz,2; - initnpctimer; - monster "mosk_que",49,156,"Marozka's Guard",1889,1,"Stone Furnace#rus28::OnMyMobDead"; - set $@rus_req01,1; - close; - } mes "[Marozka's Guard]"; mes "How did this rat get inside the cave?!"; announce "Marozka's Guard : Invader! Search the whole cave!!",bc_map,0x87CEEB; - set rhea_rus_quiz,2; + rhea_rus_quiz = 2; + if (!$@rus_req01) { + initnpctimer; + monster "mosk_que",49,156,"Marozka's Guard",1889,1,"Stone Furnace#rus28::OnMyMobDead"; + $@rus_req01 = 1; + } close; } } emotion e_what,1; close; -OnInit: - set $@rus_req01,0; - end; - OnMyMobDead: stopnpctimer; - set $@rus_req01,0; + $@rus_req01 = 0; announce "Mazroka : You are truly brave. When you get the cookies and apples, come to see me.",bc_map,0x87CEEB; end; OnTimer300000: - set $@rus_req01,0; killmonster "mosk_que","Stone Furnace#rus28::OnMyMobDead"; + stopnpctimer; +OnInit: + $@rus_req01 = 0; end; } -mosk_que,56,202,0 script Occult Apple Tree#rus29 111,{ +mosk_que,56,202,0 script Occult Apple Tree#rus29 HIDDEN_NPC,{ if (rhea_rus_main == 8) { if (rhea_rus_quiz == 2) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "- There are Ripe Apples -"; mes "- growing in clusters. -"; @@ -9473,7 +9165,7 @@ mosk_que,56,202,0 script Occult Apple Tree#rus29 111,{ } mes "- ^0000ff You get 100 Apples !!^000000 -"; announce "Mazroka : You are truly brave. When you get the cookies and apples, come to see me.",bc_map,0x87CEEB; - set rhea_rus_quiz,3; + rhea_rus_quiz = 3; close; } } @@ -9481,12 +9173,12 @@ mosk_que,56,202,0 script Occult Apple Tree#rus29 111,{ close; } -mosk_que,47,217,0 warp Escape#rus30 1,1,mosk_fild02,237,266 +mosk_que,47,217,0 warp Escape#rus30 3,3,mosk_fild02,237,266 //---------------------------------------------------------------------------- // Marozka (Golden Thread) //---------------------------------------------------------------------------- -mosk_fild02,243,270,0 script Marozka#rus31 866,{ +mosk_fild02,243,270,0 script Marozka#rus31 4_M_LGTGRAND,{ if (rhea_rus_main < 8) { mes "[Marozka]"; mes "..........................."; @@ -9497,12 +9189,10 @@ mosk_fild02,243,270,0 script Marozka#rus31 866,{ mes "..........................."; close; } else if (rhea_rus_quiz == 3) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Marozka]"; mes ".....................you came."; @@ -9520,16 +9210,17 @@ mosk_fild02,243,270,0 script Marozka#rus31 866,{ next; mes "[Marozka]"; 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); + rhea_rus_quiz = 4; + rus_time01 = gettime(3); + rus_time02 = gettime(4); + // changequest 8155,8156; close; } else if (rhea_rus_quiz == 4) { - if (rus_time01 < gettime(3) || rus_time02 < gettime(4) || (rus_time02 == 6 && gettime(4) == 0)) { + if (rus_time01 != gettime(3) || rus_time02 != gettime(4)) { 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."; - set rhea_rus_quiz,28; + rhea_rus_quiz = 28; close; } mes "[Marozka]"; @@ -9561,15 +9252,14 @@ mosk_fild02,243,270,0 script Marozka#rus31 866,{ next; mes "[Marozka]"; mes "That was a test of your strength. Now you must pass the test of mind and wisdom."; - set rhea_rus_quiz,29; + rhea_rus_quiz = 29; + // changequest 8156,8157; close; } else if (rhea_rus_quiz == 29) { - if (getequipid(EQI_SHOES) != 2429) { - if (getequipid(EQI_SHOES) != 2430) { - mes "["+ strcharinfo(0) +"]"; - mes "...Hmm, did I forget to wear something...?"; - close; - } + if (getequipid(EQI_SHOES) != 2429 && getequipid(EQI_SHOES) != 2430) { + mes "["+ strcharinfo(0) +"]"; + mes "...Hmm, did I forget to wear something...?"; + close; } mes "[Marozka]"; mes "...So? Have you decided?"; @@ -9582,32 +9272,31 @@ mosk_fild02,243,270,0 script Marozka#rus31 866,{ mes "[Marozka]"; mes "You will... Ok, let's get to it. You must answer all of these questions correctly in order to pass the test."; next; - set .@rus_quiz01,0; mes "[Marozka]"; mes "What is deaf, dumb, and blind and always tells the truth?"; next; - set .@j,select("A Poring:A Picky:A Mirror:A Tree"); - set .@rus_quiz01,(.@j==3)?.@rus_quiz01+1:.@rus_quiz01; + .@j = select("A Poring:A Picky:A Mirror:A Tree"); + .@rus_quiz01 = (.@j==3) ? 1 : 0; mes "[Marozka]"; mes "If 4 cats can catch 4 mice every 4 minutes, what is the minimum number of cats needed to get 10 mice in 10 minutes?"; next; - set .@j,select("4:5:6:10"); - set .@rus_quiz01,(.@j==1)?.@rus_quiz01+1:.@rus_quiz01; + .@j = select("4:5:6:10"); + .@rus_quiz01 = (.@j==1)?.@rus_quiz01+1:.@rus_quiz01; mes "[Marozka]"; mes "Which of these gets shorter during winter and longer during summer?"; next; - set .@j,select("Sky:Day:Waves:Wind"); - set .@rus_quiz01,(.@j==2)?.@rus_quiz01+1:.@rus_quiz01; + .@j = select("Sky:Day:Waves:Wind"); + .@rus_quiz01 = (.@j==2)?.@rus_quiz01+1:.@rus_quiz01; mes "[Marozka]"; mes "Doris Etticoat, wears a petticoat and has a red nose; the longer she stands, the shorter she grows. What is she?"; next; - set .@j,select("A Star:A Candle:A Sword:The Moon"); - set .@rus_quiz01,(.@j==2)?.@rus_quiz01+1:.@rus_quiz01; + .@j = select("A Star:A Candle:A Sword:The Moon"); + .@rus_quiz01 = (.@j==2)?.@rus_quiz01+1:.@rus_quiz01; mes "[Marozka]"; mes "My top and bottom are twins of a kind. The middle of me makes one body combined. If I stand tall and still, run faster I will. What am I?"; next; - set .@j,select("A Woman:Valkyrie:The Moon:An Hourglass"); - set .@rus_quiz01,(.@j==4)?.@rus_quiz01+1:.@rus_quiz01; + .@j = select("A Woman:Valkyrie:The Moon:An Hourglass"); + .@rus_quiz01 = (.@j==4)?.@rus_quiz01+1:.@rus_quiz01; mes "[Marozka]"; mes "Now let's see how you did."; next; @@ -9628,8 +9317,9 @@ mosk_fild02,243,270,0 script Marozka#rus31 866,{ next; mes "[Marozka]"; mes "I hope you help Maria with your strength and kindness."; - set rhea_rus_quiz,30; - getitem 7879,10; + rhea_rus_quiz = 30; + getitem 7879,10;// Golden_Thread + // completequest 8157; close; } } @@ -9644,7 +9334,7 @@ mosk_fild02,243,270,0 script Marozka#rus31 866,{ //---------------------------------------------------------------------------- // Baba Yaga (Golden Key) //---------------------------------------------------------------------------- -mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ +mosk_dun02,48,214,5 script Baba Yaga#rus32 4_F_BABAYAGA,{ if (rhea_rus_main < 9) { mes "[Baba Yaga]"; mes "..........................."; @@ -9653,10 +9343,11 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ emotion e_omg,1; close; } else if (rhea_rus_main == 9) { + .@player_name$ = strcharinfo(0); mes "[Baba Yaga]"; mes "Why are you here, you yummy looking human? If you lotter around here any longer, I will make myself some tasty human soup! Hehehehehe"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I, ah, I.. Gold.. golden..."; next; mes "[Baba Yaga]"; @@ -9676,18 +9367,18 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ mes "[Baba Yaga]"; mes "Leave now, or I will curse you again! 'Presto...'"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Eh, eh.. I mean.. I say.. spell..."; next; input .@input$; if (.@input$ == "Spellshield Protection") { - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Eh, eh.. I mean.. I say.. spell..."; mes ""+ .@input$ +" !!!"; specialeffect2 EF_ABSORBSPIRITS; next; } else { - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Eh, eh.. I mean.. I say.. spell..."; mes ""+ .@input$ +" !!!"; next; @@ -9701,20 +9392,20 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ mes "[Baba Yaga]"; mes "Ho, you are protected by a Protection Spell. You are no ordinary kid."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I heard that you are able to make the 'Golden Key' and that's why I am here!"; next; mes "[Baba Yaga]"; mes "'Golden Key'? Why do you need it?"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I need it to release Maria Mobrena from her dark wall prison."; next; mes "[Baba Yaga]"; mes "...Maria Morebna..."; mes "Are you fighting against Koshei?"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "If he gets in my way of keeping my promise to her, I guess that I will fight him."; next; mes "[Baba Yaga]"; @@ -9743,7 +9434,7 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ delitem 7877,1; delitem 7878,2; delitem 7879,10; - set rhea_rus_main,10; + rhea_rus_main = 10; close; } else if (rhea_rus_main == 10) { mes "[Baba Yaga]"; @@ -9761,7 +9452,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Ok! Move, move! You better be quick or I will find a way to punish you. Ehehehehehe."; - set rhea_rus_main,11; + rhea_rus_main = 11; + // changequest 8158,8159; close; } else if (BaseClass == Job_Acolyte) { mes "[Baba Yaga]"; @@ -9769,7 +9461,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Ok! Move, move! You better be quick or I will find a way to punish you. Ehehehehehe."; - set rhea_rus_main,16; + rhea_rus_main = 16; + // changequest 8158,8161; close; } else if (BaseClass == Job_Thief) { mes "[Baba Yaga]"; @@ -9777,7 +9470,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Ok! Move, move! You better be quick or I will find a way to punish you. Ehehehehehe."; - set rhea_rus_main,21; + rhea_rus_main = 21; + // changequest 8158,8163; close; } else if (BaseClass == Job_Mage) { mes "[Baba Yaga]"; @@ -9785,7 +9479,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Ok! Move, move! You better be quick or I will find a way to punish you. Ehehehehehe."; - set rhea_rus_main,26; + rhea_rus_main = 26; + // changequest 8158,8169; close; } else if (BaseClass == Job_Swordman) { mes "[Baba Yaga]"; @@ -9793,7 +9488,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Ok! Move, move! You better be quick or I will find a way to punish you. Ehehehehehe."; - set rhea_rus_main,31; + rhea_rus_main = 31; + // changequest 8158,8171; close; } mes "[Baba Yaga]"; @@ -9801,7 +9497,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Ok! Move, move! You better be quick or I will find a way to punish you. Ehehehehehe."; - set rhea_rus_main,36; + rhea_rus_main = 36; + // changequest 8158,8173; close; } else if (rhea_rus_main > 10 && rhea_rus_main < 16) { mes "[Baba Yaga]"; @@ -9845,7 +9542,7 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ mes "'Keep off the grass!!!'"; specialeffect EF_BEGINSPELL4; delitem 7881,1; - set rhea_rus_main,28; + rhea_rus_main = 28; monster "mosk_dun02",52,210,"Violent Gardener",1493,1,"Baba Yaga#rus32::OnMyMobDead"; monster "mosk_dun02",53,210,"Dangerous Gardener",1500,1,"Baba Yaga#rus32::OnMyMobDead"; monster "mosk_dun02",54,210,"Brutal Gardener",1497,1,"Baba Yaga#rus32::OnMyMobDead"; @@ -9871,7 +9568,7 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ mes "[Baba Yaga]"; mes "'There is an order for you to open your eyes!!!'"; specialeffect2 EF_BEGINSPELL3; - set rhea_rus_main,29; + rhea_rus_main = 29; monster "mosk_dun02",52,210,"Alarm to 5 minutes",1193,1,"Baba Yaga#rus32::OnMyMobDead"; monster "mosk_dun02",53,210,"Alarm on time",1193,1,"Baba Yaga#rus32::OnMyMobDead"; monster "mosk_dun02",54,210,"Alarm past 5 minutes",1193,1,"Baba Yaga#rus32::OnMyMobDead"; @@ -9903,7 +9600,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Huh, I can make it for you right now. You have a violent temper."; - set rhea_rus_main,44; + rhea_rus_main = 44; + // changequest 8161,8162; close; } else if (rhea_rus_main > 30 && rhea_rus_main < 36) { mes "[Baba Yaga]"; @@ -9928,8 +9626,9 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Here, help Maria with this key and watch out for Koshei. He is very dangerous. Kehehehehehe."; - set rhea_rus_main,47; + rhea_rus_main = 47; getitem 7876,1; + // changequest 8160,8176; close; } else if (rhea_rus_main == 42) { mes "["+ strcharinfo(0) +"]"; @@ -9943,7 +9642,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Here, help Maria with this key and watch out for Koshei. He is very dangerous. Kehehehehehe."; - set rhea_rus_main,47; + // changequest 8162,8176; + rhea_rus_main = 47; getitem 7876,1; close; } else if (rhea_rus_main == 43) { @@ -9960,7 +9660,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ mes "[Baba Yaga]"; mes "Here, help Maria with this key and watch out for Koshei. He is very dangerous. Kehehehehehe."; delitem 7880,1; - set rhea_rus_main,47; + rhea_rus_main = 47; + // changequest 8168,8176; getitem 7876,1; close; } @@ -9985,7 +9686,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Here, help Maria with this key and watch out for Koshei. He is very dangerous. Kehehehehehe."; - set rhea_rus_main,47; + rhea_rus_main = 47; + // changequest 8170,8176; getitem 7876,1; close; } else if (rhea_rus_main == 45) { @@ -10000,7 +9702,9 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Here, help Maria with this key and watch out for Koshei. He is very dangerous. Kehehehehehe."; - set rhea_rus_main,47; + rhea_rus_main = 47; + // changequest 8164,8167; + // changequest 8172,8176; getitem 7876,1; close; } else if (rhea_rus_main == 46) { @@ -10015,7 +9719,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Here, help Maria with this key and watch out for Koshei. He is very dangerous. Kehehehehehe."; - set rhea_rus_main,47; + rhea_rus_main = 47; + // changequest 8175,8176; getitem 7876,1; close; } else if (rhea_rus_main > 46 && rhea_rus_main < 49) { @@ -10053,7 +9758,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Bring them to me quickly! Time is running out!"; - set rhea_rus_main,50; + rhea_rus_main = 50; + // changequest 8178,8179; close; } else if (rhea_rus_main == 50) { if (countitem(523) && countitem(12020) && countitem(610) > 1 && countitem(520) > 9) { @@ -10105,7 +9811,8 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ delitem 12020,1; delitem 610,2; delitem 520,10; - set rhea_rus_main,51; + rhea_rus_main = 51; + // changequest 8179,8180; close; } mes "[Baba Yaga]"; @@ -10157,7 +9864,7 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; mes "[Baba Yaga]"; mes "Whenever you come to me, I will make you potions with just a few materials and a small fee. I hope that this will be of help to you. Kehehehehehe."; - set rhea_rus_main,53; + rhea_rus_main = 53; close; } else if (rhea_rus_main > 52) { mes "[Baba Yaga]"; @@ -10165,179 +9872,19 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ next; switch(select("Condensed Red Potion:Condensed Yellow Potion:Cancel")) { case 1: - if (countitem(501) > 0 && countitem(1092) > 0 && countitem(7134) > 0 && countitem(512) > 4) { - if (Zeny > 19) { - set .@red_potion01,countitem(501); - set .@red_tube01,countitem(1092); - set .@red_cup01,countitem(7134); - set .@red_apple01,countitem(512); - set .@red_zeny01,Zeny; - while(1) { - if (!.@red_potion01 || !.@red_tube01 || !.@red_cup01 || .@red_apple01 < 5 || .@red_zeny01 < 20) break; - else { - set .@red_slim01,.@red_slim01+1; - set .@red_potion01,.@red_potion01-1; - set .@redpotion_send,.@redpotion_send+1; - set .@red_tube01,.@red_tube01-1; - set .@redtube_send,.@redtube_send+1; - set .@red_cup01,.@red_cup01-1; - set .@redcup_send,.@redcup_send+1; - set .@red_apple01,.@red_apple01-5; - set .@redapple_send,.@redapple_send+5; - set .@red_zeny01,.@red_zeny01-20; - set .@redzeny_sen,.@redzeny_send+20; - } - } - mes "[Baba Yaga]"; - mes "To make Condensed Red Potions, I need ^0000ff1 Red Potion, 1 Empty Test Tube, 1 Medicine Bowl, 5 Apples and 20 Zeny^000000."; - next; - mes "[Baba Yaga]"; - mes "With your materials, I can make ^0000ff"+ red_slim01 +"^000000 Condensed Red Potions."; - next; - mes "[Baba Yaga]"; - mes "How many do you want me to make? I can only make 100 at a time. If you don't want any, then just say '0'. Kehehehehe."; - next; - while(1) { - input .@input; - if (!.@input) { - mes "[Baba Yaga]"; - mes "You don't want it?"; - next; - mes "[Baba Yaga]"; - mes "I don't understand you. What do you want? Kehehehehe."; - close; - } else if (.@input > 100) { - mes "[Baba Yaga]"; - mes "I said no more then 100 at a time. Kehehehehe."; - next; - } else break; - } - set .@redpotion_send,.@input; - set .@redtube_send,.@input; - set .@redcup_send,.@input; - set .@redapple_send,.@input * 5; - set .@redzeny_send,.@input * 20; - set .@total_red01,.@input; - if (countitem(501) < .@redpotion_send || countitem(1092) < .@redtube_send || countitem(7134) < .@redcup_send || countitem(512) < .@redapple_send || Zeny < .@redzeny_send) { - mes "[Baba Yaga]"; - mes "Where are the materials?"; - mes "They are not enough! Check them and come back again! Kehehehehe."; - close; - } - mes "[Baba Yaga]"; - mes "Ho, you want "+ .@input +". Ok, wait here for a while."; - next; - mes "- Baba Yaga grinds the Apples -"; - mes "- and pours the Red Potion -"; - mes "- into the Medicine Bowl, -"; - mes "- boils and cools it down -"; - mes "- and puts it in the Test Tube -"; - next; - mes "[Baba Yaga]"; - mes "Here, done!"; - specialeffect EF_PHARMACY_OK; - next; - mes "[Baba Yaga]"; - mes "Whenever you want more, come to me."; - delitem 501,.@redpotion_send; - delitem 1092,.@redtube_send; - delitem 7134,.@redcup_send; - delitem 512,.@redapple_send; - set Zeny,Zeny-.@redzeny_send; - getitem 545,.@total_red01; - close; - } - } - mes "[Baba Yaga]"; - mes "To make Condensed Red Potions, I need ^0000ff1 Red Potion, 1 Empty Test Tube, 1 Medicine Bowl, 5 Apples and 20 Zeny^000000."; - close; + .@item = 545; + .@zeny_req = 20; + setarray .@item_req[0], 501,1092,7134,512; + setarray .@amount[0], 1,1,1,5; + .@string$ = "I can only make 100 at a time. If you don't want any, then just say '0'"; + break; case 2: - if (countitem(503) && countitem(1092) && countitem(7134) && countitem(513) > 9) { - if (Zeny > 49) { - set .@yell_potion01,countitem(503); - set .@yell_tube01,countitem(1092); - set .@yell_cup01,countitem(7134); - set .@yell_banana01,countitem(513); - set .@yell_zeny01,Zeny; - while(1) { - if (!.@yell_potion01 || !.@yell_tube01 || !.@yell_cup01 || .@yell_banana01 < 10 || .@yell_zeny01 < 50) break; - else { - set .@yell_slim01,.@yell_slim01+1; - set .@yell_potion01,.@yell_potion01-1; - set .@yellpotion_send,.@yellpotion_send+1; - set .@yell_tube01,.@yell_tube01-1; - set .@yelltube_send,.@yelltube_send+1; - set .@yell_cup01,.@yell_cup01-1; - set .@yellcup_send,.@yellcup_send+1; - set .@yell_banana01,.@yell_banana01-10; - set .@yellbanana_send,.@yellbanana_send+10; - set .@yell_zeny01,.@yell_zeny01-50; - set .@yellzeny_send,.@yellzeny_send+50; - } - } - mes "[Baba Yaga]"; - mes "To make Condensed Yellow Potions, I need ^0000ff1 Yellow Potion, 1 Test Tube, 1 Medicine_Bowl, 10 Bananas and 50 Zeny^000000."; - next; - mes "[Baba Yaga]"; - mes "With your materials, I can make ^0000ff"+ .@yell_slim01+"^000000."; - next; - mes "[Baba Yaga]"; - mes "How many do you want me to make? Tell me the number less than 100. If you don't want, tell me zero. Kehehehehe."; - next; - while(1) { - input .@input; - if (!.@input) { - mes "[Baba Yaga]"; - mes "You don't want it?"; - next; - mes "[Baba Yaga]"; - mes "I don't understand you. What do you want? Kehehehehe."; - close; - } else if (.@input > 100) { - mes "[Baba Yaga]"; - mes "I said no more then 100 at a time. Kehehehehe."; - next; - } else break; - } - set .@yellpotion_send,.@input; - set .@yelltube_send,.@input; - set .@yellcup_send,.@input; - set .@yellbanana_send,.@input*10; - set .@yellzeny_send,.@input*50; - set .@total_yell01,.@input; - if (countitem(503) < .@yellpotion_send || countitem(1092) < .@yelltube_send || countitem(7134) < .@yellcup_send || countitem(513) < .@yellbanana_send || Zeny < .@yellzeny_send) { - mes "[Baba Yaga]"; - mes "Where are the materials?"; - mes "They are not enough! Check them and come back again! Kehehehehe."; - close; - } - mes "[Baba Yaga]"; - mes "Ho, you want "+ .@input +". Ok, wait here for a while."; - next; - mes "- Baba Yaga grinds the Banannas -"; - mes "- and pours the Yellow Potion -"; - mes "- into the Medicine Bowl, -"; - mes "- boils and cools it down -"; - mes "- and puts it in the Test Tube -"; - next; - mes "[Baba Yaga]"; - mes "Here, done!"; - specialeffect EF_PHARMACY_OK; - next; - mes "[Baba Yaga]"; - mes "Whenever you want more, come to me."; - delitem 503,.@yellpotion_send; - delitem 1092,.@yelltube_send; - delitem 7134,.@yellcup_send; - delitem 513,.@yellbanana_send; - set Zeny,Zeny-.@yellzeny_send; - getitem 546,.@total_yell01; - close; - } - } - mes "[Baba Yaga]"; - mes "To make Condensed Yellow Potions, I need ^0000ff1 Yellow Potion, 1 Test Tube, 1 Medicine_Bowl, 10 Bananas and 50 Zeny^000000."; - close; + .@item = 546; + .@zeny_req = 50; + setarray .@item_req[0], 503,1092,7134,513; + setarray .@amount[0], 1,1,1,10; + .@string$ = "Tell me the number less than 100. If you don't want, tell me zero"; + break; case 3: mes "[Baba Yaga]"; mes "You don't want anything?"; @@ -10346,19 +9893,69 @@ mosk_dun02,48,214,5 script Baba Yaga#rus32 970,{ mes "I don't understand you. What do you want? kehehehehe."; close; } + mes "[Baba Yaga]"; + mes sprintf( "To make %s, I need ^0000ff%d %s, %d %s, %d %s, %d %s and %d Zeny^000000.", getitemname(.@item), .@amount[0], getitemname(.@item_req[0]), .@amount[1], getitemname(.@item_req[1]), .@amount[2], getitemname(.@item_req[2]), .@amount[3], getitemname(.@item_req[3]), .@zeny_req ); + if (Zeny >= .@zeny_req && countitem(.@item_req[0]) >= .@amount[0] && countitem(.@item_req[1]) >= .@amount[1] && countitem(.@item_req[2]) >= .@amount[2] && countitem(.@item_req[3]) >= .@amount[3]) { + .@total = countitem(.@item_req[0])/.@amount[0]; + .@total = ( .@total <= ( countitem(.@item_req[1])/.@amount[1] ) ) ? .@total : ( countitem(.@item_req[1])/.@amount[1] ); + .@total = ( .@total <= ( countitem(.@item_req[2])/.@amount[2] ) ) ? .@total : ( countitem(.@item_req[2])/.@amount[2] )); + .@total = ( .@total <= ( countitem(.@item_req[3])/.@amount[3] ) ) ? .@total : ( countitem(.@item_req[3])/.@amount[3] ); + .@total = ( .@total <= ( Zeny/.@zeny_req ) ) ? .@total : ( Zeny/.@zeny_req ); + next; + mes "[Baba Yaga]"; + mes "With your materials, I can make ^0000ff"+ .@total +"^000000 "+ getitemname(.@item) +"."; + next; + mes "[Baba Yaga]"; + mes "How many do you want me to make? "+ .@string$ +". Kehehehehe."; + next; + while(1) { + input .@input; + mes "[Baba Yaga]"; + if (!.@input) { + mes "You don't want it?"; + next; + mes "[Baba Yaga]"; + mes "I don't understand you. What do you want? Kehehehehe."; + close; + } else if (.@input > 100) { + mes "I said no more then 100 at a time. Kehehehehe."; + next; + } else break; + } + if (Zeny < ( .@zeny_req *.@input ) || countitem(.@item_req[0]) < ( .@amount[0] *.@input ) || countitem(.@item_req[1]) < ( .@amount[1] *.@input ) || countitem(.@item_req[2]) < (.@amount[2] *.@input ) || countitem(.@item_req[3]) < (.@amount[3] *.@input )) { + mes "[Baba Yaga]"; + mes "Where are the materials?"; + mes "They are not enough! Check them and come back again! Kehehehehe."; + close; + } + mes "[Baba Yaga]"; + mes "Ho, you want "+ .@input +". Ok, wait here for a while."; + next; + mes "- Baba Yaga grinds the "+ getitemname(.@item_req[3]) +" -"; + mes "- and pours the "+ getitemname(.@item_req[0]) +" -"; + mes "- into the Medicine Bowl, -"; + mes "- boils and cools it down -"; + mes "- and puts it in the Test Tube -"; + next; + mes "[Baba Yaga]"; + mes "Here, done!"; + specialeffect EF_PHARMACY_OK; + next; + mes "[Baba Yaga]"; + mes "Whenever you want more, come to me."; + delitem .@item_req[0], ( .@amount[0] *.@input ); + delitem .@item_req[1], ( .@amount[1] *.@input ); + delitem .@item_req[2], ( .@amount[2] *.@input ); + delitem .@item_req[3], ( .@amount[3] *.@input ); + Zeny = Zeny - (.@input*.@zeny_req); + getitem .@item, .@input; + } + close; } mes "[Baba Yaga]"; mes "What are you, human child."; close; -OnInit: - enablenpc "Baba Yaga#rus32"; - end; - -OnEnable: - enablenpc "Baba Yaga#rus32"; - end; - OnDisable: initnpctimer; disablenpc "Baba Yaga#rus32"; @@ -10367,35 +9964,21 @@ OnDisable: OnTimer180000: stopnpctimer; killmonster "mosk_dun02","Baba Yaga#rus32::OnMyMobDead"; - donpcevent "Baba Yaga#rus32::OnEnable"; - end; OnMyMobDead: - donpcevent "Baba Yaga#rus32::OnEnable"; + enablenpc "Baba Yaga#rus32"; end; } //---------------------------------------------------------------------------- // Baba Yaga's Tasks (Golden Key) //---------------------------------------------------------------------------- -mosk_dun02,257,193,0 script Cow#rus33 889,3,3,{ +mosk_dun02,257,193,0 script Cow#rus33 4_BULL,3,3,{ end; -OnInit: - enablenpc "Cow#rus33"; - end; - -OnEnable: - enablenpc "Cow#rus33"; - end; - -OnDisable: - disablenpc "Cow#rus33"; - end; - OnTouch: + mes "[Cow]"; + mes "Moo..."; if (rhea_rus_main == 11) { - mes "[Cow]"; - mes "Moo.."; next; mes "["+ strcharinfo(0) +"]"; mes "Hah, t, that is Baba Yaga's cow?!"; @@ -10409,35 +9992,38 @@ OnTouch: next; mes "- The cow seems surprised, jumps and tries to attack you !! -"; next; + .@npc_num = atoi( charat( strnpcinfo(2),4 ) ); + if (.@npc_num == 3) + setarray .@other_npc[0],4,5; + else if (.@npc_num == 4) + setarray .@other_npc[0],3,5; + else + setarray .@other_npc[0],3,4; if (rand(1,4) == 3) { mes "- You almost get hit and dodge its attack and cast the spell !! -"; next; input .@input$; + mes "["+ strcharinfo(0) +"]"; + mes ""+ .@input$ +" !!!"; if (.@input$ == "Good feed is orange-flavored") { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!!"; specialeffect EF_TELEPORTATION2; next; mes "- You cast the spell in a hurry and the cow is surronded by the light and disappears !! -"; - donpcevent "Cow#rus33::OnDisable"; - donpcevent "Cow#rus34::OnEnable"; + disablenpc strnpcinfo(0); + enablenpc "Cow#rus3"+ .@other_npc[0]; next; } else { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!!"; next; mes "[Cow]"; mes "...Moo..."; emotion e_dots; next; mes "- The cow, seems to gibe at you, looks at you quickly and runs to bushes !! -"; - if (rand(1,2) == 1) { - donpcevent "Cow#rus33::OnDisable"; - donpcevent "Cow#rus34::OnEnable"; - } else { - donpcevent "Cow#rus33::OnDisable"; - donpcevent "Cow#rus35::OnEnable"; - } + disablenpc strnpcinfo(0); + if (rand(2)) + enablenpc "Cow#rus3"+ .@other_npc[0]; + else + enablenpc "Cow#rus3"+ .@other_npc[1]; close; } } else { @@ -10445,13 +10031,11 @@ OnTouch: mes "Akkkk?! Eh!? The s-spell..."; next; mes "- You hesitate, the cow, seems to gibe at you, passes by you and runs to bushes !! -"; - if (rand(1,2) == 1) { - donpcevent "Cow#rus33::OnDisable"; - donpcevent "Cow#rus34::OnEnable"; - } else { - donpcevent "Cow#rus33::OnDisable"; - donpcevent "Cow#rus35::OnEnable"; - } + disablenpc strnpcinfo(0); + if (rand(2)) + enablenpc "Cow#rus3"+ .@other_npc[0]; + else + enablenpc "Cow#rus3"+ .@other_npc[1]; close; } mes "["+ strcharinfo(0) +"]"; @@ -10459,224 +10043,29 @@ OnTouch: next; mes "["+ strcharinfo(0) +"]"; mes "Ok, then. Let's get back to Baba Yaga..."; - set rhea_rus_main,41; + rhea_rus_main = 41; + // changequest 8159,8160; close; } else if (rhea_rus_main == 41) { - mes "[Cow]"; - mes "Moo..."; next; mes "- The cow is tied around its neck and eats grass comfortably -"; next; mes "["+ strcharinfo(0) +"]"; mes "I must return to Baba Yaga..."; - close; } - mes "[Cow]"; - mes "Moo..."; close; } +mosk_dun02,146,247,4 duplicate(Cow#rus33) Cow#rus34 4_BULL,3,3 +mosk_dun02,102,107,4 duplicate(Cow#rus33) Cow#rus35 4_BULL,3,3 -mosk_dun02,257,193,0 script Cow#rus34 889,3,3,{ - end; -OnInit: - enablenpc "Cow#rus34"; - end; - -OnEnable: - enablenpc "Cow#rus34"; - end; - -OnDisable: - disablenpc "Cow#rus34"; - end; - -OnTouch: - if (rhea_rus_main == 11) { - mes "[Cow]"; - mes "Moo.."; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Hah, t, that is Baba Yaga's cow?!"; - mes "Y, you..."; - next; - mes "- You approach to the cow carefully and hold its nape -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "You! Go home now!"; - emotion e_omg; - next; - mes "- The cow seems surprised, jumps and tries to attack you !! -"; - next; - if (rand(1,4) == 3) { - mes "- You almost get hit and dodge its attack and cast the spell !! -"; - next; - input .@input$; - if (.@input$ == "Good feed is orange-flavored") { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!!"; - specialeffect EF_TELEPORTATION2; - next; - mes "- You cast the spell in a hurry and the cow is surronded by the light and disappears !! -"; - donpcevent "Cow#rus34::OnDisable"; - donpcevent "Cow#rus34::OnEnable"; - next; - } else { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!!"; - next; - mes "[Cow]"; - mes "...Moo..."; - emotion e_dots; - next; - mes "- The cow, seems to gibe at you, looks at you quickly and runs to bushes !! -"; - if (rand(1,2) == 1) { - donpcevent "Cow#rus34::OnDisable"; - donpcevent "Cow#rus34::OnEnable"; - } else { - donpcevent "Cow#rus34::OnDisable"; - donpcevent "Cow#rus35::OnEnable"; - } - close; - } - } else { - mes "["+ strcharinfo(0) +"]"; - mes "Akkkk?! Eh!? The s-spell..."; - next; - mes "- You hesitate, the cow, seems to gibe at you, passes by you and runs to bushes !! -"; - if (rand(1,2) == 1) { - donpcevent "Cow#rus34::OnDisable"; - donpcevent "Cow#rus34::OnEnable"; - } else { - mes "- You hesitate, the cow, seems to gibe at you, passes by you and runs to bushes !! -"; - donpcevent "Cow#rus34::OnDisable"; - donpcevent "Cow#rus35::OnEnable"; - } - close; - } - mes "["+ strcharinfo(0) +"]"; - mes "What a surprise. The cow is bad like its owner."; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Ok, then. Let's get back to Baba Yaga..."; - set rhea_rus_main,41; - close; - } else if (rhea_rus_main == 41) { - mes "[Cow]"; - mes "Moo..."; - next; - mes "- The cow is tied around its neck and eats grass comfortably -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "I must return to Baba Yaga..."; - close; - } - mes "[Cow]"; - mes "Moo..."; - close; -} - -mosk_dun02,257,193,0 script Cow#rus35 889,3,3,{ - end; -OnInit: - enablenpc "Cow#rus35"; - end; - -OnEnable: - enablenpc "Cow#rus35"; - end; - -OnDisable: - disablenpc "Cow#rus35"; - end; - -OnTouch: - if (rhea_rus_main == 11) { - mes "[Cow]"; - mes "Moo.."; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Hah, t, that is Baba Yaga's cow?!"; - mes "Y, you..."; - next; - mes "- You approach to the cow carefully and hold its nape -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "You! Go home now!"; - emotion e_omg; - next; - mes "- The cow seems surprised, jumps and tries to attack you !! -"; - next; - if (rand(1,4) == 3) { - mes "- You almost get hit and dodge its attack and cast the spell !! -"; - next; - input .@input$; - if (.@input$ == "Good feed is orange-flavored") { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!!"; - specialeffect EF_TELEPORTATION2; - next; - mes "- You cast the spell in a hurry and the cow is surronded by the light and disappears !! -"; - donpcevent "Cow#rus35::OnDisable"; - donpcevent "Cow#rus35::OnEnable"; - next; - } else { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!!"; - next; - mes "[Cow]"; - mes "...Moo..."; - emotion e_dots; - next; - mes "- The cow, seems to gibe at you, looks at you quickly and runs to bushes !! -"; - donpcevent "Cow#rus35::OnDisable"; - donpcevent "Cow#rus35::OnEnable"; - close; - } - } else { - mes "["+ strcharinfo(0) +"]"; - mes "Akkkk?! Eh!? The s-spell..."; - next; - mes "- You hesitate, the cow, seems to gibe at you, passes by you and runs to bushes !! -"; - donpcevent "Cow#rus35::OnDisable"; - donpcevent "Cow#rus35::OnEnable"; - close; - } - mes "["+ strcharinfo(0) +"]"; - mes "What a surprise. The cow is bad like its owner."; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Ok, then. Let's get back to Baba Yaga..."; - set rhea_rus_main,41; - close; - } else if (rhea_rus_main == 41) { - mes "[Cow]"; - mes "Moo..."; - next; - mes "- The cow is tied around its neck and eats grass comfortably -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "I must return to Baba Yaga..."; - close; - } - mes "[Cow]"; - mes "Moo..."; - close; -} - -mosk_dun02,65,232,0 script Noisy Coffin#rus36 801,{ - if (rhea_rus_main < 16) { - mes "[Noisy Coffin]"; - mes "Isn't it good to be alive? Isn't it good to live?"; - next; - mes "[Noisy Coffin]"; - mes "Don't you want to exchange lives with me? Exchange with me, exchange!"; - close; - } else if (rhea_rus_main > 15 && rhea_rus_main < 19) { +mosk_dun02,65,232,0 script Noisy Coffin#rus36 4_NFCOFFIN,{ + if (rhea_rus_main < 19) { mes "[Noisy Coffin]"; mes "Isn't it good to be alive? Isn't it to live?"; next; mes "[Noisy Coffin]"; mes "Don't you want to exchange lives with me? Exchange with me, exchange!"; + if (rhea_rus_main < 16) close; next; mes "["+ strcharinfo(0) +"]"; mes "Ehh, that's one noisy coffin."; @@ -10688,98 +10077,70 @@ mosk_dun02,65,232,0 script Noisy Coffin#rus36 801,{ mes "["+ strcharinfo(0) +"]"; mes "... How can I silence him..."; next; - while(1) { + while (.@break_while == 0) { switch(select("Pray:Sing a hymn:Pour Holy Water on him:Kick him")) { case 1: + mes "["+ strcharinfo(0) +"]"; + mes "...I'll pray."; + next; + mes "["+ strcharinfo(0) +"]"; + mes "Heaven, earth, and wind belong to God, there is no place for evil."; + specialeffect EF_BLESSING; + next; + mes "[Noisy Coffin]"; if (rhea_rus_main == 17) { - mes "["+ strcharinfo(0) +"]"; - mes "...I'll pray."; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Heaven, earth, and wind belong to God, there is no place for evil."; - specialeffect EF_BLESSING; - next; - mes "[Noisy Coffin]"; mes "Heek, heeee! Heeeeeek!"; - set rhea_rus_main,18; - next; + rhea_rus_main = 18; } else { - mes "["+ strcharinfo(0) +"]"; - mes "...I'll pray."; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Heaven, earth, and wind belong to God, there is no place for evil."; - specialeffect EF_BLESSING; - next; - mes "[Noisy Coffin]"; mes "What was that? What was that for? Was it fun?"; next; mes "["+ strcharinfo(0) +"]"; mes "......................................"; - next; + .@break_while = 1; } break; case 2: + mes "["+ strcharinfo(0) +"]"; + mes "Hmm, hmm! I'll sing a hymn. The first phrase 'Holy god against evils'!!"; + next; + mes "["+ strcharinfo(0) +"]"; + mes "- The covetous, the perverse -"; + mes "- All the evils hateful -"; + mes "- Will be droven off this land -"; + specialeffect EF_GLORIA; + next; + mes "[Noisy Coffin]"; if (rhea_rus_main == 18) { - mes "["+ strcharinfo(0) +"]"; - mes "Hmm, hmm! I'll sing a hymn. The first phrase 'Holy god against evils'!!"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "- The covetous, the perverse -"; - mes "- All the evils hateful -"; - mes "- Will be droven off this land -"; - specialeffect EF_GLORIA; - next; - mes "[Noisy Coffin]"; mes "Heek, heeee! Heeeeeek!"; - set rhea_rus_main,19; - next; + rhea_rus_main = 19; } else { - mes "["+ strcharinfo(0) +"]"; - mes "Hmm, hmm! I'll sing a hymn. The first phrase 'Good looks down at us'!!"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "- The covetous, the perverse -"; - mes "- All the evils hateful -"; - mes "- Will be droven off this land -"; - specialeffect EF_GLORIA; - next; - mes "[Noisy Coffin]"; mes "Perverse! The perverse!! Drive away!! What was that song?! Was it fun?!"; next; mes "["+ strcharinfo(0) +"]"; mes "......................................"; - next; + .@break_while = 1; } break; case 3: if (countitem(523)) { + mes "["+ strcharinfo(0) +"]"; + mes "If you don't shut up, I will pour Holy Water on you!"; + next; + mes "- You open the bottle of Holy Water and pour it around the coffin carefully !! -"; + specialeffect EF_SPHERE; + next; + mes "[Noisy Coffin]"; if (rhea_rus_main == 16) { - mes "["+ strcharinfo(0) +"]"; - mes "If you don't shut up, I will pour Holy Water on you!"; - next; - mes "- You open the bottle of Holy Water and pour it around the coffin carefully !! -"; - specialeffect EF_SPHERE; - next; - mes "[Noisy Coffin]"; mes "Heek, heeee! Heeeeeek!"; delitem 523,1; - set rhea_rus_main,17; - next; + rhea_rus_main = 17; } else { - mes "["+ strcharinfo(0) +"]"; - mes "If you don't shut up, I will pour Holy Water on you!"; - next; - mes "- You open the bottle of Holy Water and pour it around the coffin carefully !! -"; - specialeffect EF_SPHERE; - next; - mes "[Noisy Coffin]"; mes "Ah, cold! No, it's cool! Was it fun? Was it fun?!"; delitem 523,1; next; mes "["+ strcharinfo(0) +"]"; mes "......................................"; - next; + .@break_while = 1; } } else { mes "["+ strcharinfo(0) +"]"; @@ -10790,44 +10151,36 @@ mosk_dun02,65,232,0 script Noisy Coffin#rus36 801,{ next; mes "["+ strcharinfo(0) +"]"; mes "......................................"; - next; + .@break_while = 1; } break; case 4: + mes "["+ strcharinfo(0) +"]"; + mes "...If you don't shut up..."; + mes "......I will kick you!!"; + next; + mes "- You close your eyes, take a deep breathe and kick the coffin with the might of God !! -"; + next; + mes "[Noisy Coffin]"; if (rhea_rus_main == 19) { - mes "["+ strcharinfo(0) +"]"; - mes "...If you don't shut up..."; - mes "......I will kick you!!"; - next; - mes "- You close your eyes, take a deep breathe and kick the coffin with the might of God !! -"; - next; - mes "[Noisy Coffin]"; mes "Heeeek! Heeeeeee!!!! I am scared! Stop it!!"; specialeffect EF_HOLYHIT; - set rhea_rus_main,20; - next; + rhea_rus_main = 20; } else { - mes "["+ strcharinfo(0) +"]"; - mes "...If you don't shut up..."; - mes "......I will kick you!!"; - next; - mes "- You close your eyes, take a deep breathe and kick the coffin with the might of God !! -"; - specialeffect EF_HOLYHIT; - next; - mes "[Noisy Coffin]"; mes "Slam! Slam! I like noise! Do it more, more, more!"; next; mes "["+ strcharinfo(0) +"]"; mes "......................................"; - next; } + .@break_while = 1; break; } + next; } if (rhea_rus_main < 20) { mes "["+ strcharinfo(0) +"]"; mes "... Not effective..."; - set rhea_rus_main,16; + rhea_rus_main = 16; close; } mes "["+ strcharinfo(0) +"]"; @@ -10840,7 +10193,8 @@ mosk_dun02,65,232,0 script Noisy Coffin#rus36 801,{ mes "["+ strcharinfo(0) +"]"; mes "Hu, the job has been done."; mes "Let's get back to Baba Yaga."; - set rhea_rus_main,42; + rhea_rus_main = 42; + // changequest 8161,8162; close; } else if (rhea_rus_main == 20) { mes "["+ strcharinfo(0) +"]"; @@ -10853,7 +10207,7 @@ mosk_dun02,65,232,0 script Noisy Coffin#rus36 801,{ mes "["+ strcharinfo(0) +"]"; mes "Hu, the job has been done."; mes "Let's get back to Baba Yaga."; - set rhea_rus_main,42; + rhea_rus_main = 42; close; } else if (rhea_rus_main == 42) { mes "["+ strcharinfo(0) +"]"; @@ -10873,7 +10227,7 @@ mosk_dun02,65,232,0 script Noisy Coffin#rus36 801,{ close; } -treasure01,165,58,0 script Old Treasure Box#rus37 111,{ +treasure01,165,58,0 script Old Treasure Box#rus37 HIDDEN_NPC,{ if ((MaxWeight-Weight) < 3500) { mes "You are carrying too much!"; mes "Lose some weight and try again."; @@ -10911,7 +10265,8 @@ treasure01,165,58,0 script Old Treasure Box#rus37 111,{ mes "- The light reflected goes to the woman shape and fumes comes from the box and it opens !! -"; next; mes "- ^0000ff You find Baba Yaga's spoon !!^000000 -"; - set rhea_rus_main,43; + // changequest 8167,8168; + rhea_rus_main = 43; getitem 7880,1; close; } else if (rhea_rus_main == 43) { @@ -10920,10 +10275,6 @@ treasure01,165,58,0 script Old Treasure Box#rus37 111,{ } end; -OnInit: - enablenpc "Old Treasure Box#rus37"; - end; - OnCall: initnpctimer; monster "treasure01",164,58,"Medusa",1148,1,"Old Treasure Box#rus37::OnMyMobDead"; @@ -10933,56 +10284,45 @@ OnCall: monster "treasure01",168,59,"Obeaune",1044,1,"Old Treasure Box#rus37::OnMyMobDead"; end; -OnReset: - stopnpctimer; - killmonster "treasure01","Old Treasure Box#rus37::OnMyMobDead"; - end; - -OnEnable: - enablenpc "Old Treasure Box#rus37"; - end; - OnDisable: initnpctimer; disablenpc "Old Treasure Box#rus37"; end; -OnMyMobDead: - donpcevent "Old Treasure Box#rus37::OnEnable"; - end; - OnTimer180000: stopnpctimer; - donpcevent "Old Treasure Box#rus37::OnReset"; - donpcevent "Old Treasure Box#rus37::OnEnable"; + killmonster "treasure01","Old Treasure Box#rus37::OnMyMobDead"; + +OnMyMobDead: + enablenpc "Old Treasure Box#rus37"; end; } -treasure01,24,39,0 script Old Bed#rus38 111,{ - if (rhea_rus_main == 21) { +treasure01,24,39,0 script Old Bed#rus38 HIDDEN_NPC,{ + if (rhea_rus_main >= 21 && rhea_rus_main < 26) { mes "- An old bed covered with dust and must -"; next; switch(select("On the bed:Under the bed:Bed sheet")) { - case 1: - mes "- Mushrooms grow on the bed -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "...Life......"; - close; - break; - case 2: - mes "- You look at the under the bed -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Ouch?!"; - specialeffect2 EF_HIT2; - percentheal -5,0; - next; - mes "- Something unidentified bites your hand !! -"; - close; - break; - case 3: - break; + case 1: + mes "- Mushrooms grow on the bed -"; + next; + mes "["+ strcharinfo(0) +"]"; + mes "...Life......"; + close; + case 2: + mes "- You look at the under the bed -"; + next; + mes "["+ strcharinfo(0) +"]"; + mes "Ouch?!"; + specialeffect2 EF_HIT2; + percentheal -5,0; + next; + mes "- Something unidentified bites your hand !! -"; + close; + } + if (rhea_rus_main != 21) { + mes "- While running in a hurry, the sheet is a bit torn -"; + close; } mes "- You raise the dirty sheet that has many holes -"; next; @@ -11008,56 +10348,32 @@ treasure01,24,39,0 script Old Bed#rus38 111,{ next; mes "["+ strcharinfo(0) +"]"; mes "Eek, it would be best to run away now!"; - set rhea_rus_main,22; + rhea_rus_main = 22; + // changequest 8163,8164; close2; warp "treasure01",68,28; - end; - } else if (rhea_rus_main > 21 && rhea_rus_main < 26) { - mes "- An old bed covered with dust and must -"; - next; - switch(select("On the bed:Under the bed:Bed sheet")) { - case 1: - mes "- Mushrooms grow on the bed -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "...Life......"; - close; - break; - case 2: - mes "- You look at the under the bed -"; - next; - mes "["+ strcharinfo(0) +"]"; - mes "Ouch?!"; - specialeffect2 EF_HIT2; - percentheal -5,0; - next; - mes "- Something unidentified bites your hand !! -"; - close; - break; - case 3: - break; - } - mes "- While running in a hurry, the sheet is a bit torn -"; - close; } end; } -treasure01,98,119,0 script Dirty Wall#rus39 111,{ - if (rhea_rus_main == 22 || (rhea_rus_main > 22 && rhea_rus_main < 26)) { +treasure01,98,119,0 script Dirty Wall#rus39 HIDDEN_NPC,{ + if (rhea_rus_main >= 22 && rhea_rus_main < 26) { mes "- Something is engraved on the wall -"; next; mes "- ^ff0000Her... careful.. Mermaid's song.. sleeping.. the eyes.. protect your.. mirror^000000 -"; next; mes "["+ strcharinfo(0) +"]"; mes "...What is this talking about...?"; - if (rhea_rus_main == 22) set rhea_rus_main,23; + if (rhea_rus_main == 22) { + rhea_rus_main = 23; + // changequest 8164,8165; + } close; } end; } -treasure01,61,183,0 script Old_Wooden_Box#rus40 111,{ +treasure01,61,183,0 script Old_Wooden_Box#rus40 HIDDEN_NPC,{ if (rhea_rus_main == 23) { mes "- Something is glimmering inside of the box -"; next; @@ -11066,7 +10382,8 @@ treasure01,61,183,0 script Old_Wooden_Box#rus40 111,{ mes "- You take out something glimmering from the box -"; next; mes "- ^0000ffYou find the handle of a broken key !!^000000 -"; - set rhea_rus_main,24; + rhea_rus_main = 24; + // changequest 8165,8166; close; } mes "- You try to put your hand inside it but the gap is too small to do it -"; @@ -11080,7 +10397,7 @@ treasure01,61,183,0 script Old_Wooden_Box#rus40 111,{ end; } -treasure01,27,115,0 script Opened Treasure Chest#41 111,{ +treasure01,27,115,0 script Opened Treasure Chest#41 HIDDEN_NPC,{ if (rhea_rus_main == 24) { mes "- You open the box, junk is in it -"; next; @@ -11092,11 +10409,8 @@ treasure01,27,115,0 script Opened Treasure Chest#41 111,{ mes "["+ strcharinfo(0) +"]"; mes "...!? What is this?!"; next; - set .@russ_key02,rand(1,7); - if (rand(1,7) == 3) { - mes "- ^0000ffYou find the handle of a broken key in the junk !!^000000 -"; - next; - } else { + .@russ_key02 = rand(1,7); + if (.@russ_key02 != 3) { switch (.@russ_key02) { case 1: mes "- You find the cuticle of Kukre !! -"; break; case 2: mes "- You find the egg of a Theif Bug !! -"; break; @@ -11111,11 +10425,14 @@ treasure01,27,115,0 script Opened Treasure Chest#41 111,{ emotion e_omg,1; close; } + mes "- ^0000ffYou find the handle of a broken key in the junk !!^000000 -"; + next; mes "["+ strcharinfo(0) +"]"; mes "Eh, this may be..."; next; mes "- You adjust the piece of the broken key with the its handle and they make a sound and become a key !!-"; - set rhea_rus_main,25; + rhea_rus_main = 25; + // changequest 8166,8167; close; } else if (rhea_rus_main > 24 && rhea_rus_main < 26) { mes "- The junk box containig the piece of the broken key -"; @@ -11124,7 +10441,7 @@ treasure01,27,115,0 script Opened Treasure Chest#41 111,{ end; } -amatsu,233,234,3 script Momotoro Publisher#rus42 757,{ +amatsu,233,234,3 script Momotoro Publisher#rus42 4_F_JPN,{ if ((MaxWeight-Weight) < 3500) { mes "[Momotoro Publisher]"; mes "What on earth do you have in your bag?"; @@ -11186,9 +10503,10 @@ amatsu,233,234,3 script Momotoro Publisher#rus42 757,{ } mes "[Momotoro Publisher]"; mes "Thank you for buying our books. If you need more books, contact us please."; - set Zeny,Zeny-5000; - set rhea_rus_main,27; getitem 7881,1; + Zeny = Zeny -5000; + rhea_rus_main = 27; + // changequest 8169,8170; close; } else if (rhea_rus_main > 26 && rhea_rus_main < 31) { mes "[Momotoro Publisher]"; @@ -11203,7 +10521,7 @@ amatsu,233,234,3 script Momotoro Publisher#rus42 757,{ close; } -mosk_dun02,57,220,0 script House Ghost Jar#rus43 111,{ +mosk_dun02,57,220,0 script House Ghost Jar#rus43 HIDDEN_NPC,{ if (rhea_rus_main == 31) { mes "["+ strcharinfo(0) +"]"; mes "... Is it in here..? Hey, hey..."; @@ -11223,7 +10541,7 @@ mosk_dun02,57,220,0 script House Ghost Jar#rus43 111,{ mes "- You kick the jar -"; mes "- it rolls to the floor -"; mes "- as bugs come out!! -"; - set rhea_rus_main,32; + rhea_rus_main = 32; monster "mosk_dun02",58,220,"Thief Bug Male",1054,1,"House Ghost Jar#rus43::OnMyMobDead"; monster "mosk_dun02",59,220,"Ancient Worm",1305,1,"House Ghost Jar#rus43::OnMyMobDead"; monster "mosk_dun02",60,220,"Thief Bug Male",1054,1,"House Ghost Jar#rus43::OnMyMobDead"; @@ -11253,17 +10571,17 @@ mosk_dun02,57,220,0 script House Ghost Jar#rus43 111,{ if(select("Can I play with you?:So what can I do for you?") == 1) { mes "[House Ghost]"; mes "Ehhh, are you sure?"; - next; } else { mes "[House Ghost]"; mes "Hmm, can you do something for me? It won't take much time."; - next; } + next; mes "[House Ghost]"; mes "What about a card game? I was good at those games! Ah, where are my cards? Wait here! I'll find them!"; - set rhea_rus_main,33; + rhea_rus_main = 33; close; } else if (rhea_rus_main == 33) { + .@player_name$ = strcharinfo(0); mes "[House Ghost]"; mes "Hehe, what about a card game? I have an Angeling, Ghostring and a Poring Card."; mes "All you have to do is just guess which card I pick up!"; @@ -11271,12 +10589,11 @@ mosk_dun02,57,220,0 script House Ghost Jar#rus43 111,{ mes "[House Ghost]"; mes "Let's play best out of 5. So if you win 3 games, I promise to stay quiet!"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Ok! It will be fun. Let's do it."; next; - set .@rugame_turn01,0; - set .@ruuser_score01,0; - while(.@rugame_turn01 != 5) { + setarray .@card$[0], "Poring","Angeling","Ghostring"; + while(.@rugame_turn01 < 5 && .@ruuser_score01 < 3) { mes "[House Ghost]"; mes "Ok, first let me shuffle these cards around."; mes "Ready!"; @@ -11303,148 +10620,83 @@ mosk_dun02,57,220,0 script House Ghost Jar#rus43 111,{ mes "What is this card?"; cutin "sorry.bmp",4; next; - set .@rucard_game01,rand(1,3); - switch(select("Poring:Angeling:Ghostring")) { + .@rucard_game01 = rand(1,3); + .@s = select("Poring:Angeling:Ghostring") -1; + + mes "["+ .@player_name$ +"]"; + mes "Hmmm, I think it is the "+ .@card$[.@s] +" Card!"; + next; + mes "[House Ghost]"; + mes "Ok, time to find out!"; + mes "One! Two! Three!!"; + next; + cutin "",255; + switch( .@rucard_game01 ) { case 1: - mes "["+ strcharinfo(0) +"]"; - mes "Hmmm, I think it is the Poring Card!"; - next; - mes "[House Ghost]"; - mes "Ok, time to find out!"; - mes "One! Two! Three!!"; - next; - if (.@rucard_game01 == 1) { - cutin "ī",4; // Poring Card - emotion e_gasp; - emotion e_ic,1; - next; - mes "[House Ghost]"; - mes "You got it right. You are good."; - mes "Can you do it next time?"; - set .@rugame_turn01,.@rugame_turn01+1; - set .@ruuser_score01,.@ruuser_score01+1; - cutin "",255; - next; - } else { - if (.@rucard_game01 == 2) - cutin "ī",4; // Angeling Card - else - cutin "Ʈī",4; // Ghostring Card - emotion e_gasp; - emotion e_omg,1; - next; - mes "[House Ghost]"; - mes "Huuu..."; - mes "Better luck next time!"; - set .@rugame_turn01,.@rugame_turn01+1; - cutin "",255; - next; - } + cutin "포링카드",4; // Poring Card + .@win_string$ = "You are good. Can you do it next time?"; break; case 2: - mes "["+ strcharinfo(0) +"]"; - mes "Hmmm, I think it is the Angeling Card!"; - next; - mes "[House Ghost]"; - mes "Ok, time to find out!"; - mes "One! Two! Three!!"; - next; - if (.@rucard_game01 == 2) { - cutin "Ʈī",4; // Angeling Card - emotion e_gasp; - emotion e_ic,1; - next; - mes "[House Ghost]"; - mes "You got it right. You are good."; - mes "Can you do it next time?"; - set .@rugame_turn01,.@rugame_turn01+1; - set .@ruuser_score01,.@ruuser_score01+1; - cutin "",255; - next; - } else { - if (.@rucard_game01 == 1) - cutin "ī",4; // Poring Card - else - cutin "Ʈī",4; // Ghostring Card - emotion e_gasp; - emotion e_omg,1; - next; - mes "[House Ghost]"; - mes "Huuu..."; - mes "Better luck next time!"; - set .@rugame_turn01,.@rugame_turn01+1; - cutin "",255; - next; - } + cutin "엔젤링카드",4; // Angeling Card + .@win_string$ = "You are pretty good at this. Ok, but can you do it again?"; break; case 3: - mes "["+ strcharinfo(0) +"]"; - mes "Hmmm, I think it is the Ghostring Card!"; + cutin "고스트링카드",4; // Ghostring Card + .@win_string$ = "You are pretty good at this. Ok, but can you do it again?"; + break; + } + emotion e_gasp; + if (.@rucard_game01 == .@s +1) { + emotion e_ic,1; next; mes "[House Ghost]"; - mes "Ok, time to find out!"; - mes "One! Two! Three!!"; - next; - if (.@rucard_game01 == 3) { - cutin "Ʈī",4; // Ghostring Card - emotion e_gasp; - emotion e_ic,1; - next; - mes "[House Ghost]"; - mes "You got it right. You are good."; - mes "Can you do it next time?"; - set .@rugame_turn01,.@rugame_turn01+1; - set .@ruuser_score01,.@ruuser_score01+1; - cutin "",255; - next; - } else { - if (.@rucard_game01 == 1) - cutin "ī",4; // Poring Card - else - cutin "Ʈī",4; // Angeling Card - emotion e_gasp; - emotion e_omg,1; - next; - mes "[House Ghost]"; - mes "Huuu..."; - mes "Better luck next time!"; - set .@rugame_turn01,.@rugame_turn01+1; - cutin "",255; - next; - } + mes "You got it right."; + mes .@win_string$; + .@ruuser_score01++; } + else { + emotion e_omg,1; + next; + mes "[House Ghost]"; + mes "Huuu..."; + mes "Better luck next time!"; + } + .@rugame_turn01++; + cutin "",255; + next; } if (.@ruuser_score01 == 3) { mes "[House Ghost]"; mes "You are better than I thought."; - set rhea_rus_main,34; + rhea_rus_main = 34; close; } - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I was not thinking correctly! Let's do it again!"; next; mes "[House Ghost]"; mes "Huhu, ok. Let's do it again?"; close; } else if (rhea_rus_main == 34) { + .@player_name$ = strcharinfo(0); mes "[House Ghost]"; mes "Ah, it was fun. It has been a long time since I've been able to play a game like that."; next; mes "[House Ghost]"; mes "As promised, I will be quiet now. Thank you for playing with me."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Oh and by the way, I have a present for you!"; next; if (countitem(519)) { - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "You said you like milk. Here, take this."; next; } else { - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "You said you like milk. Here, take.. Eh?"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "W, where is this? Wait here. I will bring it soon!!"; close; } @@ -11457,7 +10709,8 @@ mosk_dun02,57,220,0 script House Ghost Jar#rus43 111,{ next; mes "[House Ghost]"; mes "I will never forget your kindness of entertaining me."; - set rhea_rus_main,45; + rhea_rus_main = 45; + // changequest 8171,8172; close; } else if (rhea_rus_main == 45) { mes "[House Ghost]"; @@ -11470,14 +10723,6 @@ mosk_dun02,57,220,0 script House Ghost Jar#rus43 111,{ } end; -OnInit: - enablenpc "House Ghost Jar#rus43"; - end; - -OnEnable: - enablenpc "House Ghost Jar#rus43"; - end; - OnDisable: initnpctimer; disablenpc "House Ghost Jar#rus43"; @@ -11486,15 +10731,13 @@ OnDisable: OnTimer180000: stopnpctimer; killmonster "mosk_dun02","House Ghost Jar#rus43::OnMyMobDead"; - donpcevent "House Ghost Jar#rus43::OnEnable"; - end; OnMyMobDead: - donpcevent "House Ghost Jar#rus43::OnEnable"; + enablenpc "House Ghost Jar#rus43"; end; } -payon,65,119,0 script Broom Grandma#rus44 78,{ +payon,65,119,0 script Broom Grandma#rus44 1_F_ORIENT_04,{ if (rhea_rus_main < 36) { mes "[Broom Grandma]"; mes "A broom from Payon is the best!"; @@ -11523,7 +10766,8 @@ payon,65,119,0 script Broom Grandma#rus44 78,{ next; mes "[Broom Grandma]"; mes "Ah.. What should I do..."; - set rhea_rus_main,37; + rhea_rus_main = 37; + // changequest 8173,8174; close; } else if (rhea_rus_main > 36 && rhea_rus_main < 41) { mes "[Broom Grandma]"; @@ -11551,7 +10795,7 @@ payon,65,119,0 script Broom Grandma#rus44 78,{ close; } -pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ +pay_dun04,163,186,0 script Ghost Tree#rus45 HIDDEN_NPC,{ if (rhea_rus_main == 37) { mes "[Ghost Tree]"; mes "Errr, a human? What are you doing here? Do you want to play with me?"; @@ -11579,7 +10823,7 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ next; mes "[Ghost Tree]"; mes "Eh.. Let's see. This will be a good start! Let's get started if you are ready!"; - set rhea_rus_main,38; + rhea_rus_main = 38; close; } else if (rhea_rus_main == 38) { mes "[Ghost Tree]"; @@ -11609,85 +10853,32 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ mes "[Ghost Tree]"; mes "Ok then, who was the first?!"; next; - set .@rus_kafra01,0; - input .@input$; - if (.@input$ == "Curly Sue") { - set .@rus_kafra01,.@rus_kafra01+1; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!"; - next; - } else { - set .@rus_kafra01,.@rus_kafra01; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +"!!"; - next; - } + .@rus_kafra01 = callsub( S_Question, "Curly Sue" ); mes "[Ghost Tree]"; mes "Who was the second?"; next; - input .@input$; - if (.@input$ == "Jasmine") { - set .@rus_kafra01,.@rus_kafra01+1; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!"; - next; - } else { - set .@rus_kafra01,.@rus_kafra01; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +"!!"; - next; - } + .@rus_kafra01 += callsub( S_Question, "Jasmine" ); mes "[Ghost Tree]"; mes "Who was the third?"; next; - input .@input$; - if (.@input$ == "Roxie") { - set .@rus_kafra01,.@rus_kafra01+1; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!"; - next; - } else { - set .@rus_kafra01,.@rus_kafra01; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +"!!"; - next; - } + .@rus_kafra01 += callsub( S_Question, "Roxie" ); mes "[Ghost Tree]"; mes "And then who was the forth?"; next; - input .@input$; - if (.@input$ == "Pavianne") { - set .@rus_kafra01,.@rus_kafra01+1; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!"; - next; - } else { - set .@rus_kafra01,.@rus_kafra01; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +"!!"; - next; - } + .@rus_kafra01 += callsub( S_Question, "Pavianne" ); mes "[Ghost Tree]"; mes "And who was the last?!"; next; - input .@input$; - if (.@input$ == "Blossom") { - set .@rus_kafra01,.@rus_kafra01+1; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!"; - next; - } else { - set .@rus_kafra01,.@rus_kafra01; - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +"!!"; - next; - } + .@rus_kafra01 += callsub( S_Question, "Blossom" ); + mes "[Ghost Tree]"; if (.@rus_kafra01 > 4) { - mes "[Ghost Tree]"; mes "Ho, you are good!"; next; - } else { mes "[Ghost Tree]"; + mes "Ok, let's see if you are good next time."; + mes "Gear yourself up!"; + rhea_rus_main = 39; + } else { mes "Ah, you are wrong, wrong!"; mes "Do you really think that you can take the brooms back?"; next; @@ -11696,21 +10887,17 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ next; mes "[Ghost Tree]"; mes "Kuhuhu, ok. Let's do it again. Try your best."; - close; } - mes "[Ghost Tree]"; - mes "Ok, let's see if you are good next time."; - mes "Gear yourself up!"; - set rhea_rus_main,39; close; } else if (rhea_rus_main == 39) { + .@player_name$ = strcharinfo(0); mes "[Ghost Tree]"; mes "The second question. Listen carefully and answer!"; next; mes "[Ghost Tree]"; - mes "One day, you, "+ strcharinfo(0) +", upgraded your 'Hat of the Sun God', your ancestral treasure."; + mes "One day, you, "+ .@player_name$ +", upgraded your 'Hat of the Sun God', your ancestral treasure."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Eh? I didn't..."; next; mes "[Ghost Tree]"; @@ -11736,19 +10923,15 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ mes "Have you heard all of them? Who broke the 'Hat of the Sun God'?!"; next; input .@input$; - if (.@input$ == "Antonio") { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +" !!"; - next; - } else { - mes "["+ strcharinfo(0) +"]"; - mes ""+ .@input$ +"!!"; - next; + mes "["+ .@player_name$ +"]"; + mes ""+ .@input$ +" !!"; + next; + if (.@input$ != "Antonio") { mes "[Ghost Tree]"; mes "You are wrong, wrong!"; mes "Look at this. In this way, it will take you a million years to take them back!"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I was not thinking correctly!!!"; mes "Again, again!"; next; @@ -11761,9 +10944,10 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ next; mes "[Ghost Tree]"; mes "Gear yourself up and come to me again!"; - set rhea_rus_main,40; + rhea_rus_main = 40; close; } else if (rhea_rus_main == 40) { + .@player_name$ = strcharinfo(0); mes "[Ghost Tree]"; mes "Kuhuhu, you did good until now. If you win over me, I will give the brooms as promisied."; next; @@ -11773,53 +10957,49 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ mes "[Ghost Tree]"; mes "Cast 3 times if you win once, I will give you what you want."; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Ok! I will do it!"; next; - set .@rustree_turn01,0; - set .@rususer_score01,0; - while(.@rustree_turn01 != 3) { + setarray .@emo[1],58,59,60,61,62,63; + while (.@rustree_turn01 < 3 && .@rususer_score01 == 0) { mes "[Ghost Tree]"; mes "I cast first."; next; mes "- Ghost Tree casts a dice. The dice falls down, rotates and stops there-"; specialeffect EF_STUNATTACK; next; - set .@tree_dice01,rand(1,6); - setarray .@emo[1], 58,59,60,61,62,63; + .@tree_dice01 = rand(1,6); mes "[Ghost Tree]"; - mes "I've got ^0000ffNumber "+.@tree_dice01+"^000000."; + mes "I've got ^0000ffNumber "+ .@tree_dice01 +"^000000."; emotion .@emo[.@tree_dice01]; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "Ok, it is my turn?"; next; mes "-You cast a dice. The dice falls down, rotates and stops there-"; specialeffect2 EF_STUNATTACK; next; - set .@rus_dice01,rand(1,6); - mes "["+ strcharinfo(0) +"]"; + .@rus_dice01 = rand(1,6); + mes "["+ .@player_name$ +"]"; mes "Let's see..."; next; emotion .@emo[.@rus_dice01],1; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; if (.@rus_dice01 == .@tree_dice01) { - mes "Let's see... Wow, I got it! I've got ^0000ffNumber "+.@rus_dice01+"^000000!"; + mes "Let's see... Wow, I got it! I've got ^0000ffNumber "+ .@rus_dice01 +"^000000!"; emotion e_gasp; next; mes "[Ghost Tree]"; mes "You seem lucky..."; - set .@rustree_turn01,.@rustree_turn01+1; - set .@rususer_score01,.@rususer_score01+1; - next; + .@rususer_score01 = 1; } else { - mes "Let's see................... It is ^0000ff "+.@rus_dice01+" ^000000..."; + mes "Let's see................... It is ^0000ff "+ .@rus_dice01 +" ^000000..."; mes "[Ghost Tree]"; mes "Huuu..."; emotion e_heh; - set .@rustree_turn01,.@rustree_turn01+1; - next; } + .@rustree_turn01++; + next; } if (.@rususer_score01) { mes "[Ghost Tree]"; @@ -11832,13 +11012,14 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ mes "I can say that you are fun. If possible, play with me again. And take them."; next; mes "- ^0000ff You receive the best broom from Payon !!^000000 - "; - set rhea_rus_main,46; + rhea_rus_main = 46; + // changequest 8174,8175; close; } mes "[Ghost Tree]"; mes "Kuhuhu, nobody is worse than you. Remember that you have to win over me to get what you want"; next; - mes "["+ strcharinfo(0) +"]"; + mes "["+ .@player_name$ +"]"; mes "I was not what I am! Let's do it again!"; next; mes "[Ghost Tree]"; @@ -11850,13 +11031,19 @@ pay_dun04,163,186,0 script Ghost Tree#rus45 111,{ close; } end; +S_Question: + input .@input$; + mes "["+ strcharinfo(0) +"]"; + mes ""+ .@input$ +" !!"; + next; + return ( (.@input$ == getarg(0)) ? 1 : 0 ); } -mosk_dun01,3,3,3 script Koshei GlobalVar#admin 958,{ +mosk_dun01,3,3,3 script Koshei GlobalVar#admin 4_F_RUSCHILD,{ callfunc "F_GM_NPC"; mes "[Koshei GlobalVar]"; mes "Please enter the password"; - set .@i, callfunc("F_GM_NPC","orchid",1); + .@i = callfunc("F_GM_NPC","orchid",1); next; if (.@i == 0) { mes "[Koshei GlobalVar]"; @@ -11890,15 +11077,14 @@ mosk_dun01,3,3,3 script Koshei GlobalVar#admin 958,{ case 1: mes "[Koshei GlobalVar]"; mes "GlobalVar $@rus_req02 will now be set to '0'"; - set $@rus_req02,0; + $@rus_req02 = 0; donpcevent "Koshei#rus47::OnDisable"; close; case 2: mes "[Koshei GlobalVar]"; mes "GlobalVar $@rus_req02 will now be set to '1'"; - set $@rus_req02,1; - donpcevent "Koshei#rus47::OnEnable"; - close; + $@rus_req02 = 1; + donpcevent "Koshei#rus47::OnEnable";; case 3: close; } diff --git a/npc/warps/dungeons/mosk_dun.txt b/npc/warps/dungeons/mosk_dun.txt index 5c82da1d1a..72d7d46e7f 100644 --- a/npc/warps/dungeons/mosk_dun.txt +++ b/npc/warps/dungeons/mosk_dun.txt @@ -3,7 +3,7 @@ //===== By: ================================================== //= Kisuka, $ephiroth //===== Current Version: ===================================== -//= 1.4 +//= 2.0 //===== Compatible With: ===================================== //= rAthena Project //===== Description: ========================================= @@ -13,13 +13,14 @@ //= 1.1, 1.2 Updated from jA [$ephiroth] //= 1.3 Added warp npcs. Removed place holder warps. [Kisuka] //= 1.4 Fixed cords on milestone 1-3. [Kisuka] +//= 2.0 Clean-up. [Capuche] //============================================================ mosk_fild02,190,257,0 warp moscoviawarp0401 1,1,mosk_dun01,189,45 mosk_dun01,189,42,0 warp moscoviawarp0501 1,1,mosk_fild02,190,254 mosk_in,215,36,0 warp babayagaout 1,1,mosk_dun02,53,217 -mosk_dun02,53,220,4 script #babayagain 45,1,1,{ +mosk_dun02,53,220,4 script #babayagain WARPNPC,1,1,{ end; OnTouch: if (mos_nowinter == 11) { @@ -47,7 +48,7 @@ OnTouch: warp "mosk_in",125,92; end; } - else if (mos_nowinter == 12) { + else if (mos_nowinter == 12 || mos_nowinter == 13) { donpcevent "Soldier1#mos::OnEnable"; donpcevent "Soldier2#mos::OnEnable"; donpcevent "Soldier3#mos::OnEnable"; @@ -61,51 +62,17 @@ OnTouch: mes "I should get out of here..."; close2; warp "mosk_dun02",100,100; - donpcevent "Soldier1#mos::OnInit"; - donpcevent "Soldier2#mos::OnInit"; - donpcevent "Soldier3#mos::OnInit"; - end; } - mes "-I explain what happend until now.-"; - next; - mes "[Soldier]"; - mes "If you have something to say, speak"; - mes "to the Csar."; - mes "If you leave to this place,"; - mes "you will be considered as our enemy."; - close2; - donpcevent "Soldier1#mos::OnInit"; - donpcevent "Soldier2#mos::OnInit"; - donpcevent "Soldier3#mos::OnInit"; - end; - } - else if (mos_nowinter == 13) { - donpcevent "Soldier1#mos::OnEnable"; - donpcevent "Soldier2#mos::OnEnable"; - donpcevent "Soldier3#mos::OnEnable"; - mes "[Soldier]"; - mes "We expected"; - mes "that you would appear again."; - mes "What is your business with the Csar?"; - next; - if(select("Run away.:Explain the situation.") == 1) { - mes "["+strcharinfo(0)+"]"; - mes "I should get out of here..."; + else { + mes "-I explain what happend until now.-"; + next; + mes "[Soldier]"; + mes "If you have something to say, speak"; + mes "to the Csar."; + mes "If you leave to this place,"; + mes "you will be considered as our enemy."; close2; - warp "mosk_dun02",100,100; - donpcevent "Soldier1#mos::OnInit"; - donpcevent "Soldier2#mos::OnInit"; - donpcevent "Soldier3#mos::OnInit"; - end; } - mes "-I explain what happend until now.-"; - next; - mes "[Soldier]"; - mes "If you have something to say, speak"; - mes "to the Csar."; - mes "If you leave to this place,"; - mes "you will be considered as our enemy."; - close2; donpcevent "Soldier1#mos::OnInit"; donpcevent "Soldier2#mos::OnInit"; donpcevent "Soldier3#mos::OnInit"; @@ -117,7 +84,7 @@ OnTouch: } } -mosk_dun02,53,215,3 script Soldier1#mos 966,{ +mosk_dun02,53,215,3 script Soldier1#mos 4_M_RUSKNIGHT,{ mes "[Soldier]"; mes "We're the Csar's soldiers."; mes "We're called out for emergencies,"; @@ -125,55 +92,23 @@ mosk_dun02,53,215,3 script Soldier1#mos 966,{ close; OnInit: - hideonnpc "Soldier1#mos"; + hideonnpc strnpcinfo(0); end; - OnEnable: - hideoffnpc "Soldier1#mos"; + hideoffnpc strnpcinfo(0); end; } +mosk_dun02,50,217,3 duplicate(Soldier1#mos) Soldier2#mos 4_M_RUSKNIGHT +mosk_dun02,56,217,5 duplicate(Soldier1#mos) Soldier3#mos 4_M_RUSKNIGHT -mosk_dun02,50,217,3 script Soldier2#mos 966,{ - mes "[Soldier]"; - mes "We're the Csar's soldiers."; - mes "We're called out for emergencies,"; - mes "don't disturb us anymore."; - close; - -OnInit: - hideonnpc "Soldier2#mos"; - end; - -OnEnable: - hideoffnpc "Soldier2#mos"; - end; -} - - -mosk_dun02,56,217,5 script Soldier3#mos 966,{ - mes "[Soldier]"; - mes "We're the Csar's soldiers."; - mes "We're called out for emergencies,"; - mes "don't disturb us anymore."; - close; - -OnInit: - hideonnpc "Soldier3#mos"; - end; - -OnEnable: - hideoffnpc "Soldier3#mos"; - end; -} - -mosk_dun01,170,164,3 script Milestone#1 111,{ +mosk_dun01,170,164,3 script Milestone#1 HIDDEN_NPC,{ mes "- There is writing on a big rock. -"; next; mes "^3131FF- Those who serve the Sun will die, Go to the North. -^000000"; close; } -mosk_dun01,207,276,3 script Milestone#1-2 111,{ +mosk_dun01,207,276,3 script Milestone#1-2 HIDDEN_NPC,{ mes "- There is writing on a big rock. -"; next; mes "^3131FF- Those who advance may get hurt but are courageous of heart and those who move back will remain safe."; @@ -189,7 +124,7 @@ mosk_dun01,207,276,3 script Milestone#1-2 111,{ close; } -mosk_dun01,264,191,3 script Milestone#1-3 111,{ +mosk_dun01,264,191,3 script Milestone#1-3 HIDDEN_NPC,{ mes "- There is writing on a big rock. -"; next; mes "^3131FF- Those who advance may get hurt but are brave of heart and those who move back will remain safe."; @@ -205,7 +140,7 @@ mosk_dun01,264,191,3 script Milestone#1-3 111,{ close; } -mosk_dun02,168,28,3 script Milestone#2-1 111,{ +mosk_dun02,168,28,3 script Milestone#2-1 HIDDEN_NPC,{ mes "- There is writing on a big rock. -"; next; mes "^3131FF- Those who advance may get hurt but are valorous of heart and those who move back will remain safe."; @@ -221,7 +156,7 @@ mosk_dun02,168,28,3 script Milestone#2-1 111,{ close; } -mosk_dun02,268,117,3 script Milestone#2-3 111,{ +mosk_dun02,268,117,3 script Milestone#2-3 HIDDEN_NPC,{ mes "- There is writing on a big rock. -"; next; mes "^3131FF- Those who step forward will gain honor but may die, those who step backward will have courage but may still get hurt."; @@ -237,7 +172,7 @@ mosk_dun02,268,117,3 script Milestone#2-3 111,{ close; } -mosk_dun03,27,131,3 script Milestone#3-2 111,{ +mosk_dun03,27,131,3 script Milestone#3-2 HIDDEN_NPC,{ mes "- There is writing on a big rock. -"; next; mes "^3131FF- Those who stay may die but will gain honor, those who go back may get hurt but will gain courage."; @@ -253,7 +188,7 @@ mosk_dun03,27,131,3 script Milestone#3-2 111,{ close; } -mosk_dun03,119,46,3 script Milestone#3-1 111,{ +mosk_dun03,119,46,3 script Milestone#3-1 HIDDEN_NPC,{ mes "There is writing on a big rock."; next; mes "^3131FF- Those who stay may die but will gain honor, those who go back may get hurt but will gain courage."; @@ -269,14 +204,14 @@ mosk_dun03,119,46,3 script Milestone#3-1 111,{ close; } -mosk_dun01,194,43,3 script Milestone#1-1 111,{ +mosk_dun01,194,43,3 script Milestone#1-1 HIDDEN_NPC,{ mes "- There is writing on a big rock. -"; next; mes "- If you want to protect your life, go back -"; close; } -mosk_fild02,198,53,3 script Ship#mos_dun 111,{ +mosk_fild02,198,53,3 script Ship#mos_dun HIDDEN_NPC,{ mes "- You find a ship at anchor. -"; next; if(select("Take the ship and go back to the village.:Explore more.") == 1) {