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.6 by root, Mon Jan 1 17:50:26 2007 UTC vs.
Revision 1.12 by root, Wed Sep 19 21:56:30 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
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->nuke; 110 cf::async {
111 $Coro::current->{desc} = "nimbus exit";
112 $ob->goto (@savebed);
112 113
113 $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES); 114 $map->nuke;
114 115
116 #$pl->play_sound (cf::sound::find "player_dies");
117
115 $ob->message ("You feel as if you woke up from a dream.\n"); 118 $ob->message ("You feel as if you woke up from a dream.\n"
116 $ob->message ("You have a headache.\n"); 119 . "You have a headache.\n"
117 $ob->message ("Maybe you should have a drink.\n"); 120 . "Maybe you should have a drink.\n");
121 };
118 122
119 cf::override; 123 cf::override;
120 }, 124 },
121; 125;
122 126

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines