ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/chat.ext
Revision: 1.4
Committed: Sun May 7 08:05:26 2006 UTC (18 years ago) by root
Branch: MAIN
Changes since 1.3: +6 -10 lines
Log Message:
minor changes

File Contents

# Content
1 #! perl
2 cf::register_command chat => 0, sub
3 {
4 my ($who, $msg) = @_;
5
6 if ($msg) {
7 my $name = $who->name;
8
9 $_->ob->message ("$name chats: $msg", cf::NDI_BLUE)
10 for grep !$player->ob->{ext_ignore_shout}, cf::player::list;
11
12 } else {
13 $who->message ("Chat what?", cf::NDI_UNIQUE);
14 }
15 };
16
17 cf::register_command shout => 0, sub
18 {
19 my ($who, $msg) = @_;
20
21 if ($msg) {
22 my $name = $who->name;
23
24 $_->ob->message ("$name shouts: $msg", cf::NDI_RED)
25 for grep !$player->ob->{ext_ignore_shout}, cf::player::list;
26
27 } else {
28 $who->message ("Shout what?", cf::NDI_UNIQUE);
29 }
30
31 };