ok i tried to think about when to trigger the palyer to count for capturing the objective, and i wrote something like this
if(zone->flags & 0x8000 != 0)
{
if(HasFlag(PLAYER_FLAGS,PLAYER_FLAGS_IN_PVP) && !(HasStealthAura()))
{
uint32 objective = newZone;
switch(objective){
case 3669:/*count this palyer for the hellfire stadium cap*/break;
case 3670:/*count this palyer for the hellfire overlook cap*/break;
case 3671:/*count this palyer for the hellfire broken hill cap*/break;
//cases for the other zones like halaa,zangarmarsh,terokkar...
}
}
}else{
/*clear player from counting as objective capper*/
}
in Player::UpdateZone (Player.cpp)
dunno if it's right, i started to look at mangos' source only a few days ago.
Now, for handling the objective control i have no idea where to start.
In the source files i found nothing of dedicated, nor i found anything searching the forums.
Anyone knows how is it handled? are they gameobjects with particular flag o special classes handled by sone maphandler or bghandler?