Revision: | 1.1 |
Committed: | Fri Dec 15 19:29:18 2006 UTC (17 years, 6 months ago) by root |
Branch: | MAIN |
CVS Tags: | rel-2_4, rel-2_5, rel-2_2, rel-2_3, rel-2_0, rel-2_1, rel-2_52, rel-2_32, rel-2_43, rel-2_42, rel-2_41 |
Log Message: | moved perl extensions into server codebase, where they belong |
# | Content |
---|---|
1 | #! perl |
2 | |
3 | # implement a 'suicide' command |
4 | |
5 | cf::register_command suicide => sub { |
6 | my ($who, $args) = @_; |
7 | |
8 | $who->message ("You see no way to escape. Real heroes would rather starve to death than to give up, but you realise you are no hero.."); |
9 | $who->contr->killer ("foolery"); |
10 | $who->kill_player; |
11 | }; |
12 | |
13 | |
14 |