ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/maps/perl/dmcommands.ext
Revision: 1.2
Committed: Sun Oct 1 23:57:54 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.1: +2 -0 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #! perl
2    
3     # wizard commands
4    
5     cf::register_command goto => 0, sub {
6     my ($ob, $arg) = @_;
7    
8 root 1.2 return unless $ob->flag (cf::FLAG_WIZ) || $cf::CFG{nopriv_goto};
9    
10 root 1.1 my $portal = cf::object::new "exit";
11    
12     $portal->slaying ($arg);
13     $portal->stats->hp (0); #todo#improve
14     $portal->stats->sp (0);
15    
16     $portal->apply ($ob);
17    
18     $portal->free;
19     };
20