From: fantasia <eagle@virtual.zipnet.net>
Subject: parse_class()

This is my parse_class() to demonstrate how to limit classes to certain
races, you can throw in checks in parse_class() to limit classes by
attributes also.

int parse_class(struct char_data * ch, char arg)
{
  arg = LOWER(arg);

  switch (arg) {
  case 'm':
    if (GET_RACE(ch) != RACE_DWARF) {
      return CLASS_MAGIC_USER;
    } else {
      return CLASS_UNDEFINED;
    }
    break;
  case 'c':
    if (GET_RACE(ch) != RACE_DWARF) {
      return CLASS_MAGIC_USER;
    } else {
      return CLASS_UNDEFINED;
    }
    return CLASS_CLERIC;
    break;
  case 'w':
    return CLASS_WARRIOR;
    break;
  case 't':
    return CLASS_THIEF;
    break;
  default:
    return CLASS_UNDEFINED;
    break;
  }
}
