Code: Select all
my $maxbuy = ($config{"buyAuto_$args->{index}"."_price"}) ? int($char->{zeny}/$config{"buyAuto_$args->{index}"."_price"}) : 1000000; # we assume we can buy 1000000, when price of the item is set to 0 or undef
Moderators: Moderators, Developers
Code: Select all
my $maxbuy = ($config{"buyAuto_$args->{index}"."_price"}) ? int($char->{zeny}/$config{"buyAuto_$args->{index}"."_price"}) : 1000000; # we assume we can buy 1000000, when price of the item is set to 0 or undef