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

Comparing deliantra/server/ext/ipo.ext (file contents):
Revision 1.12 by elmex, Mon Oct 8 15:20:38 2007 UTC vs.
Revision 1.14 by elmex, Thu Apr 24 11:05:51 2008 UTC

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
234 my $cnt; 236 my $cnt;
235 for ($who->inv) { 237 for ($who->inv) {
236 if ($_->name () =~ /^(bag|package|carton) T: \Q$arguments\E F: (\S+)$/) { 238 if ($_->name () =~ /^(bag|package|carton) T: \Q$arguments\E F: (\S+)$/) {
237 $_->name ("$1 F: $2 T: $arguments"); 239 $_->name ("$1 F: $2 T: $arguments");
238 $storage->insert ($_, 2, 2); 240 $storage->insert ($_, 2, 2);
239 $who->esrv_del_item ($_->count);
240 $cnt++; 241 $cnt++;
241 } 242 }
242 } 243 }
243 244
244 if ($cnt) { 245 if ($cnt) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines