Re: CON_Q...

From: Del (caminturn@earthlink.net)
Date: 07/04/00


If you check in interpreter.c you will find a part that confirms the
name of new characters.
Follow it along and duplicate it where you need to for races.


        sprintf(buf, "Did I get that right, %s (Y/N)? ", tmp_name);
        SEND_TO_Q(buf, d);
        STATE(d) = CON_NAME_CNFRM;


Torgny Bjers wrote:
>
> Hello,
>
>   Server: CircleMUD 3.0, bpl 17
>       OS: Windows NT 4.0 Server
> Hardware: Dell Precision 210 Workstation, Dual Processor
> Compiler: Microsoft Developer Studio 97, C++ 5.0
>
> A little question for you if you have the time...
>
>    I have implemented races and classes, and I have quite a lot of classes
> as well as races and I wanted to add a little menu function in
> <interpreter.c> that outputs a text-string (one unique string for every
> race/class) and puts up a <y/n> prompt to let the user confirm if he/she
> wants the chosen class, if not, print the race/class menu again.


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/10/01 PDT