remort problems
Posted by Gorock
on Sun 25 Sep 2005 11:00 PM
— 39 posts, 122,061 views.
ok i have remort classes for people and i just remorted someone but now they cant practice any new skills at the trainer in the new academy it says that he has allready teached them everything he can and now they'll have to practice it on their own
im not sure if this is in do practice or even what i would do
any help thanks in advance
I'm not familar with remort. What is the message the trainer sends? Search for that in the code and paste those lines here.
after i remort someone and make them level 1 again they go to the trainer and type prac word then he says this
Domick tells you, 'I've taught you everything I can about word of recall.'
Domick tells you, 'You'll have to practice it on your own now...'
and so i have to set each of the spells and skills tehy want at each level which is very irrotating
Do they already have the skill learned? That's what it seems like. What is your intention, reset all skills on remort?
yeah if i knew how to reset all the skills on a remort that might work because when i remort them they loose all their skills and start over with a different class like i had a ranger remort to archer and a warrior remort to a berserker but all of their skills are at 0% so they go to practice them but that is what he says it is like he remembers teaching them those spells/skills and wont teach them again which is quite a problem because they level while i am not here then have to wait for me to log on so they can get me to set their new spells/skills to 20% so that they can use and adept them i have tried getting them to use another teacher but they all say the same thing and i even tried getting them to delete their character and make a new one and i just renamed them but that did not work either so then i tried changing their names then them practicing and then changing the names back but that did not work either.
So wait, they are at 0%, but the teacher still says he taught everything? Can you paste those lines in the code where the mob says "I've taught you everything I can about word of recall"?
Domick tells you, 'I've taught you everything I can about word of recall.'
Domick tells you, 'You'll have to practice it on your own now...'
thats what he says even if they are at 0% i cant figure it out either i have searched forums and did yahoo searches but i have come up with nothing
He means the lines of source code, not the output into the client. He wants to see the if check that displays that message rather than proceeding to teach them.
oh
where would i find that cause i am fairly new and i dont know what you mean
Do a search through the source. In *nix, use grep.
update.c: ch->practice += add_prac;
update.c: add_hp, ch->max_hit, 1, ch->level + 10, add_move, ch ->max_move, add_prac, ch->practice );
update.c: add_hp, ch->max_hit, add_mana, ch->max_mana, add_mov e, ch->max_move, add_prac, ch->practice );
gorock@frostmud:~/mud/src$ grep 'taught' *.c
act_info.c: snprintf( buf, MAX_STRING_LENGTH, "$n tells you, 'I've taugh t you everything I can about %s.'",
gorock@frostmud:~/mud/src$ grep 'taught' *.c
act_info.c: snprintf( buf, MAX_STRING_LENGTH, "$n tells you, 'I've taugh t you everything I can about %s.'",
gorock@frostmud:~/mud/src$ pico act_info.c
gorock@frostmud:~/mud/src$ grep 'taught' *.c -n
act_info.c:3440: snprintf( buf, MAX_STRING_LENGTH, "$n tells you, 'I've taught you everything I can about %s.'",
gorock@frostmud:~/mud/src$ pico act_info.c
UW PICO(tm) 4.9 File: act_info.c Modified
mob, NULL, ch, TO_VICT );
return;
}
*/
adept = ( int )( class_table[ch->Class]->skill_adept * 0.2 );
if( ch->pcdata->learned[sn] >= adept )
{
snprintf( buf, MAX_STRING_LENGTH, "$n tells you, 'I've taught you everything I can abou$
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, NUL$
}
else
{
ch->practice--;
ch->pcdata->learned[sn] += int_app[get_curr_int( ch )].learn;
act( AT_ACTION, "You practice $T.", ch, NULL, skill_table[sn]->name, TO_CHAR );
act( AT_ACTION, "$n practices $T.", ch, NULL, skill_table[sn]->name, TO_ROOM );
if( ch->pcdata->learned[sn] >= adept )
{
ch->pcdata->learned[sn] = adept;
act( AT_TELL, "$n tells you. 'You'll have to practice it on your own now...'", mob, $
}
}
}
return;
i think this is what you asked for
This is the line:
ch->pcdata->learned[sn] >= adept
What is adept? That's probably the problem.
adept means if the spell/skill has allready been practiced but what would i change it to to make him teach it still
I mean what is it defined as? That's probably the problem.
i dont understand where your going with this
It should be a variable or something. Where is it defined? What is it defined as? What is the value?
ok well i dont know where to find it i mean i have no clue where i would look to find it i looked around the adept thing but i did not se anything about it being defined so if you could just tell me that would be great and then i would not have to post five hundred times asking where i would find something that you could tell me where it is in like one sec
I can't tell you because I don't have your code. The reason I'm asking is because it could be different due to the remort system you installed.
i did not install a remort code i just made new classes and when people avatar i advance them to level 2 then set there class via mset
Ah I see adept in the code you posted.
adept = ( int )( class_table[ch->Class]->skill_adept * 0.2 );
Most likely the reason it is not working is because they are not the right class of the skill.
hmmmm? the right class of the skill? does that mean i need to go into the code and add all the class names somewhere?
No. The reason it doesn't work is because the class they are set to doesn't have that skill in the list.
oh no they have the skill i even did sset (skill) level (class number) (level player gets it) then i did sset (skill) adept (class number) (max percent) so the character has it its all in their player practice sheet but it still wont work i even tried making a new character that has never used the name before then i set their class to a remort one before they even left the start area but it still would not do anything for them i am stumped with this one though
If you sset the skill, then they already have it, and that is why the mob is saying
Quote:
Domick tells you, 'I've taught you everything I can about word of recall.'
i made a completely new character and set their class to a remort one and never touched their practice sheet but they still cant do anything when i didi sset i meant i set the skill to give to that character by doing slookup kick then set it for remort classes
Does that remort class have the skill in the slist? If not, it needs to be.
yep the skill is in slookup slist in practice and in the class file so i dont know what the problem is with it
Maybe I'm not fully understanding this.
The skill they are trying to practice is in their slist correct?
The skill is not practiced at all, it is 0% right?
They meet the requirements for the skill, like the level?
yep they should be able to practice it
everything is there and it should work like a charm but they cant do anything....i would assume this is not a problem you have seen before
Obviously it has to do with this adept.
class_table[ch->Class]->skill_adept
Not sure what to say. Perhaps attach gdb, and print adept to see what it is.
hm it seems i need to add the class to const.c in src directory but im not sure any help??
Why in const.c? I don't remember changing anything in const.c when I added classes.
it said something about it in the help file allthough i may be wrong ill copy paste it
Here's how to add a new class:
(1) Increment 'MAX_CLASS' in 'mud.h'
(2) Add a new entry to 'class_table' in 'const.c'.
(3) Add sn level numbers to 'skill_table' in 'const.c' for the new class. Set
the level to 37 for all skills or spells which the class is unable to use.
(4) Add an entire new block of titles to 'title_table' in 'const.c'.
allthough when i went into const.c it did not look right
any ideas on what i should do??????
tia
Like I said in the last post:
Quote:
Obviously it has to do with this adept.
class_table[ch->Class]->skill_adept
Not sure what to say. Perhaps attach gdb, and print adept to see what it is.
funny you should say that cause i have been trying to get in contact with my head coder to find out how to use gdb but he has been absent for like a week now but any advice i think i would do something along the lines of gdb "file" adept
ok i read the gdb manual that was posted here so this should help