ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/login.ext
(Generate patch)

Comparing deliantra/server/ext/login.ext (file contents):
Revision 1.83 by root, Wed Apr 23 06:16:21 2008 UTC vs.
Revision 1.86 by root, Mon May 5 22:38:47 2008 UTC

103 cf::NDI_RED 103 cf::NDI_RED
104 ); 104 );
105 # kill them. 105 # kill them.
106 # reminds me of the famous badness 10000 syndrome... 106 # reminds me of the famous badness 10000 syndrome...
107 $ob->stats->hp (-10000); #] if they survive this they deserved to live 107 $ob->stats->hp (-10000); #] if they survive this they deserved to live
108 $pl->killer ("a cave-in"); 108 my $killer = cf::arch::get "killer_login"; $pl->killer ($killer); $killer->destroy;
109 } else { 109 } else {
110 ($map, $x, $y) = $pl->savebed; 110 ($map, $x, $y) = $pl->savebed;
111 111
112 $ob->message ( 112 $ob->message (
113 "You didn't use a bed to reality to leave this realm, leaving your body in great danger. " 113 "You didn't use a bed to reality to leave this realm, leaving your body in great danger. "
398 398
399 $pl->chargen_race_next; 399 $pl->chargen_race_next;
400 Coro::Timer::sleep 0.2; 400 Coro::Timer::sleep 0.2;
401 } 401 }
402 402
403 # create the playerdir, if necessary, as chargen_race_done did it before
404 # presumably because of unique maps
405 aio_mkdir playerdir $pl, 0770;
403 $pl->chargen_race_done; 406 $pl->chargen_race_done;
404 407
405 while () { 408 while () {
406 my $res = query $ns, cf::CS_QUERY_SINGLECHAR, 409 my $res = query $ns, cf::CS_QUERY_SINGLECHAR,
407 "Now choose a gender.\nPress 'f' to become female, and 'm' to become male.\n"; 410 "Now choose a gender.\nPress 'f' to become female, and 'm' to become male.\n";
465 468
466 # update respawn position 469 # update respawn position
467 $pl->savebed ($bed->map->path, $bed->x, $bed->y); 470 $pl->savebed ($bed->map->path, $bed->x, $bed->y);
468 cf::async { $pl->save }; 471 cf::async { $pl->save };
469 472
470 $pl->killer ("left"); 473 my $killer = cf::arch::get "killer_logout"; $pl->killer ($killer); $killer->destroy;
471 $ob->check_score; 474 $ob->check_score;
472 475
473 $ob->reply (undef, "In the future, you will wake up here when you die."); 476 $ob->reply (undef, "In the future, you will wake up here when you die.");
474 477
475 $pl->ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub { 478 $pl->ns->query (cf::CS_QUERY_SINGLECHAR, "Do you want to continue playing (y/n)?", sub {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines