EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: You have learned the basics of... (https://www.eqemulator.org/forums/showthread.php?t=33566)

Zothen 05-16-2011 11:30 AM

COMMITTED: You have learned the basics of...
 
Its no biggie, just a strange string, that shows up when you train a skill from 0 to 1.

Example:
Hierophant_Granix000 tell you, "You have learned the basics of..."

Fortunetely, its fixed very easily. Here you go:

clientprocess.cpp
void Client::OPGMTrainSkill(const EQApplicationPacket *app)
Code:

        if(GetClientVersion() >= EQClientSoF) {
                // The following packet decreases the skill points left in the Training Window and
                // produces the 'You have increased your skill / learned the basics of' message.
                //
                EQApplicationPacket* outapp = new EQApplicationPacket(OP_GMTrainSkillConfirm, sizeof(GMTrainSkillConfirm_Struct));

                GMTrainSkillConfirm_Struct *gmtsc = (GMTrainSkillConfirm_Struct *)outapp->pBuffer;
                gmtsc->SkillID = gmskill->skill_id;

                if(gmskill->skillbank == 1) {
                        gmtsc->NewSkill = (GetLanguageSkill(gmtsc->SkillID) == 1);
                        gmtsc->SkillID += 100;
                }
                else
                        gmtsc->NewSkill = (GetRawSkill((SkillType)gmtsc->SkillID) == 1);

                gmtsc->Cost = Cost;

                //strcpy(gmtsc->TrainerName, pTrainer->GetName());
                strcpy(gmtsc->TrainerName, pTrainer->GetCleanName());
                QueuePacket(outapp);
                safe_delete(outapp);
        }


joligario 05-16-2011 12:02 PM

Committed in r1901


All times are GMT -4. The time now is 02:54 AM.

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