All pastes #538783 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-05 03:18 UTC
rendered paste body
RealmPacketOut outPacket = new RealmPacketOut(packet.Id);
            client.ActiveCharacter.EntityId.WritePacked(outPacket);
            outPacket.Write((uint)moveFlags);
            outPacket.Write(Environment.TickCount);
            outPacket.Write(packet.ReadBytes((int)packet.RemainingBytes));
            byte[] packet = outPacket.GetBytes();

            foreach (RealmClient client in client.ActiveCharacter.GetNearbyClients(false))
            {
                client.Send(packet);
            }
            (outPacket as IDisposable).Dispose();