View Single Post
  #4  
Old 05-01-2012, 08:35 AM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

(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
Reply With Quote