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.9 by root, Wed Sep 19 21:56:30 2007 UTC vs.
Revision 1.10 by root, Thu Sep 27 01:21:26 2007 UTC

192 my $storage = cf::map::find ("/planes/IPO_storage"); 192 my $storage = cf::map::find ("/planes/IPO_storage");
193 unless ($storage) { 193 unless ($storage) {
194 $who->reply ($npc, "Sorry, our package delivery service is currently in strike. Please come back later."); 194 $who->reply ($npc, "Sorry, our package delivery service is currently in strike. Please come back later.");
195 return 1; 195 return 1;
196 } 196 }
197 $storage->load;
197 198
198 my $plname = $who->name; 199 my $plname = $who->name;
199 my $cnt; 200 my $cnt;
200 for ($storage->at (2, 2)) { 201 for ($storage->at (2, 2)) {
201 if ($_->name () =~ /^\S+ F: \S+ T: \Q$plname\E$/) { 202 if ($_->name () =~ /^\S+ F: \S+ T: \Q$plname\E$/) {
223 my $storage = cf::map::find ("/planes/IPO_storage"); 224 my $storage = cf::map::find ("/planes/IPO_storage");
224 unless ($storage) { 225 unless ($storage) {
225 $who->reply ($npc, "Sorry, our package delivery service is currently in strike. Please come back later."); 226 $who->reply ($npc, "Sorry, our package delivery service is currently in strike. Please come back later.");
226 return 1; 227 return 1;
227 } 228 }
229 $storage->load;
228 230
229 my $cnt; 231 my $cnt;
230 for ($who->inv) { 232 for ($who->inv) {
231 if ($_->name () =~ /^(bag|package|carton) T: \Q$arguments\E F: (\S+)$/) { 233 if ($_->name () =~ /^(bag|package|carton) T: \Q$arguments\E F: (\S+)$/) {
232 $_->name ("$1 F: $2 T: $arguments"); 234 $_->name ("$1 F: $2 T: $arguments");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines