Updated to 3.1.2.9855 client build, fixed quests, some work on monster movement. Not tested.

This commit is contained in:
tomrus88 2009-05-02 19:38:14 +04:00
parent 21a38a42d8
commit b980e9ac59
22 changed files with 114 additions and 92 deletions

View file

@ -284,6 +284,9 @@ void Unit::SendMonsterMove(float NewPosX, float NewPosY, float NewPosZ, uint8 ty
break;
}
if(MovementFlags & MONSTER_MOVE_FLAG_SPLINE) // we shouldn't get here with this flag
sLog.outError("SHIT HAPPENED!");
data << uint32(MovementFlags);
data << uint32(Time); // Time in between points
data << uint32(1); // 1 single waypoint
@ -301,13 +304,13 @@ void Unit::SendMonsterMoveByPath(Path const& path, uint32 start, uint32 end, uin
uint32 pathSize = end-start;
WorldPacket data( SMSG_MONSTER_MOVE, (GetPackGUID().size()+4+4+4+4+1+4+4+4+pathSize*4*3) );
WorldPacket data( SMSG_MONSTER_MOVE, (GetPackGUID().size()+1+4+4+4+4+1+4+4+4+pathSize*4*3) );
data.append(GetPackGUID());
data << uint8(0);
data << GetPositionX();
data << GetPositionY();
data << GetPositionZ();
data << getMSTime();
data << uint32(getMSTime());
data << uint8( 0 );
data << uint32( MovementFlags );
data << uint32( traveltime );
@ -10816,7 +10819,7 @@ void Unit::StopMoving()
// Relocate(GetPositionX(), GetPositionY(), z);
Relocate(GetPositionX(), GetPositionY(),GetPositionZ());
SendMonsterMove(GetPositionX(), GetPositionY(), GetPositionZ(), 0, true, 0);
SendMonsterMove(GetPositionX(), GetPositionY(), GetPositionZ(), 0, 0, 0);
// update position and orientation;
WorldPacket data;