public static int getPercentToLevel(final int index, final int endLvl) {
		if (index > SKILL_NAMES.length - 1) {
			return -1;
		}
		final int lvl = Skills.getRealLevel(index);
		if (lvl == 99 || endLvl > 99) {
			return 100;
		}
		final int xpTotal = Skills.XP_TABLE[endLvl] - Skills.XP_TABLE[lvl];
		if (xpTotal == 0) {
			return 0;
		}
		final int xpDone = Skills.getExperience(index) - Skills.XP_TABLE[lvl];
		return 100 * xpDone / xpTotal;
	}