> base = (int) (GET_LEVEL(ch) / total_levels) * GET_EXP(victim); since get_level/total_levels will be below 1.0, this will make it always: 0 * get_exp(vict)..so instead you could: (int)(get_exp(vict)/total_levels)*get_level you could also do this before the loop..like: exp_per_lev = (int)(get_exp(vict)/total_levs for (i = leader; i; i = i->next_in_goup) gain = exp_per_lev * get_lev(i) psuedo code.. 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