--- deliantra/server/ext/nimbus.ext 2007/01/01 17:50:26 1.6 +++ deliantra/server/ext/nimbus.ext 2009/01/02 16:41:32 1.13 @@ -1,4 +1,4 @@ -#! perl +#! perl # mandatory # handle the nimbus map and other stuff @@ -74,9 +74,9 @@ $ob->message ("You start to feel dizzy.\n"); $ob->message ("The world around you blurs.\n"); $ob->message ("\n"); - } - $pl->savebed ("/nimbus", 24, 12); + $pl->savebed ("/nimbus", 24, 12); + } }, ); @@ -106,15 +106,19 @@ my $map = $ob->map; $pl->savebed (@savebed); - $ob->goto_map (@savebed); - - $map->nuke; - - $pl->play_sound_player_only (cf::SOUND_PLAYER_DIES); - $ob->message ("You feel as if you woke up from a dream.\n"); - $ob->message ("You have a headache.\n"); - $ob->message ("Maybe you should have a drink.\n"); + cf::async { + $Coro::current->{desc} = "nimbus exit"; + $ob->goto (@savebed); + + $map->nuke; + + #$pl->play_sound (cf::sound::find "player_dies"); + + $ob->message ("You feel as if you woke up from a dream.\n" + . "You have a headache.\n" + . "Maybe you should have a drink.\n"); + }; cf::override; },