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.5 by root, Mon Jan 1 16:00:10 2007 UTC vs.
Revision 1.9 by root, Sun Jan 14 19:55:37 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->nuke; 110 cf::async {
111 $ob->goto (@savebed);
112 112
113 $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES); 113 $map->nuke;
114 114
115 $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES);
116
115 $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");
116 $ob->message ("You have a headache.\n"); 118 $ob->message ("You have a headache.\n");
117 $ob->message ("Maybe you should have a drink.\n"); 119 $ob->message ("Maybe you should have a drink.\n");
120 };
118 121
119 cf::override; 122 cf::override;
120 }, 123 },
121; 124;
122 125

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines