Hello, here is the section of script that isnt working:
mes "[Bathory]";
mes "Kafra Points cost 1000z each.";
mes "How many KP would you like?";
input .@amountbath;
.@inputbath = .amountbath*1000;
next;
if (Zeny<.inputbath) {
mes "[Bathory]";
mes "You do not have enough zeny.";
close;
}
mes "[Bathory]";
mes "Coming right up!";
close2;
set Zeny, Zeny-.inputbath;
#CASHPOINTS += .amountbath;;
end;
It loads without error, and will let you do an input. However, even if you dont have enough zeny, it skips the if statement, it doesnt take any zeny, and it doesnt give any of the cash points either. Can anyone enlighten me as to what is wrong here? Thanks.
Question
Rallycart
Hello, here is the section of script that isnt working:
mes "[Bathory]"; mes "Kafra Points cost 1000z each."; mes "How many KP would you like?"; input .@amountbath; .@inputbath = .amountbath*1000; next; if (Zeny<.inputbath) { mes "[Bathory]"; mes "You do not have enough zeny."; close; } mes "[Bathory]"; mes "Coming right up!"; close2; set Zeny, Zeny-.inputbath; #CASHPOINTS += .amountbath;; end;
It loads without error, and will let you do an input. However, even if you dont have enough zeny, it skips the if statement, it doesnt take any zeny, and it doesnt give any of the cash points either. Can anyone enlighten me as to what is wrong here? Thanks.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.