> They already can use both skills/spells....just add a call to spell_level > in class.c for the spell and/or skill....eg: i believe that he was refering to the fact that you define whether a class has SPELLS or SKILLS in class.c..this only affects how things are shown on the practice list, but i guess that could be annoying..anyway..there is a macro SPLSKL(ch) that makes the word "spell" or "skill" depending on the class..you could change this macro to be something else..like: old: #define SPLSKL(ch) (prac_types[prac_params[(int)GET_CLASS(ch)]]) new: #define SPLSKL(spell) ((spell > MAX_SPELLS) ? "skill" : "spell") and just change the calls in spec_procs.c like so: old: if ((skill_num < 1) || (GET_LEVEL(ch) < skill_info[skill_num].class_level[(int) GET_CLASS(ch)])) { sprintf(buf, "You can not practice that %s here.\r\n", SPLSKL(ch)); new: if ((skill_num < 1) || (GET_LEVEL(ch) < skill_info[skill_num].class_level[(int)GET_CLASS(ch)])) { sprintf(buf, "You can not practice that %s here.\r\n", SPLSKL(skill_num)); hrm..mine isn't stock, but hopefully you'll get the idea.. siv +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/15/00 PST