Welcome to the Builder Academy

Question Skill practice question

More
22 May 2016 15:37 #5923 by thomas
Replied by thomas on topic Skill practice question
Getting that list populated would take some smallish changes to the list_skills() command at github.com/tbamud/tbamud/blob/2f12752373...src/spec_procs.c#L99
Code:
- if (GET_LEVEL(ch) >= spell_info[i].min_level[(int) GET_CLASS(ch)]) { + if (GET_LEVEL(ch) >= spell_info[i].min_level[(int) GET_CLASS(ch)] || GET_SKILL(ch, i) > 0) {

Please Log in or Create an account to join the conversation.

More
23 May 2016 09:53 #5925 by JTP
Replied by JTP on topic Skill practice question
Would you happen to know how to let skillstat see the skill also ? And maybe even skillset be able to set it ?

Please Log in or Create an account to join the conversation.

More
23 May 2016 21:57 #5927 by thomas
Replied by thomas on topic Skill practice question
skillstat? No idea what you mean.

do_skillset has a check for skill level which you'd need to alter. github.com/tbamud/tbamud/blob/2f12752373...a4/src/modify.c#L385

First off, you'll need to set min_level for your skill to -1.
Then you need to alter that check:
Code:
- } else if (spell_info[skill].min_level[(pc)] > pl) { + } else if (spell_info[skill].min_level[(pc)] > pl && !spell_info[skill].min_level[(pc)] == -1) {

Please Log in or Create an account to join the conversation.

Time to create page: 0.223 seconds