EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Starting Skills (https://www.eqemulator.org/forums/showthread.php?t=39829)

provocating 07-04-2015 04:53 PM

Starting Skills
 
I am trying change player startup skills. I am not sure if somehow this is forced from the client or not.

Looking in client.cpp, the SetClassStartingSKills routing is supposed to set them. I changed them to zero, but they are still set to max for the level upon player creation. I also remarked out the call to the routine and it still happens. At this point I can only think that the client overrides what the server tells it.

Code:

void Client::SetClassStartingSkills(PlayerProfile_Struct *pp)
{
        for (uint32 i = 0; i <= HIGHEST_SKILL; ++i) {
                if (pp->skills[i] == 0) {
                        // Skip specialized, tradeskills (fishing excluded), Alcohol Tolerance, and Bind Wound
                        if (EQEmu::IsSpecializedSkill((SkillUseTypes)i) ||
                                        (EQEmu::IsTradeskill((SkillUseTypes)i) && i != SkillFishing) ||
                                        i == SkillAlcoholTolerance || i == SkillBindWound)
                                continue;

                        pp->skills[i] = 0;
                }
        }
}


Shendare 07-04-2015 04:55 PM

Oh, you mustn't have seen my last post to the thread about that.

http://www.eqemulator.org/forums/sho...e=2#post241394

provocating 07-04-2015 05:17 PM

It has been a very long weekend for me, I have had my hands in so many things I completely forgot my previous post...scary. What is strange is that before my code changes the skills were actually max and showed max, now after the changes the are showing max but in the database they are at 1. I am going roll with it. I am glad you caught the visual thing or I would had been at this a whole lot longer.

Also sorry for the double post, it has been a very long weekend with little sleep.

Shendare 07-04-2015 05:21 PM

Oh, yeah, with the default emu server code, the skills are explicitly set to their level 1 max at character creation. You do have to change the SetClassStartingSkills code if you don't want that.

It'll just still show max skills at level 1 on the RoF client is all, even when you've applied the code change and they no longer are.

No need to apologize, man. Hope you can get some good sleep soon!

provocating 07-04-2015 05:31 PM

That is tonight, guides on duty :)

I appreciate your help on this matter, I really do.


All times are GMT -4. The time now is 02:11 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.