View Single Post
  #1  
Old 05-16-2011, 11:30 AM
Zothen
Hill Giant
 
Join Date: Apr 2011
Location: Germany
Posts: 163
Thumbs up 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);
	}
Reply With Quote