diff options
author | Haru <haru@dotalux.com> | 2019-07-28 19:05:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-28 19:05:49 +0200 |
commit | afe0f1377070f1f6679a679aab0d6ad5ed83b565 (patch) | |
tree | 20d38a8581f3a6159157bfa6644027d4007485bc /npc/events/halloween_2006.txt | |
parent | ef8bc3a8375d4fe9a5f75faf951b3deecb891d57 (diff) | |
parent | 371d056df80b6f83484534f64883c3d020c4112d (diff) | |
download | hercules-afe0f1377070f1f6679a679aab0d6ad5ed83b565.tar.gz hercules-afe0f1377070f1f6679a679aab0d6ad5ed83b565.tar.bz2 hercules-afe0f1377070f1f6679a679aab0d6ad5ed83b565.tar.xz hercules-afe0f1377070f1f6679a679aab0d6ad5ed83b565.zip |
Merge pull request #2494 from Emistry/npc_input
Update minimum value of *input script command.
Diffstat (limited to 'npc/events/halloween_2006.txt')
-rw-r--r-- | npc/events/halloween_2006.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/npc/events/halloween_2006.txt b/npc/events/halloween_2006.txt index 940ffe30a..6f954c299 100644 --- a/npc/events/halloween_2006.txt +++ b/npc/events/halloween_2006.txt @@ -614,20 +614,20 @@ nif_fild01,165,115,3 script Chicken Masta#06_hw 4_M_NFDEADMAN2,{ mes "And maximum 3 is all you can get."; next; while(1) { - input .@input; - if (.@input == 0) { + input(.@input); + if (.@input <= 0) { mes "[Chicken Masta]"; mes "You don't have to buy it, if you don't need it."; close; } - else if (@input > 3) { + if (@input > 3) { mes "[Chicken Masta]"; mes "What did I tell you."; mes "I'm going to sell only three eggs."; next; + continue; } - else - break; + break; } .@hw_egg = .@input * 1000; if (Zeny < @hw_egg) { @@ -666,7 +666,7 @@ nif_fild01,167,113,3 script Masta's chicken#06_hw01 4_NFCOCK,{ mes "Oh, this must be Chicken Masta's chicken."; mes "I should insert the magic word."; next; - input .@inputstr$; + input(.@inputstr$); if( .@inputstr$ == "Return" ) { emotion e_omg; specialeffect EF_TELEPORTATION; |