… | |
… | |
253 | |
253 | |
254 | } else { |
254 | } else { |
255 | $who->reply ($npc, |
255 | $who->reply ($npc, |
256 | sprintf "How can I help you?\n" |
256 | sprintf "How can I help you?\n" |
257 | . "Here is a quick list of commands I understand:\n\n" |
257 | . "Here is a quick list of commands I understand:\n\n" |
258 | . "- pen (%s platinum)\n" |
258 | . " - pen (%s platinum)\n" |
259 | . "- literacy (%s platinum)\n" |
259 | . " - literacy (%s platinum)\n" |
260 | . "- mailscroll <friend> (%s platinum)\n" |
260 | . " - mailscroll <friend> (%s platinum)\n" |
261 | . "- bag <friend> (%s platinum)\n" |
261 | . " - bag <friend> (%s platinum)\n" |
262 | . "- package <friend> (%s platinum)\n" |
262 | . " - package <friend> (%s platinum)\n" |
263 | . "- carton <friend> (%s platinum)\n" |
263 | . " - carton <friend> (%s platinum)\n" |
264 | . "- send <friend> (send bags/packages/cartons)\n" |
264 | . " - send <friend> (send bags/packages/cartons)\n" |
265 | . "- receive (to receive packages for you)\n" |
265 | . " - receive (to receive packages for you)\n" |
266 | . ($who->flag (cf::FLAG_WIZ) ? "- mailwarning <player>" : ""), |
266 | . ($who->flag (cf::FLAG_WIZ) ? " - mailwarning <player>\n" : ""), |
267 | 40, 1000, 1, 1, 5, 10 |
267 | 40, 1000, 1, 1, 5, 10 |
268 | ); |
268 | ); |
269 | } |
269 | } |
270 | 1 |
270 | 1 |
271 | }; |
271 | }; |
… | |
… | |
295 | } |
295 | } |
296 | |
296 | |
297 | sub send_mail { |
297 | sub send_mail { |
298 | my ($type, $toname, $fromname, $message) = @_; |
298 | my ($type, $toname, $fromname, $message) = @_; |
299 | 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)); |
300 | 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"; |
301 | store_mail ($type, $toname, $fromname, $msg); |
301 | store_mail ($type, $toname, $fromname, $msg); |
302 | } |
302 | } |
303 | |
303 | |
304 | 1; |
304 | 1; |
|
|
305 | |