ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/chat.ext
(Generate patch)

Comparing deliantra/maps/perl/chat.ext (file contents):
Revision 1.15 by pippijn, Mon May 8 05:01:50 2006 UTC vs.
Revision 1.16 by pippijn, Mon May 8 17:27:42 2006 UTC

45 } else { 45 } else {
46 $who->message ("Your verbose level is ".$player->listening.".", cf::NDI_UNIQUE); 46 $who->message ("Your verbose level is ".$player->listening.".", cf::NDI_UNIQUE);
47 } 47 }
48}; 48};
49 49
50cf::register_command say => 0, sub { 50#cf::register_command say => 0, sub {
51 my ($who, $msg) = @_; 51# my ($who, $msg) = @_;
52 52#
53 if ($msg) { 53# if ($msg) {
54 my $name = $who->name; 54# my $name = $who->name;
55 $_->ob->message ("$name says: $msg", cf::NDI_WHITE) 55# $_->ob->message ("$name says: $msg", cf::NDI_WHITE)
56 for grep $who->on_same_map_as ($_->ob), cf::player::list; 56# for grep $who->on_same_map_as ($_->ob), cf::player::list;
57 } else { 57# } else {
58 $who->message ("What do you want to say?", cf::NDI_UNIQUE); 58# $who->message ("What do you want to say?", cf::NDI_UNIQUE);
59 } 59# }
60}; 60#};
61 61
62cf::register_command chat => 0, sub { 62cf::register_command chat => 0, sub {
63 my ($who, $msg) = @_; 63 my ($who, $msg) = @_;
64 64
65 if ($msg) { 65 if ($msg) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines