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.13 by root, Tue Apr 22 02:46:18 2008 UTC vs.
Revision 1.15 by root, Mon Sep 22 01:33:09 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
251 253
252 } else { 254 } else {
253 $who->reply ($npc, 255 $who->reply ($npc,
254 sprintf "How can I help you?\n" 256 sprintf "How can I help you?\n"
255 . "Here is a quick list of commands I understand:\n\n" 257 . "Here is a quick list of commands I understand:\n\n"
256 . "- pen (%s platinum)\n" 258 . " - pen (%s platinum)\n"
257 . "- literacy (%s platinum)\n" 259 . " - literacy (%s platinum)\n"
258 . "- mailscroll <friend> (%s platinum)\n" 260 . " - mailscroll <friend> (%s platinum)\n"
259 . "- bag <friend> (%s platinum)\n" 261 . " - bag <friend> (%s platinum)\n"
260 . "- package <friend> (%s platinum)\n" 262 . " - package <friend> (%s platinum)\n"
261 . "- carton <friend> (%s platinum)\n" 263 . " - carton <friend> (%s platinum)\n"
262 . "- send <friend> (send bags/packages/cartons)\n" 264 . " - send <friend> (send bags/packages/cartons)\n"
263 . "- receive (to receive packages for you)\n" 265 . " - receive (to receive packages for you)\n"
264 . ($who->flag (cf::FLAG_WIZ) ? "- mailwarning <player>" : ""), 266 . ($who->flag (cf::FLAG_WIZ) ? " - mailwarning <player>\n" : ""),
265 40, 1000, 1, 1, 5, 10 267 40, 1000, 1, 1, 5, 10
266 ); 268 );
267 } 269 }
268 1 270 1
269}; 271};
293} 295}
294 296
295sub send_mail { 297sub send_mail {
296 my ($type, $toname, $fromname, $message) = @_; 298 my ($type, $toname, $fromname, $message) = @_;
297 my $time = strftime ("%a, %d %b %Y %H:%M:%S CEST", localtime (time)); 299 my $time = strftime ("%a, %d %b %Y %H:%M:%S CEST", localtime (time));
298 my $msg = "From: $fromname\nTo: $toname\nDate: $time\n\n$message\n"; 300 my $msg = "From: $fromname\rTo: $toname\rDate: $time\n\n$message\n";
299 store_mail ($type, $toname, $fromname, $msg); 301 store_mail ($type, $toname, $fromname, $msg);
300} 302}
301 303
3021; 3041;
305

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines