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.18 by pippijn, Fri Mar 2 13:43:58 2007 UTC vs.
Revision 1.22 by root, Mon Jun 11 21:38:13 2007 UTC

1#! perl 1#! perl # mandatory
2 2
3# wizard commands 3# wizard commands
4 4
5cf::register_command shutdown => sub { 5cf::register_command shutdown => sub {
6 my ($ob, $arg) = @_; 6 my ($ob, $arg) = @_;
91cf::register_command wizlook => sub { 91cf::register_command wizlook => sub {
92 my ($ob, $arg) = @_; 92 my ($ob, $arg) = @_;
93 93
94 return unless $ob->may ("command_wizlook"); 94 return unless $ob->may ("command_wizlook");
95 95
96 $ob->clear_los; 96 $ob->contr->clear_los;
97 97
98 $ob->reply (undef, "You can temporarily see through walls."); 98 $ob->reply (undef, "You can temporarily see through walls.");
99 99
100 1 100 1
101}; 101};
119 }; 119 };
120 120
121 1 121 1
122}; 122};
123 123
124cf::register_command observe => sub {
125 my ($ob, $arg) = @_;
126
127 return unless $ob->may ("command_observe");
128
129 my $other = cf::player::find_active $arg;
130 $ob->contr->set_observe ($other ? $other->ob : undef);
131
132 1
133};
134
124for my $command (qw(summon arrest banish)) { 135for my $command (qw(summon arrest banish)) {
125 my $method = "command_$command"; 136 my $method = "command_$command";
126 137
127 cf::register_command $command => sub { 138 cf::register_command $command => sub {
128 my ($ob, $arg) = @_; 139 my ($ob, $arg) = @_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines