--- deliantra/server/ext/commands.ext 2007/06/24 01:09:27 1.48 +++ deliantra/server/ext/commands.ext 2007/07/03 00:54:44 1.51 @@ -187,7 +187,7 @@ cf::register_command mapinfo => sub { my ($ob) = @_; - my $map = $ob->map + my $map = $ob->contr->observe->map or return; $ob->reply (undef, (sprintf "%s (%s) %s", $map->name, $map->path, $ob->region->longname)); $ob->reply (undef, (sprintf "players: %d difficulty: %d size: %d start: %dx%d timeout: %d", @@ -201,7 +201,7 @@ cf::register_command whereami => sub { my ($ob) = @_; - my $reg = $ob->region; + my $reg = $ob->contr->observe->region; $ob->reply (undef, (sprintf "You are %s.\n%s", $reg->longname, $reg->msg)); 1 @@ -245,6 +245,14 @@ 1 }; + +cf::register_command hintmode => sub { + my ($ob, $arg) = @_; + + _set_mode "hintmode", $ob, $arg, hintmode => qw(show mark hide); + + 1 +}; cf::register_command afk => sub { my ($ob, $arg) = @_;