Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-20-2013, 02:21 AM
Envisage
Sarnak
 
Join Date: Mar 2010
Posts: 45
Default Skills that can't have their trained level set.

Basically I found a workaround for a problem I was having with skills not being able to be set to certain level no matter what you change the skill_caps table to. Only problem is it doesn't display at the trainer until that level.

What I'm wondering is, is there a way to set it so the trainer will actually show the level the skill can be trained via the skill_caps table or even a hard coded way server side. As this is a problem with 4 skills I have found so far. The problem isn't that its not taking the correct info from the skill_caps table, its that its still allowing the client to train said skill at level 10 for pick lock for example on bards. When I had it set to 40. The below code prevents that but also doesn't permit it to be seen by the client until 40.

Just hoping someone has a workaround that will actually show it and display it correctly.

I added this to client_process.cpp in OPGMTraining.

Code:
		if( sk == PICK_LOCK && GetClass() == BARD && GetLevel() < 40 ){
			gmtrain->skills[sk] = 0;
		}
		else if ( sk == PICK_LOCK && GetClass() == BARD && GetLevel() >= 40 ){
			gmtrain->skills[sk] = GetMaxSkillAfterSpecializationRules(sk, MaxSkill(sk, GetClass(), RuleI(Character, MaxLevel)));
		}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 04:00 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3