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.10 by root, Thu Sep 27 01:21:26 2007 UTC vs.
Revision 1.11 by root, Sun Sep 30 16:24:29 2007 UTC

68 68
69sub create_object { 69sub create_object {
70 my ($name, $map, $x, $y, $cb, @a) = @_; 70 my ($name, $map, $x, $y, $cb, @a) = @_;
71 my $o = cf::object::new $name; 71 my $o = cf::object::new $name;
72 my $r = $cb->($o, @a); 72 my $r = $cb->($o, @a);
73 $map->insert_object ($o, $x, $y); 73 $map->insert ($o, $x, $y);
74 $r 74 $r
75} 75}
76 76
77# this handler notifies the player of new mail 77# this handler notifies the player of new mail
78cf::player->attach ( 78cf::player->attach (
230 230
231 my $cnt; 231 my $cnt;
232 for ($who->inv) { 232 for ($who->inv) {
233 if ($_->name () =~ /^(bag|package|carton) T: \Q$arguments\E F: (\S+)$/) { 233 if ($_->name () =~ /^(bag|package|carton) T: \Q$arguments\E F: (\S+)$/) {
234 $_->name ("$1 F: $2 T: $arguments"); 234 $_->name ("$1 F: $2 T: $arguments");
235 $_->teleport ($storage, 2, 2); 235 $storage->insert ($_, 2, 2);
236 $who->esrv_del_item ($_->count);
236 $cnt++; 237 $cnt++;
237 } 238 }
238 } 239 }
239 240
240 if ($cnt) { 241 if ($cnt) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines