summaryrefslogtreecommitdiff
path: root/npc/quests
diff options
context:
space:
mode:
authorKisuka <kisuka@kisuka.com>2014-07-28 16:49:32 -0700
committerKisuka <kisuka@kisuka.com>2014-07-28 16:49:32 -0700
commit94117dc9fbd279b5bd3e44b3399142c62c7069bf (patch)
tree8a5ee87986fc0289dfd26df868c9aa3c3e59664f /npc/quests
parentf5de504f681bc86b095d43c79466c759a942d8ed (diff)
parent1fde26d0bef5c705062665ac70e6d13802b3200e (diff)
downloadhercules-94117dc9fbd279b5bd3e44b3399142c62c7069bf.tar.gz
hercules-94117dc9fbd279b5bd3e44b3399142c62c7069bf.tar.bz2
hercules-94117dc9fbd279b5bd3e44b3399142c62c7069bf.tar.xz
hercules-94117dc9fbd279b5bd3e44b3399142c62c7069bf.zip
Merge pull request #311 from vthibault/heart-fragment-quest-fix
Fix Heart Fragment quest.
Diffstat (limited to 'npc/quests')
-rw-r--r--npc/quests/quests_airship.txt13
1 files changed, 7 insertions, 6 deletions
diff --git a/npc/quests/quests_airship.txt b/npc/quests/quests_airship.txt
index afee6ab57..49478877d 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]";