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/merchants/icecream.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/merchants/icecream.txt')
-rw-r--r-- | npc/merchants/icecream.txt | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/npc/merchants/icecream.txt b/npc/merchants/icecream.txt index 14f83b2a0..99da2fc18 100644 --- a/npc/merchants/icecream.txt +++ b/npc/merchants/icecream.txt @@ -56,8 +56,8 @@ mes "so you can only purchase 5 at a time!!"; next; while(1) { - input .@input; - if(.@input < 1) { + input(.@input); + if (.@input <= 0) { mes "[Ice Cream Maker]"; mes "If you don't want to buy any,"; mes "could you please let the next customer"; @@ -65,7 +65,7 @@ mes "Thank you."; close; } - if(.@input > 5) { + if (.@input > 5) { mes "[Ice Cream Maker]"; mes "Ouch"; mes "You expect too much."; @@ -74,7 +74,9 @@ mes "If you might haveto make a lot of trips"; mes "to the bathroom tonight."; next; + continue; } + break; } if(Zeny<.@input*100) { mes "[Ice Cream Maker]"; |