Couple things you could do, there is a training snippet available that allows mobs flagged as such to train people stats, this could easily be modified to be more skill like. When you say:
Quote:
amount of a skill you gain dependent on the amount of wis you have
Do you mean the Maximum that they can get to? If so, then in learn_from_success, add a check dependant on their wisdom to see how high it can go, something like:
adept = ( ch->skill_level[skill_table[sn]->guild] - (get_curr_wis(ch)*2) + 50;
. That bit would assume that they can get their wis to 25. If you meant that they gain more than normal the higher their wisom is, then again, in learn_from_success, add it as a multiplier, maybe like
if ( percent >= chance )
learn = 2 + (get_curr_wis(ch)/5);
else
if ( chance - percent > 25 )
return;
else
learn = 1 + (get_curr_wis(ch)/10);
If you meant both, then both should be applicable. Hope that helps.