Fixed a bunch of bugs and typos, and made some little optimizations in various quests.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16604 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
daegaladh 2012-08-08 04:19:17 +00:00
parent 95bdaece5e
commit 178bfb2839
11 changed files with 199 additions and 192 deletions

View File

@ -521,8 +521,8 @@ OnTouch:
// Juno Toast Sales Girl. // Juno Toast Sales Girl.
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
yuno,217,114,6 script Little Kid#kh 96,{ yuno,217,114,6 script Little Kid#kh 96,{
if (KielHyreQuest < 6) {
mes "[Cezu]"; mes "[Cezu]";
if (KielHyreQuest < 6) {
mes "Fresh, crunchy toast!"; mes "Fresh, crunchy toast!";
mes "If you want some, come"; mes "If you want some, come";
mes "and get some tooooast~"; mes "and get some tooooast~";
@ -530,7 +530,6 @@ yuno,217,114,6 script Little Kid#kh 96,{
} }
else if (KielHyreQuest == 6) { else if (KielHyreQuest == 6) {
if (KHToastGirlEnd < 1) { if (KHToastGirlEnd < 1) {
mes "[Cezu]";
mes "Fresh, crunchy toast!"; mes "Fresh, crunchy toast!";
mes "If you want some, come"; mes "If you want some, come";
mes "and get some tooooast~"; mes "and get some tooooast~";
@ -580,7 +579,6 @@ yuno,217,114,6 script Little Kid#kh 96,{
} }
} }
else if (KHToastGirlEnd == 1) { else if (KHToastGirlEnd == 1) {
mes "[Cezu]";
mes "Would you please go to"; mes "Would you please go to";
mes "the Lighthalzen Windmill"; mes "the Lighthalzen Windmill";
mes "and tell them that Cezu needs"; mes "and tell them that Cezu needs";
@ -590,7 +588,6 @@ yuno,217,114,6 script Little Kid#kh 96,{
close; close;
} }
else if (KHToastGirlEnd == 2) { else if (KHToastGirlEnd == 2) {
mes "[Cezu]";
mes "Hey, you're back with the"; mes "Hey, you're back with the";
mes "ingredients! Thank you so"; mes "ingredients! Thank you so";
mes "much, I really needed these!"; mes "much, I really needed these!";
@ -603,10 +600,8 @@ yuno,217,114,6 script Little Kid#kh 96,{
close; close;
} }
} }
else if ((KielHyreQuest >= 6) || (KHToastGirlEnd == 3)) {
//KHToastGirlEnd no longer needed-- deleting. //KHToastGirlEnd no longer needed-- deleting.
set KHToastGirlEnd,0; if (KielHyreQuest > 6) set KHToastGirlEnd,0;
mes "[Cezu]";
mes "Hot, fresh and"; mes "Hot, fresh and";
mes "cruuuunchy toast!"; mes "cruuuunchy toast!";
mes "Come and get some!"; mes "Come and get some!";

View File

@ -3050,8 +3050,7 @@ OnTimer120000:
ein_in01,261,35,0 script lab03#heart 139,1,1,{ ein_in01,261,35,0 script lab03#heart 139,1,1,{
OnTouch: OnTouch:
if(lhz_heart == 9) if(lhz_heart == 9) {
{
mes "[Security System]"; mes "[Security System]";
mes "^FF0000Unauthorized person"; mes "^FF0000Unauthorized person";
mes "detected. Password"; mes "detected. Password";
@ -3059,8 +3058,7 @@ OnTouch:
mes "Access denied.^000000"; mes "Access denied.^000000";
close; close;
} }
else if(lhz_heart == 10) else if(lhz_heart == 10) {
{
mes "[Security System]"; mes "[Security System]";
mes "^FF0000Enter the 3 digit password."; mes "^FF0000Enter the 3 digit password.";
mes "You will be allowed 5 tries"; mes "You will be allowed 5 tries";
@ -3075,16 +3073,22 @@ OnTouch:
mes "not enter any number"; mes "not enter any number";
mes "more than once. Make"; mes "more than once. Make";
mes "sure the password is 3 digits."; mes "sure the password is 3 digits.";
set @retry,0;
next; next;
L_Recode: while (1) {
set @thanacode1,rand(1,9); set @yagu100,rand(1,9);
set @thanacode2,rand(1,9); set @yagu10,rand(1,9);
set @thanacode3,rand(1,9); set @yagu1,rand(1,9);
if((@thanacode1 == @thanacode2) || (@thanacode1 == @thanacode3) || (@thanacode2 == @thanacode3)) goto L_Recode; if (((@yagu100 != @yagu10) && (@yagu100 != @yagu1)) && (@yagu10 != @yagu1)) {
L_Input: break;
input @thanainput; }
if((@thanainput < 100) || (@thanainput > 999)) }
{ while (1) {
while (1) {
L_Retry:
next;
input @input;
if (@input < 100 || @input > 999) {
mes "[Security System]"; mes "[Security System]";
mes "^FF0000Error."; mes "^FF0000Error.";
mes "The password entered"; mes "The password entered";
@ -3093,11 +3097,12 @@ L_Input:
mes "3 digit passwords.^000000"; mes "3 digit passwords.^000000";
close; close;
} }
set @thanainput1,@thanainput / 100; set @input100,@input / 100;
set @thanainput2,(@thanainput % 100) / 10; set @input10,(@input % 100) / 10;
set @thanainput3,@thanainput % 10; if (((@input100 > 0) && (@input10 > 0)) && ((@input % 10) > 0)) {
if ((@thanainput1 == 0) || (@thanainput2 == 0) || (@thanainput3 == 0)) if ((@input100 != @input10) && (@input100 != (@input % 10)) && (@input10 != (@input % 10))) {
{ break;
}
mes "[Security System]"; mes "[Security System]";
mes "^FF0000Error."; mes "^FF0000Error.";
mes "You cannot enter the"; mes "You cannot enter the";
@ -3105,25 +3110,24 @@ L_Input:
mes "other number more than"; mes "other number more than";
mes "once. Please try again.^000000"; mes "once. Please try again.^000000";
next; next;
goto L_Input;
} }
}
set @retry,@retry+1;
mes "[Security System]"; mes "[Security System]";
mes "^ff0000"+strcharinfo(0)+"^000000"; mes "^ff0000"+strcharinfo(0)+"^000000";
mes "has entered the following:"; mes "has entered the following:";
mes "^0000ff"+@thanainput1+"^000000 - ^0000ff"+@thanainput2+"^000000 - ^0000ff"+@thanainput3+"^000000. Please wait for"; mes "^0000ff"+@yagu100+"^000000 - ^0000ff"+@yagu10+"^000000 - ^0000ff"+@yagu1+"^000000.";
mes "authorization to complete."; mes "Please wait for authorization to complete.";
set @thanatry,@thanatry +1;
next; next;
set @strike,0; set @strike,0;
set @ball,0; set @ball,0;
if(@thanainput1 == @thanacode1) set @strike,@strike +1; if (@yagu100 == @input100) set @strike,@strike+1;
if(@thanainput2 == @thanacode2) set @strike,@strike +1; if (@yagu10 == @input10) set @strike,@strike+1;
if(@thanainput3 == @thanacode3) set @strike,@strike +1; if (@yagu1 == (@input % 10)) set @strike,@strike+1;
if((@thanainput1 == @thanacode2) || (@thanainput1 == @thanacode3)) set @ball,@ball +1; if ((@yagu100 == @input10) || (@yagu100 == (@input % 10))) set .@ball,.@ball+1;
if((@thanainput2 == @thanacode1) || (@thanainput2 == @thanacode3)) set @ball,@ball +1; if ((@yagu10 == @input100) || (@yagu10 == (@input % 10))) set @ball,@ball+1;
if((@thanainput3 == @thanacode1) || (@thanainput3 == @thanacode2)) set @ball,@ball +1; if ((@yagu1 == @input100) || (@yagu1 == @input10)) set @ball,@ball+1;
if(@strike == 3) if (@strike == 3) {
{
mes "[Security System]"; mes "[Security System]";
mes "Authorization complete."; mes "Authorization complete.";
mes "Archive access granted."; mes "Archive access granted.";
@ -3203,25 +3207,26 @@ L_Input:
mes "Please use these results"; mes "Please use these results";
mes "to make a more accurate guess.^000000"; mes "to make a more accurate guess.^000000";
next; next;
if(@thanatry > 4) if (@retry > 4) {
{
mes "[Security System]"; mes "[Security System]";
mes "^FF0000The correct password"; mes "^FF0000The correct password";
mes "for this session was"; mes "for this session was";
mes "^000000"+@thanacode1+"^FF0000 - ^000000"+@thanacode2+"^000000 - ^000000"+@thanacode3+"^FF0000. Password"; mes "^000000"+@yagu100+"^FF0000 - ^000000"+@yagu10+"^000000 - ^000000"+@yagu1+"^FF0000.";
mes "will now be reset.^000000"; mes "Password will now be reset.^000000";
set @thanatry,0;
close; close;
} }
mes "[Security System]"; mes "[Security System]";
mes "Beeeeep!"; mes "Beeeeep!";
mes "Incorrect password."; mes "Incorrect password.";
mes " "; mes " ";
if(@thanatry == 1) mes "Initialing 2nd attempt...^000000"; switch (@retry) {
if(@thanatry == 2) mes "Initialing 3rd attempt...^000000"; case 1: mes "Initialing 2nd attempt...^000000"; break;
if(@thanatry == 3) mes "Initialing 4th attempt...^000000"; case 2: mes "Initialing 3rd attempt...^000000"; break;
if(@thanatry == 4) mes "Initialing final attempt...^000000"; case 3: mes "Initialing 4th attempt...^000000"; break;
next; case 4: mes "Initialing final attempt...^000000"; break;
goto L_Input;
} }
goto L_Retry;
}
}
end;
} }

View File

@ -2348,8 +2348,7 @@ alberta_in,131,95,5 script Iromo#ep3_2 706,{
next; next;
mes "-Silent pause-"; mes "-Silent pause-";
next; next;
set name,PcName; mes "-"+strcharinfo(0)+" starts to speak-";
mes "-" + name + " starts to speak-";
mes "-And tells him of the journeys-"; mes "-And tells him of the journeys-";
mes "-Adventures, joy, sorrow, and loss-"; mes "-Adventures, joy, sorrow, and loss-";
mes "-One by one to the boy-"; mes "-One by one to the boy-";
@ -2726,8 +2725,10 @@ alberta_in,131,95,5 script Iromo#ep3_2 706,{
mes "that grows outside of the village."; mes "that grows outside of the village.";
mes "I can stand it."; mes "I can stand it.";
next; next;
if (ep13_2_hiki == 1) {
set ep13_2_hiki,2; set ep13_2_hiki,2;
changequest 10079,10080; changequest 10079,10080;
}
mes "[Iromo]"; mes "[Iromo]";
mes "But, I can have other food"; mes "But, I can have other food";
mes "instead of the outside food."; mes "instead of the outside food.";
@ -2840,7 +2841,7 @@ alberta_in,120,93,3 script Iromo's Mother#ep3_2 53,{
mes "But, somehow..."; mes "But, somehow...";
mes "he doesn't go out anymore."; mes "he doesn't go out anymore.";
next; next;
if (BaseLevel > 40) { if (BaseLevel > 40 && checkquest(10079) == -1) {
set ep13_2_hiki,1; set ep13_2_hiki,1;
setquest 10079; setquest 10079;
} }
@ -2948,7 +2949,7 @@ alberta,45,106,5 script Little Boy#ep3_2 706,{
} }
if (ep13_2_hiki == 3) { if (ep13_2_hiki == 3) {
mes "[Little Boy]"; mes "[Little Boy]";
mes "I am hugry. We don't have"; mes "I am hungry. We don't have";
mes "much snack bar in this village."; mes "much snack bar in this village.";
next; next;
mes "[Little Boy]"; mes "[Little Boy]";
@ -2980,7 +2981,7 @@ alberta,45,106,5 script Little Boy#ep3_2 706,{
close; close;
} }
mes "[Little Boy]"; mes "[Little Boy]";
mes "I am hugry. We don't have"; mes "I am hungry. We don't have";
mes "much snack bar in this village."; mes "much snack bar in this village.";
next; next;
mes "[Little Boy]"; mes "[Little Boy]";

