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.1 by pippijn, Sun May 7 07:54:15 2006 UTC vs.
Revision 1.3 by pippijn, Sun May 7 08:00:46 2006 UTC

4 my ($who, $msg) = @_; 4 my ($who, $msg) = @_;
5 5
6 if ($msg) { 6 if ($msg) {
7 my $name = $who->name; 7 my $name = $who->name;
8 8
9 my $player = cf::player::first; 9 for my $player (cf::player::list) {
10 while ($player) {
11 unless ($player->ob->{ext_ignore_shout}) { 10 unless ($player->ob->{ext_ignore_shout}) {
12 $player->ob->message ("$name chats: $msg", cf::NDI_BLUE); 11 $player->ob->message ("$name chats: $msg", cf::NDI_BLUE);
13 } 12 }
14 $player = cf::player::next $player;
15 } 13 }
16 } else { 14 } else {
17 $who->message ("Chat what?", cf::NDI_UNIQUE); 15 $who->message ("Chat what?", cf::NDI_UNIQUE);
18 } 16 }
19}; 17};
23 my ($who, $msg) = @_; 21 my ($who, $msg) = @_;
24 22
25 if ($msg) { 23 if ($msg) {
26 my $name = $who->name; 24 my $name = $who->name;
27 25
28 my $player = cf::player::first; 26 for my $player (cf::player::list) {
29 while ($player) {
30 unless ($player->ob->{ext_ignore_shout}) { 27 unless ($player->ob->{ext_ignore_shout}) {
31 $player->ob->message ("$name shouts: $msg", cf::NDI_RED); 28 $player->ob->message ("$name shouts: $msg", cf::NDI_RED);
32 } 29 }
33 $player = cf::player::next $player;
34 } 30 }
35 } else { 31 } else {
36 $who->message ("Shout what?", cf::NDI_UNIQUE); 32 $who->message ("Shout what?", cf::NDI_UNIQUE);
37 } 33 }
38 34

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines