(Argh! Not sleepy...)
This clears TrackingID after a skillup check (pass or fail) for an SoF or Ti client, and assumes that a new TargetID is sent by the client again for the next check if the client is still tracking:
void Client::Handle_OP_ClientUpdate(const EQApplicationPacket *app)
{...
if(IsTracking() && ((x_pos!=ppu->x_pos) || (y_pos!=ppu->y_pos)))
{
if(MakeRandomFloat(0, 100) < 70)//should be good
{
CheckIncreaseSkill(TRACKING, NULL, -20);
if(GetClientVersion() < EQClientSoD)
{
TrackingID=0;
}
}
else
if(GetClientVersion() < EQClientSoD)
{
TrackingID=0;
}
}
...}
Will try tonight...
U
__________________
Uleat of Bertoxxulous
Compilin' Dirty
|