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

Comparing deliantra/server/ext/bank.ext (file contents):
Revision 1.1 by root, Fri Dec 15 19:29:18 2006 UTC vs.
Revision 1.4 by elmex, Wed Oct 17 19:12:28 2007 UTC

149 } elsif ($currency eq "royalties") { 149 } elsif ($currency eq "royalties") {
150 $currency = "royalty"; 150 $currency = "royalty";
151 } 151 }
152 152
153 if ($cmd eq "balance") { 153 if ($cmd eq "balance") {
154 if ($who->flag (cf::FLAG_WIZ)) { 154 if ($who->flag (cf::FLAG_WIZ) && $arguments =~ /\S/) {
155 cf::async {
155 if (my $player = cf::player::find $arguments) { 156 if (my $player = cf::player::find $arguments) {
156 $who->reply ($npc, balance $player->ob, 1); 157 $who->contr->send_msg (
158 $ext::chat::SAY_CHANNEL, "Nancy says: " . balance ($player->ob, 1),
159 cf::NDI_BROWN | cf::NDI_REPLY
160 ) if $who->contr;
161 }
157 } 162 };
158 } else { 163 } else {
159 $who->reply ($npc, balance $who, 0); 164 $who->reply ($npc, balance ($who, 0));
160 } 165 }
161 166
162 } elsif ($cmd eq "balance" and !$arguments) { 167 } elsif ($cmd eq "balance" and !$arguments) {
163 $who->reply ($npc, "Balance of whom?"); 168 $who->reply ($npc, "Balance of whom?");
164 169

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines