From: Brian Williams Subject: EXP Needed char *exp_mesg(struct char_data *ch) { int percent, current, total; current = GET_EXP(ch); current -= titles[(int) GET_CLASS(ch)][(int) GET_LEVEL(ch)].exp; total = titles[(int) GET_CLASS(ch)][GET_LEVEL(ch) + 1].exp; total -= titles[(int) GET_CLASS(ch)][(int) GET_LEVEL(ch)].exp; percent = (100 * current) / total; if (percent >= 90) return ("You should level anytime now."); else if (percent >= 80) return ("You are almost ready to attain your next level."); else if (percent >= 70) return ("You are three-quarters of the way to your next level."); else if (percent >= 60) return ("You are well on your way to your next level."); else if (percent >= 50) return ("You are just passed the half-way point to your next level."); else if (percent >= 40) return ("You are at the half-way point to your next level."); else if (percent >= 30) return ("You are nearing the half-way point to your next level."); else if (percent >= 20) return ("You are one-quarter of the way to your next level."); else if (percent >= 10) return ("You have gained some progress towards your next level."); else if (percent > 4) return ("You still have a very long way to go to your next level."); else return ("You have just begun the journey to your next level."); } ACMD(do_experience) { sprintf(buf, "%s\r\n", exp_mesg(ch)); send_to_char("&06", ch); send_to_char(buf, ch); send_to_char("&00", ch); }