Thread: Skills Question
View Single Post
  #14  
Old 06-08-2014, 01:19 AM
NatedogEZ's Avatar
NatedogEZ
Developer
 
Join Date: Dec 2012
Posts: 515
Default

This does work... but there are a few other areas you NEED to change!



client_packet.cpp
Code:
void Client::Handle_OP_TrackTarget(const EQApplicationPacket *app)
{
	int PlayerClass = GetClass();

	if((PlayerClass != RANGER) && (PlayerClass != DRUID) && (PlayerClass != BARD) && (PlayerClass != WARRIOR))
		return;

	if (app->size != sizeof(TrackTarget_Struct))
	{
		LogFile->write(EQEMuLog::Error, "Invalid size for OP_TrackTarget: Expected: %i, Got: %i",
			sizeof(TrackTarget_Struct), app->size);
		return;
	}

	TrackTarget_Struct *tts = (TrackTarget_Struct*)app->pBuffer;

	TrackingID = tts->EntityID;
}

void Client::Handle_OP_Track(const EQApplicationPacket *app)
{
	if(GetClass() != RANGER && GetClass() != DRUID && GetClass() != BARD && GetClass() != WARRIOR)
		return;

	if( GetSkill(SkillTracking)==0 )
		SetSkill(SkillTracking,1);
	else
		CheckIncreaseSkill(SkillTracking, nullptr, 15);

	if(!entity_list.MakeTrackPacket(this))
		LogFile->write(EQEMuLog::Error, "Unable to generate OP_Track packet requested by client.");

	return;
}

Notice all I did was add Warrior to those 2 functions .. plus I added warrior to the one you posted earlier as well..


Hopefully this helps








This is it working on a warrior
Reply With Quote