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.7 by root, Fri Jan 5 01:06:27 2007 UTC vs.
Revision 1.13 by root, Fri Jan 2 16:41:32 2009 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
72 72
73 $ob->message ("\n"); 73 $ob->message ("\n");
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
78 $pl->savebed ("/nimbus", 24, 12);
77 } 79 }
78
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 (@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