… | |
… | |
133 | |
133 | |
134 | if ($cmd eq "balance") { |
134 | if ($cmd eq "balance") { |
135 | if ($who->flag (cf::FLAG_WIZ) && $arguments =~ /\S/) { |
135 | if ($who->flag (cf::FLAG_WIZ) && $arguments =~ /\S/) { |
136 | cf::async { |
136 | cf::async { |
137 | if (my $player = cf::player::find $arguments) { |
137 | if (my $player = cf::player::find $arguments) { |
138 | $who->contr->send_msg ( |
138 | $who->reply ($npc, |
139 | $ext::chat::SAY_CHANNEL, "Nancy says: " . balance ($player->ob, 1), |
139 | "Nancy says: " . balance ($player->ob, 1), |
140 | cf::NDI_BROWN | cf::NDI_REPLY |
140 | cf::NDI_BROWN | cf::NDI_REPLY |
141 | ) if $who->contr; |
141 | ); |
142 | } |
142 | } |
143 | }; |
143 | }; |
144 | } else { |
144 | } else { |
145 | $who->reply ($npc, balance ($who, 0)); |
145 | $who->reply ($npc, balance ($who, 0)); |
146 | } |
146 | } |