ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/bank.ext
(Generate patch)

Comparing deliantra/maps/perl/bank.ext (file contents):
Revision 1.10 by pippijn, Mon May 22 19:14:47 2006 UTC vs.
Revision 1.11 by pippijn, Mon May 22 19:17:11 2006 UTC

141 my $units = join ", ", @units; 141 my $units = join ", ", @units;
142 my $fees = - ($service_charge / 100) + 1; 142 my $fees = - ($service_charge / 100) + 1;
143 143
144 if ($cmd eq "balance") { 144 if ($cmd eq "balance") {
145 if ($who->flag (cf::FLAG_WIZ)) { 145 if ($who->flag (cf::FLAG_WIZ)) {
146 my $player = cf::player::find $arguments; 146 if (my $player = cf::player::find $arguments) {
147 $who->message ("$name says: ".balance ($player->ob, 1), cf::NDI_WHITE); 147 $who->message ("$name says: ".balance ($player->ob, 1), cf::NDI_WHITE);
148 }
148 } else { 149 } else {
149 $who->message ("$name says: ".balance ($who, 0), cf::NDI_WHITE); 150 $who->message ("$name says: ".balance ($who, 0), cf::NDI_WHITE);
150 } 151 }
151 152
152 } elsif ($cmd eq "deposit" and $currency) { 153 } elsif ($cmd eq "deposit" and $currency) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines