--- deliantra/server/ext/nimbus.ext 2007/01/01 15:32:40 1.4 +++ deliantra/server/ext/nimbus.ext 2007/08/20 22:21:48 1.11 @@ -1,4 +1,4 @@ -#! perl +#! perl # mandatory # handle the nimbus map and other stuff @@ -76,7 +76,7 @@ $ob->message ("\n"); } - $pl->savebed ("/schmorp/nimbus", 24, 12); + $pl->savebed ("/nimbus", 24, 12); }, ); @@ -106,18 +106,18 @@ my $map = $ob->map; $pl->savebed (@savebed); - $ob->goto_map (@savebed); - $map->{deny_save} = 1; - $map->unlink_save; - $map->rename ("{nimbus}"); - $map->reset; - - $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 { + $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; },