New Class cannot practice anything.

Posted by Nargsbrood on Thu 17 Aug 2006 06:09 AM — 2 posts, 11,382 views.

#0
I am looking for the lazy man's way out on this one. anyone had problems when creating a new class that they cannot practice any skills? it is hitting these lines of code:

adept = class_table[ch->class]->skill_adept * 0.2;

if ( ch->pcdata->learned[sn] >= adept )
{
sprintf( buf, "$n tells you, 'You already know what I can teach about %s.'",
skill_table[sn]->name );
act( AT_TELL, buf, mob, NULL, ch, TO_VICT );
act( AT_TELL, "$n tells you, 'You'll have to practice it on your own now...'",
mob, NULL, ch, TO_VICT );
}



in the .class file, the skills look like this:

Skill 'disarm' 24 90
Skill 'dodge' 24 85
Skill 'mount' 2 90
Skill 'parry' 23 90
Skill 'rescue' 15 95
Skill 'scan' 11 90
Skill 'second attack' 23 90
Skill 'third attack' 30 90
Skill 'bludgeons' 1 80
Skill 'long blades' 1 30
Skill 'pugilism' 1 99
Skill 'short blades' 1 65
Skill 'talonous arms' 1 99
Skill 'eagle' 5 95
Skill 'common' 1 99
USA #1
Print what adept is. It's probably something like 0.