ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/schmorplog.ext
Revision: 1.13
Committed: Fri Aug 25 15:24:54 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.12: +5 -5 lines
Log Message:
rename ext:: to safe:: and cf::ext:: to ext::

File Contents

# Content
1 #! perl
2
3 cf::attach_to_players
4 on_login => sub {
5 my ($pl) = @_;
6 $pl->ob->set_ob_key_value (schmorplog_last_login => time);
7 ext::schmorp_irc::do_notice (sprintf "%s logged in", $pl->ob->name);
8 },
9 on_logout => sub {
10 my ($pl) = @_;
11 $pl->ob->set_ob_key_value (schmorplog_last_logout => time);
12 ext::schmorp_irc::do_notice (sprintf "%s left", $pl->ob->name);
13 },
14 on_birth => sub {
15 my ($pl) = @_;
16 ext::schmorp_irc::do_notice (sprintf "%s was just born", $pl->ob->name);
17 $pl->ob->set_ob_key_value (schmorplog_birthdate => time);
18 },
19 on_quit => sub {
20 my ($pl) = @_;
21 ext::schmorp_irc::do_notice (sprintf "%s quit the game", $pl->ob->name);
22 },
23 on_death => sub {
24 my ($pl) = @_;
25 ext::schmorp_irc::do_notice (sprintf "%s was killed by %s", $pl->ob->name, $pl->killer);
26 },
27 on_load => sub {
28 my ($pl, $path) = @_;
29 $pl->ob->set_ob_key_value (schmorplog_last_load => time);
30 },
31 on_save => sub {
32 my ($pl, $path) = @_;
33 $pl->ob->set_ob_key_value (schmorplog_last_save => time);
34 },
35 ;