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.44 by root, Mon Apr 23 19:10:16 2007 UTC vs.
Revision 1.45 by root, Tue Apr 24 00:42:02 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 186
187 } elsif ($k eq "excmd") { 187 } elsif ($k eq "excmd") {
188 # we support it 188 # we support it
189 189
190 } else { 190 } else {
191 # other commands: 191 # other commands:
192 # sexp: no idea, probably for oudated servers 192 # sexp: no idea, probably for oudated servers
193 # tick: more stupidity, server should sned a tick per tick 193 # tick: more stupidity, server should send a tick per tick
194 194
195 $setup{$k} = "FALSE"; 195 $setup{$k} = "FALSE";
196 } 196 }
197 } 197 }
198 198
431 } 431 }
432 432
433 $ob->set_animation (2); 433 $ob->set_animation (2);
434 $ob->add_statbonus; 434 $ob->add_statbonus;
435 435
436 $ns->send_drawinfo ($ob->msg, cf::NDI_BLUE); 436 while () {
437 $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/\b\n\b/ /g;
440 $ns->send_msg (cf::NDI_BLUE, "chargen-race-description", $msg);
441
442 my $res = query $ns, cf::CS_QUERY_SINGLECHAR,
438 "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";
439 444
440 $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
441 delete $pl->{deny_save};#d# too early 452 delete $pl->{deny_save};
442 453
443 last; 454 last;
444 } 455 }
445 }); 456 });
446} 457}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines