CON_QRACE & CON_QCLASS

From: Nick B (nick@connecti.com)
Date: 07/23/96


The error for this is that the line with CON_QCLASS has a duplicate case
value, and that the line with CON_QRACE is the previously value. I don't see
anything wrong with it(when I find out I'll realize how stupid I was,
but...), could someone tell me?


(I'm adding some code above and below the target lines of code):

        default:      
        SEND_TO_Q("That is not a sex..\r\n"
        "What IS your sex? ", d);      
        return;      
        break;    
        }    

        

        SEND_TO_Q(race_menu, d);    
        SEND_TO_Q("\r\nRace: ", d);    
        STATE(d) = CON_QRACE; 
        break;  
        
  

  case CON_QRACE:    
  load_result = parse_race(*arg);
    if (load_result == RACE_UNDEFINED) {
      SEND_TO_Q("\r\nThat's not a race.\r\nRace: ", d);
      return;
    } else
      GET_RACE(d->character) = load_result;




        if(GET_RACE(ch) == RACE_HUMAN)
          SEND_TO_Q(human_class_menu, d);    
        if(GET_RACE(ch) == RACE_WOOKIE  
          SEND_TO_Q(wookie_class_menu, d);
          SEND_TO_Q("\r\nClass: ", d);    
          STATE(d) = CON_QCLASS; 
          break;  
        
  case CON_QCLASS:    
  load_result = parse_class(*arg);
    if (load_result == CLASS_UNDEFINED) {
      SEND_TO_Q("\r\nThat's not a class.\r\nClass: ", d);
      return;
    } else
      GET_CLASS(d->character) = load_result;

    if (GET_PFILEPOS(d->character) < 0)
      GET_PFILEPOS(d->character) = create_entry(GET_NAME(d->character));
    init_char(d->character);
    save_char(d->character, NOWHERE);
    SEND_TO_Q(motd, d);
    SEND_TO_Q("\r\n\n*** PRESS RETURN: ", d);
    STATE(d) = CON_RMOTD;

Nicholas T. Becker

nick@connecti.com



This archive was generated by hypermail 2b30 : 12/07/00 PST