View Single Post
  #2  
Old 05-01-2012, 07:59 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default Possible Fix..

What about something like this:


[client_packet.cpp]

void Client::Handle_OP_TrackTarget(const EQApplicationPacket *app)
{
if(GetClientVersion() < EQClientSoD)
return;

else


int PlayerClass = GetClass();

if((PlayerClass != RANGER) && (PlayerClass != DRUID) && (PlayerClass != BARD))
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;
}


Just a quick thought..I haven't tried it yet, but will this evening when I get up..takes a while to compile on my cpu... Again, this assumes the same tracking function for an SoF as a Ti client.)
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote