ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/nimbus.ext
(Generate patch)

Comparing deliantra/server/ext/nimbus.ext (file contents):
Revision 1.4 by root, Mon Jan 1 15:32:40 2007 UTC vs.
Revision 1.10 by root, Mon Jun 11 21:38:13 2007 UTC

1#! perl 1#! perl # mandatory
2 2
3# handle the nimbus map and other stuff 3# handle the nimbus map and other stuff
4 4
5my @STATS = qw( 5my @STATS = qw(
6 Str Dex Con Wis Cha Int Pow 6 Str Dex Con Wis Cha Int Pow
74 $ob->message ("You start to feel dizzy.\n"); 74 $ob->message ("You start to feel dizzy.\n");
75 $ob->message ("The world around you blurs.\n"); 75 $ob->message ("The world around you blurs.\n");
76 $ob->message ("\n"); 76 $ob->message ("\n");
77 } 77 }
78 78
79 $pl->savebed ("/schmorp/nimbus", 24, 12); 79 $pl->savebed ("/nimbus", 24, 12);
80 }, 80 },
81); 81);
82 82
83cf::object::attachment nimbus_exit => 83cf::object::attachment nimbus_exit =>
84 on_trigger => sub { 84 on_trigger => sub {
104 @savebed = ("/scorn/taverns/inn", 10, 5); 104 @savebed = ("/scorn/taverns/inn", 10, 5);
105 } 105 }
106 106
107 my $map = $ob->map; 107 my $map = $ob->map;
108 $pl->savebed (@savebed); 108 $pl->savebed (@savebed);
109 $ob->goto_map (@savebed);
110 109
111 $map->{deny_save} = 1; 110 cf::async {
112 $map->unlink_save; 111 $ob->goto (@savebed);
113 $map->rename ("{nimbus}");
114 $map->reset;
115 112
116 $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES); 113 $map->nuke;
117 114
115 $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES);
116
118 $ob->message ("You feel as if you woke up from a dream.\n"); 117 $ob->message ("You feel as if you woke up from a dream.\n");
119 $ob->message ("You have a headache.\n"); 118 $ob->message ("You have a headache.\n");
120 $ob->message ("Maybe you should have a drink.\n"); 119 $ob->message ("Maybe you should have a drink.\n");
120 };
121 121
122 cf::override; 122 cf::override;
123 }, 123 },
124; 124;
125 125

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines