Welcome to the Builder Academy

Question Brew Skill unable to select different spells

More
09 Sep 2022 00:09 #10156 by Nero
Thanks for the tip it looks like the issue was how it was parsing the spell name
here is what I did to fix it:
Code:
ACMD(do_brew) {         struct obj_data *container;         struct obj_data *obj, *next_obj;         char bottle_name[MAX_STRING_LENGTH];         char spell_name[MAX_STRING_LENGTH];         char buf[MAX_INPUT_LENGTH];         char *temp1, *temp2;         int potion, found = FALSE;         temp1 = one_argument(argument, bottle_name);          /* sanity check */     if (temp1) {         temp2 = get_spell_name(temp1);         if (temp2)         strcpy(spell_name, temp2);     } else {         bottle_name[0] = '\0';         spell_name[0] = '\0';     }

Please Log in or Create an account to join the conversation.

Time to create page: 0.166 seconds