Thread: Skills Question
View Single Post
  #37  
Old 06-08-2014, 08:43 AM
NickW
Sarnak
 
Join Date: Apr 2014
Posts: 72
Default

Quote:
Originally Posted by NatedogEZ View Post
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
It works! Thank you everybody. I seriously love this community. So damn helpful!

Quote:
Originally Posted by lerxst2112 View Post
You know, you could just say you did it, the giant screen shots add nothing to the conversation.
As for the screenshots. If they bother people. I will most definitely stop using them. When people who understand what's going on are trying to help someone who is clueless. In other words me.. They usually assume the person isn't following their directions correctly. And that's why it isn't working for them. The screenshots are my attempt to show exactly how I did what, where, etc.. In case i did screw something up.

That was my thought process anyway..
Reply With Quote