diff options
author | Vincent Thibault <vthibault.mobile@gmail.com> | 2014-07-28 14:00:29 +0200 |
---|---|---|
committer | Vincent Thibault <vthibault.mobile@gmail.com> | 2014-07-28 14:00:29 +0200 |
commit | 1fde26d0bef5c705062665ac70e6d13802b3200e (patch) | |
tree | 63a61fc61b7625fb3382dc6df9460406472410fb /npc/quests | |
parent | be0de5a9f6c0b4ceeaa70b044d58ae584e97d9fd (diff) | |
download | hercules-1fde26d0bef5c705062665ac70e6d13802b3200e.tar.gz hercules-1fde26d0bef5c705062665ac70e6d13802b3200e.tar.bz2 hercules-1fde26d0bef5c705062665ac70e6d13802b3200e.tar.xz hercules-1fde26d0bef5c705062665ac70e6d13802b3200e.zip |
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```
Diffstat (limited to 'npc/quests')
-rw-r--r-- | npc/quests/quests_airship.txt | 13 |
1 files changed, 7 insertions, 6 deletions
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]"; |