Negative npc input checks for arena_points.

* Related issue: #2557
* Thanks to @mazvi
This commit is contained in:
Jey 2017-11-01 22:17:31 +01:00
parent fbb447ac8c
commit c09929aa16
3 changed files with 6 additions and 6 deletions

View File

@ -62,7 +62,7 @@ prt_are_in,103,11,3 script Arena Point Manager 732,{
mes "To cancel, enter ''^3355FF0^000000.''";
next;
input .@input;
if (.@input == 0) {
if (.@input <= 0) {
mes "[Arena Point Manager]";
mes "You have";
mes "canceled";
@ -113,8 +113,8 @@ prt_are_in,103,11,3 script Arena Point Manager 732,{
mes "into 5 Arena Points " + .@input + " times.";
mes "A total of " + .@want_point1 + " Turbo Track Points were converted into";
mes "" + .@want_point +" Arena Points.";
set tt_point,tt_point - .@want_point1;
set arena_point,arena_point+.@want_point;
set tt_point, .@my_turbo_all;
set arena_point, .@my_arena_all;
next;
mes "[Arena Point Manager]";
mes "" + strcharinfo(0) + ",";

View File

@ -999,7 +999,7 @@ function script Func_Are_Rew {
mes "If you wish to cancel, please enter 0. If you don't, please enter how many ^3131FFtimes^000000 of arena points you wish to spend.";
next;
input .@reward;
if (.@reward == 0) {
if (.@reward <= 0) {
mes "[Givu]";
mes "You have canceled your request.";
close;
@ -1008,7 +1008,7 @@ function script Func_Are_Rew {
mes "You have exceeded the maximum capacity.";
close;
}
if (arena_point < .@reward * .@arena_point) {
if (arena_point < (.@reward * .@arena_point)) {
mes "[Givu]";
mes "You do not have enough arena points.";
mes "Please check the total amount of arena points you have.";

View File

@ -4492,7 +4492,7 @@ turbo_room,106,117,3 script Point Manager#tt 833,{
mes "is 20. To cancel, enter '^3355FF0^000000.'";
next;
input .@input;
if (.@input == 0) {
if (.@input <= 0) {
mes "[Turbo Track Point Manager]";
mes "You have";
mes "canceled";