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.43 by root, Mon Apr 23 18:09:57 2007 UTC vs.
Revision 1.46 by root, Tue Apr 24 11:36:39 2007 UTC

180 180
181 } elsif ($k eq "fxix") { 181 } elsif ($k eq "fxix") {
182 $ns->fxix ($v); 182 $ns->fxix ($v);
183 183
184 } elsif ($k eq "msg") { 184 } elsif ($k eq "msg") {
185 $ns->{setup}{msg} = $v; 185 $ns->can_msg ($v);
186
187 } elsif ($k eq "excmd") {
188 # we support it
186 189
187 } else { 190 } else {
188 # other commands: 191 # other commands:
189 # sexp: no idea, probably for oudated servers 192 # sexp: no idea, probably for oudated servers
190 # tick: more stupidity, server should sned a tick per tick 193 # tick: more stupidity, server should send a tick per tick
191 194
192 $setup{$k} = "FALSE"; 195 $setup{$k} = "FALSE";
193 } 196 }
194 } 197 }
195 198
428 } 431 }
429 432
430 $ob->set_animation (2); 433 $ob->set_animation (2);
431 $ob->add_statbonus; 434 $ob->add_statbonus;
432 435
433 $ns->send_drawinfo ($ob->msg, cf::NDI_BLUE); 436 while () {
434 $ns->send_packet (sprintf "query %d %s", cf::CS_QUERY_SINGLECHAR, 437 $ns->send_msg (-1, "chargen-race-title", ucfirst $pl->title);
438 my $msg = $ob->msg;
439 $msg =~ s/(?<=\S)\n(?=\S)/ /g;
440 $ns->send_msg (cf::NDI_BLUE, "chargen-race-description", $msg);
441
442 my $res = query $ns, cf::CS_QUERY_SINGLECHAR,
435 "Now choose a character.\nPress any key to change outlook.\nPress `d' when you're pleased.\n"); 443 "Now choose a character.\nPress any key to change outlook.\nPress `d' when you're pleased.\n";
436 444
437 $ns->state (cf::ST_CHANGE_CLASS); 445 last if $res =~ /[dD]/;
446
447 $pl->chargen_race_next;
448 }
449
450 $pl->chargen_race_done;
451
438 delete $pl->{deny_save};#d# too early 452 delete $pl->{deny_save};
439 453
440 last; 454 last;
441 } 455 }
442 }); 456 });
443} 457}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines