From 1fde26d0bef5c705062665ac70e6d13802b3200e Mon Sep 17 00:00:00 2001 From: Vincent Thibault Date: Mon, 28 Jul 2014 14:00:29 +0200 Subject: Fix Heart Fragment quest. - The Security NPC should print **your** code in the dialog, not the number you have to guess ! - Typo error ```.@ball``` instead of ```@ball``` --- npc/quests/quests_airship.txt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'npc') diff --git a/npc/quests/quests_airship.txt b/npc/quests/quests_airship.txt index f018327d1..490100337 100644 --- a/npc/quests/quests_airship.txt +++ b/npc/quests/quests_airship.txt @@ -3107,8 +3107,9 @@ L_Retry: } set @input100,@input / 100; set @input10,(@input % 100) / 10; - if (((@input100 > 0) && (@input10 > 0)) && ((@input % 10) > 0)) { - if ((@input100 != @input10) && (@input100 != (@input % 10)) && (@input10 != (@input % 10))) { + set @input1,@input % 10; + if ((@input100 > 0) && (@input10 > 0) && (@input1 > 0)) { + if ((@input100 != @input10) && (@input100 != @input1) && (@input10 != @input1)) { break; } mes "[Security System]"; @@ -3124,16 +3125,16 @@ L_Retry: mes "[Security System]"; mes "^ff0000"+strcharinfo(0)+"^000000"; mes "has entered the following:"; - mes "^0000ff"+@yagu100+"^000000 - ^0000ff"+@yagu10+"^000000 - ^0000ff"+@yagu1+"^000000."; + mes "^0000ff"+@input100+"^000000 - ^0000ff"+@input10+"^000000 - ^0000ff"+@input1+"^000000."; mes "Please wait for authorization to complete."; next; set @strike,0; set @ball,0; if (@yagu100 == @input100) set @strike,@strike+1; if (@yagu10 == @input10) set @strike,@strike+1; - if (@yagu1 == (@input % 10)) set @strike,@strike+1; - if ((@yagu100 == @input10) || (@yagu100 == (@input % 10))) set .@ball,.@ball+1; - if ((@yagu10 == @input100) || (@yagu10 == (@input % 10))) set @ball,@ball+1; + if (@yagu1 == @input1) set @strike,@strike+1; + if ((@yagu100 == @input10) || (@yagu100 == @input1)) set @ball,@ball+1; + if ((@yagu10 == @input100) || (@yagu10 == @input1)) set @ball,@ball+1; if ((@yagu1 == @input100) || (@yagu1 == @input10)) set @ball,@ball+1; if (@strike == 3) { mes "[Security System]"; -- cgit v1.2.3-60-g2f50