View File

@ -5793,8 +5793,7 @@ OnTouch:
} }
} }
else { else {
mes "[Security System]"; mes "You have failed";
mes "You haved failed";
mes "the identification"; mes "the identification";
mes "check. Access denied."; mes "check. Access denied.";
close; close;

View File

@ -11737,6 +11737,7 @@ OnInit:
end; end;
OnEnter: OnEnter:
initnpctimer;
enablenpc "#packidentity"; enablenpc "#packidentity";
end; end;
@ -11757,8 +11758,15 @@ OnTouch:
close2; close2;
donpcevent "Man#Lyozien::OnEnter"; donpcevent "Man#Lyozien::OnEnter";
donpcevent "#packidentity::OnInit"; donpcevent "#packidentity::OnInit";
stopnpctimer;
end; end;
} }
OnTimer120000:
donpcevent "Man#Lyozien::OnEnter";
donpcevent "#packidentity::OnInit";
stopnpctimer;
end;
} }
lhz_in01,187,247,3 script #flashback1 139,2,2,{ lhz_in01,187,247,3 script #flashback1 139,2,2,{

View File

@ -1,4 +1,4 @@
//===== rAthena Script ======================================= //===== rAthena Script =======================================
//= Moscovia Quests //= Moscovia Quests
//===== By: ================================================== //===== By: ==================================================
//= Kisuka //= Kisuka
@ -8315,8 +8315,8 @@ mosk_in,215,46,5 script Baba Yaga, the Horrible 970,{
mes "If you do this, what the villagers want"; mes "If you do this, what the villagers want";
mes "will be happening,"; mes "will be happening,";
mes "forever."; mes "forever.";
set mos_nowinter,19;
getitem 7765,1; getitem 7765,1;
set mos_nowinter,19;
close; close;
} }
else if (mos_nowinter == 19) { else if (mos_nowinter == 19) {

View File

@ -1,4 +1,4 @@
//===== rAthena Script ======================================= //===== rAthena Script =======================================
//= Nameless Island Quests //= Nameless Island Quests
//===== By: ================================================== //===== By: ==================================================
//= L0ne_W0lf //= L0ne_W0lf
@ -7525,7 +7525,7 @@ payon,244,62,3 script Moonho Ahn 897,{
else if (((.@input$ == "Odd") && (.@number == 2)) || ((.@input$ == "Even") && (.@number == 1))) { else if (((.@input$ == "Odd") && (.@number == 2)) || ((.@input$ == "Even") && (.@number == 1))) {
set .@number_false_3,.@number_false_3+1; set .@number_false_3,.@number_false_3+1;
mes "[Moonho Ahn]"; mes "[Moonho Ahn]";
mes "Well, it's ^0000FF+.@input+^000000."; mes "Well, it's ^0000FF"+.@input+"^000000.";
mes "Looks like I won."; mes "Looks like I won.";
next; next;
if ((.@number_right_3 < 2) && (.@number_false_3 <2)) { if ((.@number_right_3 < 2) && (.@number_false_3 <2)) {

View File

@ -42,7 +42,6 @@ niflheim,224,243,3 script Alreg#nif 795,{
next; next;
mes "^FF3355*Crunch* Crunch*^000000"; mes "^FF3355*Crunch* Crunch*^000000";
if (nif_esc == 0 && (MISC_QUEST & 32) == 0) { if (nif_esc == 0 && (MISC_QUEST & 32) == 0) {
set piano_root,rand(1,2);
percentheal -60,0; percentheal -60,0;
next; next;
mes "["+ strcharinfo(0) +"]"; mes "["+ strcharinfo(0) +"]";
@ -240,7 +239,7 @@ OnTouch:
mes "you could play music...^000000"; mes "you could play music...^000000";
close; close;
} }
if (nif_esc == 11) { if (nif_esc == 11 && countitem(7184) > 5) {
set nif_esc,12; set nif_esc,12;
delitem 7184,6; //Piano_Keyboard delitem 7184,6; //Piano_Keyboard
mes "^3355FFYou took the keys you've found"; mes "^3355FFYou took the keys you've found";

View File

@ -262,7 +262,7 @@ ve_fild05,257,130,4 script Wincing Old Man#ve 945,{
set veins_stone,5; set veins_stone,5;
close; close;
} }
else if (veins_stone < 7) { else if (veins_stone > 4 && veins_stone < 7) {
mes "[Zabaroo]"; mes "[Zabaroo]";
mes "Thanks again for your help!"; mes "Thanks again for your help!";
mes "What did Absar call this"; mes "What did Absar call this";
@ -400,7 +400,7 @@ ve_in,169,310,6 script Strange Old Man#ve 121,{
close; close;
} }
else if (veins_stone == 2) { else if (veins_stone == 2) {
if (countitem(999) > 4 && countitem(7561) > 1 && countitem(1033) > 4) { if (countitem(999) > 4 && countitem(1033) > 4 && countitem(7561) > 1) {
mes "[Absar]"; mes "[Absar]";
mes "Good, you finally"; mes "Good, you finally";
mes "brought everthing."; mes "brought everthing.";
@ -467,7 +467,7 @@ ve_in,169,310,6 script Strange Old Man#ve 121,{
} }
ve_in02,37,28,4 script Factory Manager 898,{ ve_in02,37,28,4 script Factory Manager 898,{
if (veins_stone < 5) { if (veins_stone && veins_stone < 5) {
mes "[Mirhen]"; mes "[Mirhen]";
mes "Hey, employees only beyond this point!"; mes "Hey, employees only beyond this point!";
mes "Geez, don't we have a sigh that says that?"; mes "Geez, don't we have a sigh that says that?";
@ -4151,7 +4151,7 @@ veins,227,127,5 script Ivory 940,{
close; close;
} }
else if (rachel_camel == 6) { else if (rachel_camel == 6) {
if ((countitem(519) > 9) && (countitem(511) > 99) && (countitem(909) > 49) && (countitem(713) > 4)) { if ((countitem(511) > 99) && (countitem(909) > 49) && (countitem(519) > 9) && (countitem(713) > 4)) {
mes "[Organic Soap Maker Ivory]"; mes "[Organic Soap Maker Ivory]";
mes "Oh, great! You brought"; mes "Oh, great! You brought";
mes "everything! Now... It's"; mes "everything! Now... It's";
@ -4793,7 +4793,7 @@ ve_fild07,235,42,3 script Silk Sand Camel 938,{
close; close;
} }
else if (rachel_camel > 11 && rachel_camel < 17) { else if (rachel_camel > 11 && rachel_camel < 17) {
if (countitem(519) > 1 && countitem(511) > 19 && countitem(909) > 9 && countitem(713) > 0) { if (countitem(511) > 19 && countitem(909) > 9 && countitem(519) > 1 && countitem(713) > 0) {
mes "^3355FFThe camel can smell"; mes "^3355FFThe camel can smell";
mes "that you have food for"; mes "that you have food for";
mes "it, and started salivating."; mes "it, and started salivating.";
@ -5153,7 +5153,7 @@ ra_temin,87,133,1 script Rachel Guard#vol1 934,5,2,{
disablenpc "Rachel Guard#vol1"; disablenpc "Rachel Guard#vol1";
end; end;
} }
else if ((aru_vol> 2) && (aru_vol < 5)) { else if ((aru_vol > 2) && (aru_vol < 5)) {
mes "[Guard Karlum]"; mes "[Guard Karlum]";
mes "Hey! Lamir told me that"; mes "Hey! Lamir told me that";
mes "she didn't want to see"; mes "she didn't want to see";
@ -5217,7 +5217,7 @@ OnTouch:
} }
ra_temin,115,140,1 script Flower Vase#vol 111,{ ra_temin,115,140,1 script Flower Vase#vol 111,{
if ((aru_vol> 2) && (aru_vol < 5)) { if ((aru_vol > 2) && (aru_vol < 5)) {
mes "^3355FFYou find a giant"; mes "^3355FFYou find a giant";
mes "vase full of beautiful"; mes "vase full of beautiful";
mes "flowers that look freshly"; mes "flowers that look freshly";
@ -6923,7 +6923,7 @@ thor_camp,159,74,3 script Colonel Vito#3 946,{
thor_camp,141,62,0 script #vol_study1::VeinsWarp -1,3,3,{ thor_camp,141,62,0 script #vol_study1::VeinsWarp -1,3,3,{
OnTouch: OnTouch:
if ((aru_vol >= 14 && aru_vol <= 16) || (aru_vol == 19)) { if ((aru_vol > 13 && aru_vol < 17) || (aru_vol == 19)) {
warp "thor_camp",156,67; warp "thor_camp",156,67;
} }
end; end;

View File

@ -1155,20 +1155,7 @@ L_Retry:
close; close;
} }
} }
if ((@retry > 0) && (@retry < 5)) { if (@retry > 4) {
mes "[Screen]";
mes "*Beeeeep*";
mes "Unauthorized";
mes "numerical sequence.";
next;
mes "[Screen]";
mes "Correct number";
mes "in correct place";
mes "in sequence total: ^FF0000"+@strike+"^000000";
mes " ";
mes "Correct number total: ^FF0000"+@ball+"^000000";
goto L_Retry;
}
mes "[Screen]"; mes "[Screen]";
mes "*Beeeeep*"; mes "*Beeeeep*";
mes "Unauthorized"; mes "Unauthorized";
@ -1190,6 +1177,19 @@ L_Retry:
mes "will change upon retry."; mes "will change upon retry.";
close; close;
} }
mes "[Screen]";
mes "*Beeeeep*";
mes "Unauthorized";
mes "numerical sequence.";
next;
mes "[Screen]";
mes "Correct number";
mes "in correct place";
mes "in sequence total: ^FF0000"+@strike+"^000000";
mes " ";
mes "Correct number total: ^FF0000"+@ball+"^000000";
goto L_Retry;
}
} }
mes "^3355FFThis device is currently"; mes "^3355FFThis device is currently";
mes "inactivated and not in"; mes "inactivated and not in";

View File

@ -1,4 +1,4 @@
//===== rAthena Script ======================================= //===== rAthena Script =======================================
//= The Sign Quest //= The Sign Quest
//===== By: ================================================== //===== By: ==================================================
//= SinSloth(Most of the NPCs), MasterOfMuppets(Some of the NPCs + bug fixes) & Kargha(The quiz NPCs) //= SinSloth(Most of the NPCs), MasterOfMuppets(Some of the NPCs + bug fixes) & Kargha(The quiz NPCs)
@ -11391,7 +11391,7 @@ niflheim,102,54,4 script Mad Man#s 739,{
next; next;
switch(select("Pay him.:Don't pay him.")) { switch(select("Pay him.:Don't pay him.")) {
case 1: case 1:
if (Zeny < 20000) { if (Zeny < 60000) {
mes "[Laichin]"; mes "[Laichin]";
mes "What is this?"; mes "What is this?";
mes "You tryin to welch"; mes "You tryin to welch";