ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/dmcommands.ext
(Generate patch)

Comparing deliantra/server/ext/dmcommands.ext (file contents):
Revision 1.1 by root, Fri Dec 15 19:29:18 2006 UTC vs.
Revision 1.2 by root, Mon Jan 1 13:31:47 2007 UTC

66 $ob->reply (undef, "You can temporarily see through walls."); 66 $ob->reply (undef, "You can temporarily see through walls.");
67 67
68 1 68 1
69}; 69};
70 70
71cf::register_command maps => sub {
72 my ($ob, $arg) = @_;
73
74 no re 'eval'; $arg = qr<$arg>;
75
76 my $format = "%2s %2s %-30.30s\n";
77
78 my $msg = sprintf $format, "Pl", "Fl", "Reset", "Name";
79
80 for (sort keys %cf::MAP) {
81 my $map = $cf::MAP{$_}
82 or next;
83
84 $msg
85 }
86
87 1
88};
89
90cf::register_command reset => sub {
91 my ($ob, $arg) = @_;
92
93 return unless $ob->may ("command_reset");
94
95 $ob->reply (undef, "You can temporarily see through walls.");
96
97 1
98};
99
71for my $command (qw(reset teleport summon arrest kick banish)) { 100for my $command (qw(teleport summon arrest kick banish)) {
72 my $method = "command_$command"; 101 my $method = "command_$command";
73 102
74 cf::register_command $command => sub { 103 cf::register_command $command => sub {
75 my ($ob, $arg) = @_; 104 my ($ob, $arg) = @_;
76 105

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines