Moves more outgoing packets (#152)
This commit is contained in:
parent
4499ac30b0
commit
69ebb45e59
15 changed files with 1778 additions and 1754 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* ModernUO *
|
||||
* Copyright (C) 2019-2020 - ModernUO Development Team *
|
||||
* Email: hi@modernuo.com *
|
||||
* File: MobilePackets.cs - Created: 2020/05/07 - Updated: 2020/05/07 *
|
||||
* File: MobilePackets.cs - Created: 2020/05/07 - Updated: 2020/05/26 *
|
||||
* *
|
||||
* This program is free software: you can redistribute it and/or modify *
|
||||
* it under the terms of the GNU General Public License as published by *
|
||||
|
|
@ -42,4 +42,51 @@ namespace Server.Network
|
|||
Stream.Write((byte)(bonded ? 1 : 0));
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class MobileMoving : Packet
|
||||
{
|
||||
public MobileMoving(Mobile m, int noto) : base(0x77, 17)
|
||||
{
|
||||
var loc = m.Location;
|
||||
|
||||
var hue = m.Hue;
|
||||
|
||||
if (m.SolidHueOverride >= 0)
|
||||
hue = m.SolidHueOverride;
|
||||
|
||||
Stream.Write(m.Serial);
|
||||
Stream.Write((short)m.Body);
|
||||
Stream.Write((short)loc.m_X);
|
||||
Stream.Write((short)loc.m_Y);
|
||||
Stream.Write((sbyte)loc.m_Z);
|
||||
Stream.Write((byte)m.Direction);
|
||||
Stream.Write((short)hue);
|
||||
Stream.Write((byte)m.GetPacketFlags());
|
||||
Stream.Write((byte)noto);
|
||||
}
|
||||
}
|
||||
|
||||
// Pre-7.0.0.0 Mobile Moving
|
||||
public sealed class MobileMovingOld : Packet
|
||||
{
|
||||
public MobileMovingOld(Mobile m, int noto) : base(0x77, 17)
|
||||
{
|
||||
var loc = m.Location;
|
||||
|
||||
var hue = m.Hue;
|
||||
|
||||
if (m.SolidHueOverride >= 0)
|
||||
hue = m.SolidHueOverride;
|
||||
|
||||
Stream.Write(m.Serial);
|
||||
Stream.Write((short)m.Body);
|
||||
Stream.Write((short)loc.m_X);
|
||||
Stream.Write((short)loc.m_Y);
|
||||
Stream.Write((sbyte)loc.m_Z);
|
||||
Stream.Write((byte)m.Direction);
|
||||
Stream.Write((short)hue);
|
||||
Stream.Write((byte)m.GetOldPacketFlags());
|
||||
Stream.Write((byte)noto);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue