Собственно говоря все ясно. Ник персонажа Lenore. После получеия пароля от Mr. Smith возникает проблема со входом в хижину, проверка на L_Check или L_Enter глючит, или руки у меня волшебные, но при любых правильных ответах (подсмотренных в коде) я все равно улетаю на L_Wrong. Разберитесь пожалуйста, заранее благодарен.
eA 10775
Код
//----------------------------------------------------------------------------------------------
L_Test3:
//---------------
if(ROGUE_Q2 > 0) goto L_Check3;
mes "Let me see..... Who should I have you go find........ hmm.........";
emotion e_hmm;
next;
mes "[Mr. Smith]";
mes "Ah I know! Alright, in the previous test I had you go find some items. For this test you will need to find a specific person.";
emotion e_ic;
next;
mes "[Mr. Smith]";
set ROGUE_Q2, rand(1,3);
if(ROGUE_Q2 == 1) callsub sF3_R1;
if(ROGUE_Q2 == 2) callsub sF3_R2;
if(ROGUE_Q2 == 3) callsub sF3_R3;
next;
mes "[Mr. Smith]";
mes "Good luck to you. Try to finish this test as soon as possible. Getting things done quickly is one of a Rogue's traits.";
close;
sF3_R1:
mes "You will have to go and find ^5533FFAragham Junior^000000.";
next;
mes "[Mr. Smith]";
mes "He lives in a little house somewhere ^5533FFSouthWest^000000 of the Fortress of Sandarman.";
mes "That area is located ^5533FFone map East^000000 from here and is on the ^000000SouthWestern land mass^000000.";
next;
mes "[Mr. Smith]";
mes "He's a really nice guy who works real hard and is very good at collecting unpaid debts.";
mes "Unfortunately people were trying to kill him because of something his father had done in the past.";
next;
mes "[Mr. Smith]";
mes "When he joined the Rogue guild, he decided he was going to keep low which is why he's in his current hiding place.";
mes "No one is supposed to know where he is except for those of us at the Rogue Guild.";
next;
mes "[Mr. Smith]";
mes "That's why you will need this password in order to talk to him.";
mes "The password is: '^5533FFAragham never hoarded upgrade items.^000000'";
return;
sF3_R2:
mes "You will have to go and find ^5533FFHollgrehen Junior^000000.";
next;
mes "[Mr. Smith]";
mes "He lives in a little house somewhere ^5533FFSouthEast^000000 of the Fortress of Sandarman.";
mes "That area is located ^5533FFone map East^000000 from here and is on the ^5533FFEastern land mass^000000.";
next;
mes "[Mr. Smith]";
mes "He's a really nice guy who works real hard and is very good at collecting unpaid debts.";
mes "Unfortunately people were trying to kill him because of something his father had done in the past.";
next;
mes "[Mr. Smith]";
mes "When he joined the Rogue guild, he decided he was going to keep low which is why he's in his current hiding place.";
mes "No one is supposed to know where he is except for those of us at the Rogue Guild.";
next;
mes "[Mr. Smith]";
mes "That's why you will need this password in order to talk to him.";
mes "The password is: '^5533FFMy Father never hoarded upgrade items.^000000'";
return;
sF3_R3:
mes "You will have to go and find ^5533FFAntonio Junior.^000000.";
next;
mes "[Mr. Smith]";
mes "He lives in a little hut somewhere on the ^5533FFEastern end of Kokomo Beach^000000.";
mes "That area is located ^5533FF1 map North, and 1 map West^000000 from here.";
next;
mes "[Mr. Smith]";
mes "He's a really nice guy who works real hard and is very good at collecting unpaid debts.";
mes "Unfortunately people were trying to kill him because of something his father had done in the past.";
next;
mes "[Mr. Smith]";
mes "When he joined the Rogue guild, he decided he was going to keep low which is why he's in his current hiding place.";
mes "No one is supposed to know where he is except for those of us at the Rogue Guild.";
next;
mes "[Mr. Smith]";
mes "That's why you will need this password in order to talk to him.";
mes "The password is: '^5533FFAntonio doesn't like breaking refining material.^000000'";
return;
L_Check3:
mes "What!?! Did you just say you forgot where to go?........";
emotion e_what;
next;
mes "[Mr. Smith]";
mes "GRRRR!!! That's why you need to WRITE down important things! Geez......";
emotion e_an;
next;
mes "[Mr. Smith]";
if(ROGUE_Q2 == 1) callsub sF3_R1;
if(ROGUE_Q2 == 2) callsub sF3_R2;
if(ROGUE_Q2 == 3) callsub sF3_R3;
close;
//-------------------------------------------------------------------------------------------------
L_Done:
//----------------
mes "I have no more busisness with you.........";
close;
}
//===========================================================
// Guildsman that need to be found
//===========================================================
//------------------------------------------------------------------------------
in_rogue.gat,272,136,3 script Hermanthorn Jr. 85,{
mes "[Hermanthorn Jr.]";
mes "Huh? Wha.... who are you?! You're not from the Rogue guild!! Get out of here!";
emotion e_what;
next;
mes "[Hermanthorn Jr.]";
mes "You're..... I see! You're one of them!!! You've come here to kill me haven't you??!! No... NO!! I'm not ready to die yet!";
emotion e_gasp;
next;
mes "[Hermanthorn Jr.]";
mes "Aaaaaaaaaaaaaahhhh!! Go away! Get lost! Otherwise I am gonna KILL YOU!!!";
emotion e_wah;
close;
}
// --------------------------------------------------------------------------
cmd_fild09.gat,106,195,0 script Aragham Junior#01 45,1,1,{
callfunc "F_RogueTest3", 1, "Aragham", "never", "hoarded", "upgrade items.", 244, 24;
}
// -----------------------------------------------------------------------------
cmd_fild09.gat,335,143,0 script Hollgrehen Junior#01 45,1,1,{
callfunc "F_RogueTest3", 2, "My father", "never", "hoarded", "upgrade items.", 168, 34;
}
// ------------------------------------------------------------------------------
cmd_fild04.gat,304,179,0 script Antonio Junior#01 45,1,1,{
callfunc "F_RogueTest3", 3, "Antonio", "doesn't like", "breaking", "refining materials.", 165, 104;
}
// Function for Guildsman ===================================
function script F_RogueTest3 {
mes "[???]";
mes "Who's there?!!!";
mes "Who dares to trespass on my territory?";
if(god_megin_2 > 0 && getarg(1) == "Aragham") goto L_Pass;
if(BaseJob != Job_Thief || ROGUE_Q<3 || ROGUE_Q2==0) close;
L_Pass:
deletearray @choice$[1], 4;
next;
menu "My father",M_1a, "Aragham",M_1b, "Antonio",M_1c, "Legolas",M_1d;
M_1a:
set @choice$[1], "My father";
goto M_Menu2;
M_1b:
set @choice$[1], "Aragham";
goto M_Menu2;
M_1c:
set @choice$[1], "Antonio";
goto M_Menu2;
M_1d:
set @choice$[1], "Legolas";
M_Menu2:
callsub sF_Password;
menu "did not",M_2a, "doesn't like",M_2b, "never",M_2c, "ever",M_2d;
M_2a:
set @choice$[2], "did not";
goto M_Menu3;
M_2b:
set @choice$[2], "doesn't like";
goto M_Menu3;
M_2c:
set @choice$[2], "never";
goto M_Menu3;
M_2d:
set @choice$[2], "ever";
M_Menu3:
callsub sF_Password;
menu "hoard",M_3a, "hoarded",M_3b, "hide",M_3c, "took",M_3d, "breaking",M_3e;
M_3a:
set @choice$[3], "hoard";
goto M_Menu4;
M_3b:
set @choice$[3], "hoarded";
goto M_Menu4;
M_3c:
set @choice$[3], "hide";
goto M_Menu4;
M_3d:
set @choice$[3], "took";
goto M_Menu4;
M_3e:
set @choice$[3], "breaking";
M_Menu4:
callsub sF_Password;
menu "upgrade items.",M_4a, "forging items.",M_4b, "refining materials.",M_4c, "upgrade equipment.",M_4d;
M_4a:
set @choice$[4], "upgrade items.";
goto L_Check;
M_4b:
set @choice$[4], "forging items.";
goto L_Check;
M_4c:
set @choice$[4], "refining materials.";
goto L_Check;
M_4d:
set @choice$[4], "upgrade equipment.";
L_Check:
callsub sF_Password;
if(god_megin_2 > 0) goto L_Enter;
if(ROGUE_Q2 != getarg(0)) goto L_Wrong;
L_Enter:
if((@choice$[1] != getarg(1)) || (@choice$[2] != getarg(2)) || (@choice$[3] != getarg(3)) || (@choice$[4] != getarg(4))) goto L_Wrong;
mes "~ creeek ~";
mes "You hear the door begining to open........";
next;
deletearray @choice$[1], 4;
warp "in_rogue.gat", getarg(5), getarg(6);
end;
L_Wrong:
mes "[???]";
mes "Get lost!!";
close;
sF_Password:
mes "[^5533FF" + strcharinfo(0) + "^000000]";
mes @choice$[1];
mes @choice$[2];
mes @choice$[3];
mes @choice$[4];
next;
return;
}