On Sun, 05 November 2000, RJ Bean wrote:
> I've been working on making it so that the classes available to a
> character upon creation is dependent on which race the character chooses...
<snip>
> Made a switch statement in CON_QCLASS in nanny() in interpreter.c
>
> switch (GET_RACE(d->character))
> {
> case RACE_HUMAN:
> SEND_TO_Q("\r\nClasses available to humans: ", d);
> SEND_TO_Q(class_menu_human, d);
> if ((GET_CLASS(d->character) = parse_class_human(*arg)) ==
> CLASS_UNDEFINED) {
> SEND_TO_Q("\r\nThat's not a class.\r\nClass: ", d);
> return;
> }
> break;
> //the other case statements for the other races-
<snip>
This should be changed to:
switch (GET_RACE(d->character))
{
case RACE_HUMAN:
SEND_TO_Q("\r\nClasses available to humans: ", d);
SEND_TO_Q(class_menu_human, d);
break;
/* Other case statements*/
}
Then in CON_QCLASS, add
switch (GET_RACE(d->character)){
case RACE_HUMAN:
if ((GET_CLASS(d->character) = \
parse_class_human(*arg)) == CLASS_UNDEFINED){
SEND_TO_Q("That class is not available.", d);
return;
}
break;
/* Other Cases */
}
Blaize Imperator
->(Woohoo! My new autoquest system works!)<-
Visit http://www.oceanfree.net to get your free e-mail account and use our unique Irish Internet directory
+------------------------------------------------------------+
| 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/11/01 PDT