--- deliantra/server/ext/dmcommands.ext 2007/03/14 15:44:47 1.19 +++ deliantra/server/ext/dmcommands.ext 2007/06/11 21:38:13 1.22 @@ -1,4 +1,4 @@ -#! perl # MANDATORY +#! perl # mandatory # wizard commands @@ -93,7 +93,7 @@ return unless $ob->may ("command_wizlook"); - $ob->clear_los; + $ob->contr->clear_los; $ob->reply (undef, "You can temporarily see through walls."); @@ -120,6 +120,17 @@ 1 }; + +cf::register_command observe => sub { + my ($ob, $arg) = @_; + + return unless $ob->may ("command_observe"); + + my $other = cf::player::find_active $arg; + $ob->contr->set_observe ($other ? $other->ob : undef); + + 1 +}; for my $command (qw(summon arrest banish)) { my $method = "command_$command";