--- deliantra/server/ext/dmcommands.ext 2006/12/15 19:29:18 1.1 +++ deliantra/server/ext/dmcommands.ext 2007/01/01 13:31:47 1.2 @@ -68,7 +68,36 @@ 1 }; -for my $command (qw(reset teleport summon arrest kick banish)) { +cf::register_command maps => sub { + my ($ob, $arg) = @_; + + no re 'eval'; $arg = qr<$arg>; + + my $format = "%2s %2s %-30.30s\n"; + + my $msg = sprintf $format, "Pl", "Fl", "Reset", "Name"; + + for (sort keys %cf::MAP) { + my $map = $cf::MAP{$_} + or next; + + $msg + } + + 1 +}; + +cf::register_command reset => sub { + my ($ob, $arg) = @_; + + return unless $ob->may ("command_reset"); + + $ob->reply (undef, "You can temporarily see through walls."); + + 1 +}; + +for my $command (qw(teleport summon arrest kick banish)) { my $method = "command_$command"; cf::register_command $command => sub {