ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/schmorplog.ext
Revision: 1.7
Committed: Sun Apr 2 15:07:19 2006 UTC (18 years, 1 month ago) by root
Branch: MAIN
Changes since 1.6: +4 -4 lines
Log Message:
login/logout get passed a playe,r not pl->ob... maybe fix this because its needlessly confusing?

File Contents

# Content
1 #! perl
2
3 sub on_login {
4 my ($pl, $host) = @_;
5
6 cf::LOG cf::llevDebug, sprintf "QBERT %s logged in\n",
7 $pl->ob->name, $host;
8 }
9
10 sub on_logout {
11 my ($pl, $host) = @_;
12
13 cf::LOG cf::llevDebug, sprintf "QBERT %s left\n",
14 $pl->ob->name, $host;
15 }
16
17 sub on_shout {
18 my ($ob, $msg) = @_;
19
20 cf::LOG cf::llevDebug, sprintf "QBERT [%s] %s\n",
21 $ob->name, $msg;
22 }
23
24 sub on_player_death {
25 my ($ob) = @_;
26
27 cf::LOG cf::llevDebug, sprintf "QBERT %s died a quick and not very horrible death\n",
28 $ob->name;
29 }