>Ok I've made multi-classing and as far as I can tell it works. but... in >list_skills I have added some code and now gods see 3 of every skill!! how >could I change this so we only see one and if two classes have the same >skills you wont see it more than once?? > >Heres the area of code: > if (GET_LEVEL(ch) >= spell_info[i].min_level[(int) GET_CLASS(ch)]) { > sprintf(buf, "%-20s %s\r\n", spells[i], how_good(GET_SKILL(ch, i))); > strcat(buf2, buf); > } Well, you could do it this way: Before these lines, add: if (GET_LEVEL(ch) < LVL_IMMORT) { if (GET_DUAL_LEVEL(ch) >= spell_info[i].min_level[(int) GET_DUAL(ch)]) { sprintf(buf, "%-20s %s\r\n", spells[i], how_good(GET_SKILL(ch, i))); strcat(buf2, buf); } if (GET_TRI_LEVEL(ch) >= spell_info[i].min_level[(int) GET_TRI(ch)]) { sprintf(buf, "%-20s %s\r\n", spells[i], how_good(GET_SKILL(ch, i))); strcat(buf2, buf); } } } That way it will check to see if they are immorts or not. If not, then it will print the data. Rasdan / \ _ ) (( )) ( (@) /|\ ))_(( /|\ _ |-|`\ / | \ (/\|/\) / | \ (@) | | ------------/--|-voV---\`|'/--Vov-|--\--------------|-| |-| '^` (o o) '^` | | | | James C. Thomas Jr. `\Y/' Founder of Finality |-| |-| rasdan@finality.com | | | | finality.com 4000 |-| |_|_____________________________________________________| | (@) l /\ / ( ( \ /\ l `\|-| l / V \ \ V \ l (@) l/ _) )_ \I `\ /' ` +------------------------------------------------------------+ | 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/08/00 PST