Exemplo n.º 1
0
 public void Update(IPacketReader packet, bool orientation = false)
 {
     X = packet.ReadFloat();
     Y = packet.ReadFloat();
     Z = packet.ReadFloat();
     if (orientation)
     {
         O = packet.ReadFloat();
     }
 }
Exemplo n.º 2
0
        public void Update(IPacketReader packet, bool orientation = false)
        {
            this.X = packet.ReadFloat();
            this.Y = packet.ReadFloat();
            this.Z = packet.ReadFloat();

            if (orientation)
            {
                this.O = packet.ReadFloat();
            }
        }
Exemplo n.º 3
0
        public void HandleMovementStatus(ref IPacketReader packet, ref IWorldManager manager)
        {
            if (manager.Account.ActiveCharacter.IsTeleporting)
            {
                return;
            }

            ulong TransportGuid = packet.ReadUInt64();
            float TransportX    = packet.ReadFloat();
            float TransportY    = packet.ReadFloat();
            float TransportZ    = packet.ReadFloat();
            float TransportO    = packet.ReadFloat();

            manager.Account.ActiveCharacter.Location.Update(packet, true);
        }
Exemplo n.º 4
0
        public void HandleWorldTeleport(ref IPacketReader packet, ref IWorldManager manager)
        {
            packet.ReadUInt32();
            byte  zone = packet.ReadUInt8();
            float x    = packet.ReadFloat();
            float y    = packet.ReadFloat();
            float z    = packet.ReadFloat();
            float o    = packet.ReadFloat();

            PacketWriter movementStatus = new PacketWriter(Sandbox.Instance.Opcodes[global::Opcodes.SMSG_MOVE_WORLDPORT_ACK], "SMSG_MOVE_WORLDPORT_ACK");

            movementStatus.WriteUInt64(0);
            movementStatus.WriteFloat(0);
            movementStatus.WriteFloat(0);
            movementStatus.WriteFloat(0);
            movementStatus.WriteFloat(0);
            movementStatus.WriteFloat(x);
            movementStatus.WriteFloat(y);
            movementStatus.WriteFloat(z);
            movementStatus.WriteFloat(o);
            movementStatus.WriteFloat(0);
            movementStatus.WriteUInt32(0);
            manager.Send(movementStatus);
        }