PDA

View Full Version : COMMITTED: You have learned the basics of...


Zothen
05-16-2011, 11:30 AM
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)
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