Skip to content

Commit

Permalink
Send the initial active mover packet.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed May 19, 2022
1 parent 8b659e0 commit 9ddcf44
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions HermesProxy/World/Server/PacketHandlers/MovementHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ void HandleMoveSetActiveMover(SetActiveMover move)
SendPacketToServer(packet);
}

[PacketHandler(Opcode.CMSG_MOVE_INIT_ACTIVE_MOVER_COMPLETE)]
void HandleMoveInitActiveMoverComplete(InitActiveMoverComplete move)
{
WorldPacket packet = new WorldPacket(Opcode.CMSG_SET_ACTIVE_MOVER);
packet.WriteGuid(GetSession().GameState.CurrentPlayerGuid.To64());
SendPacketToServer(packet);
}

[PacketHandler(Opcode.CMSG_MOVE_SPLINE_DONE)]
void HandleMoveSplineDone(MoveSplineDone movement)
{
Expand Down
13 changes: 13 additions & 0 deletions HermesProxy/World/Server/Packets/MovementPackets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,19 @@ public override void Read()

public WowGuid128 MoverGUID;
}

public class InitActiveMoverComplete : ClientPacket
{
public InitActiveMoverComplete(WorldPacket packet) : base(packet) { }

public override void Read()
{
Ticks = _worldPacket.ReadUInt32();
}

public uint Ticks;
}

class MoveSplineDone : ClientPacket
{
public MoveSplineDone(WorldPacket packet) : base(packet) { }
Expand Down

0 comments on commit 9ddcf44

Please sign in to comment.