… | |
… | |
176 | if ($cmd eq 'mailwarning' and !$who->flag (cf::FLAG_WIZ)) { |
176 | if ($cmd eq 'mailwarning' and !$who->flag (cf::FLAG_WIZ)) { |
177 | return 1; |
177 | return 1; |
178 | } |
178 | } |
179 | |
179 | |
180 | if ($who->pay_amount ($pr->[0] * $price_fact)) { |
180 | if ($who->pay_amount ($pr->[0] * $price_fact)) { |
|
|
181 | cf::async { |
181 | if ($pr->[3] && not cf::player::exists $arguments) { |
182 | if ($pr->[3] && not cf::player::exists $arguments) { |
182 | $who->reply ($npc, "Sorry, there is no '$arguments'"); |
183 | $who->reply ($npc, "Sorry, there is no '$arguments'"); |
183 | } else { |
184 | } else { |
184 | create_object ($pr->[1], $who->map, $x, $y, $pr->[2], $who->name, $arguments); |
185 | create_object ($pr->[1], $who->map, $x, $y, $pr->[2], $who->name, $arguments); |
185 | $who->reply ($npc, "Here is your $cmd"); |
186 | $who->reply ($npc, "Here is your $cmd"); |
|
|
187 | } |
186 | } |
188 | } |
187 | } else { |
189 | } else { |
188 | $who->reply ($npc, "Sorry, you don't have enough money."); |
190 | $who->reply ($npc, "Sorry, you don't have enough money."); |
189 | } |
191 | } |
190 | |
192 | |