Negative npc input checks for arena_points.
* Related issue: #2557 * Thanks to @mazvi
This commit is contained in:
parent
fbb447ac8c
commit
c09929aa16
@ -62,7 +62,7 @@ prt_are_in,103,11,3 script Arena Point Manager 732,{
|
|||||||
mes "To cancel, enter ''^3355FF0^000000.''";
|
mes "To cancel, enter ''^3355FF0^000000.''";
|
||||||
next;
|
next;
|
||||||
input .@input;
|
input .@input;
|
||||||
if (.@input == 0) {
|
if (.@input <= 0) {
|
||||||
mes "[Arena Point Manager]";
|
mes "[Arena Point Manager]";
|
||||||
mes "You have";
|
mes "You have";
|
||||||
mes "canceled";
|
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 "into 5 Arena Points " + .@input + " times.";
|
||||||
mes "A total of " + .@want_point1 + " Turbo Track Points were converted into";
|
mes "A total of " + .@want_point1 + " Turbo Track Points were converted into";
|
||||||
mes "" + .@want_point +" Arena Points.";
|
mes "" + .@want_point +" Arena Points.";
|
||||||
set tt_point,tt_point - .@want_point1;
|
set tt_point, .@my_turbo_all;
|
||||||
set arena_point,arena_point+.@want_point;
|
set arena_point, .@my_arena_all;
|
||||||
next;
|
next;
|
||||||
mes "[Arena Point Manager]";
|
mes "[Arena Point Manager]";
|
||||||
mes "" + strcharinfo(0) + ",";
|
mes "" + strcharinfo(0) + ",";
|
||||||
|
@ -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.";
|
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;
|
next;
|
||||||
input .@reward;
|
input .@reward;
|
||||||
if (.@reward == 0) {
|
if (.@reward <= 0) {
|
||||||
mes "[Givu]";
|
mes "[Givu]";
|
||||||
mes "You have canceled your request.";
|
mes "You have canceled your request.";
|
||||||
close;
|
close;
|
||||||
@ -1008,7 +1008,7 @@ function script Func_Are_Rew {
|
|||||||
mes "You have exceeded the maximum capacity.";
|
mes "You have exceeded the maximum capacity.";
|
||||||
close;
|
close;
|
||||||
}
|
}
|
||||||
if (arena_point < .@reward * .@arena_point) {
|
if (arena_point < (.@reward * .@arena_point)) {
|
||||||
mes "[Givu]";
|
mes "[Givu]";
|
||||||
mes "You do not have enough arena points.";
|
mes "You do not have enough arena points.";
|
||||||
mes "Please check the total amount of arena points you have.";
|
mes "Please check the total amount of arena points you have.";
|
||||||
|
@ -4492,7 +4492,7 @@ turbo_room,106,117,3 script Point Manager#tt 833,{
|
|||||||
mes "is 20. To cancel, enter '^3355FF0^000000.'";
|
mes "is 20. To cancel, enter '^3355FF0^000000.'";
|
||||||
next;
|
next;
|
||||||
input .@input;
|
input .@input;
|
||||||
if (.@input == 0) {
|
if (.@input <= 0) {
|
||||||
mes "[Turbo Track Point Manager]";
|
mes "[Turbo Track Point Manager]";
|
||||||
mes "You have";
|
mes "You have";
|
||||||
mes "canceled";
|
mes "canceled";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user