simply to ensure its effective
my code is
WaypointMovementGenerator<Creature>::Update(Creature &unit, const uint32 &diff)
{
if (!&unit)
return true;
if (!path_id)
return false;
if(path_id == unit.GetGUIDLow()*10)
{
DO ALL WAYPOINT ACTIONS
}
else
{
return false;
}
}
See :
http://www.trinitycore.org/w/Waypoint_data_tc2#id
The TDB standard way of assigning an ID is the GUID of the creature X 10.
So for a creature with a GUID of 1234 the path ID would be 12340. Any waypoints submitted to TDB should follow this standard.