This reverts commit 179cb50557.
This commit is contained in:
parent
179cb50557
commit
c2ecc76457
588 changed files with 16260 additions and 10926 deletions
|
|
@ -1,25 +1,20 @@
|
|||
using Server.Buffers;
|
||||
|
||||
namespace Server.Network
|
||||
{
|
||||
public static class StatuePackets
|
||||
public class UpdateStatueAnimation : Packet
|
||||
{
|
||||
public static void SendUpdateStatueAnimation(NetState ns, Serial m, int status, int animation, int frame)
|
||||
public UpdateStatueAnimation(Mobile m, int status, int animation, int frame) : base(0xBF, 17)
|
||||
{
|
||||
if (ns == null)
|
||||
return;
|
||||
|
||||
SpanWriter writer = new SpanWriter(stackalloc byte[17]);
|
||||
writer.Write((byte)0xBF); // Extended Packet ID
|
||||
writer.Write((short)17); // Dynamic Length
|
||||
|
||||
writer.Write((short)0x19);
|
||||
writer.Write((byte)0x5);
|
||||
writer.Write(m);
|
||||
writer.Write((short)0xFF);
|
||||
writer.Write((byte)status);
|
||||
writer.Write((short)animation);
|
||||
writer.Write((short)frame);
|
||||
m_Stream.Write((short)0x11);
|
||||
m_Stream.Write((short)0x19);
|
||||
m_Stream.Write((byte)0x5);
|
||||
m_Stream.Write(m.Serial);
|
||||
m_Stream.Write((byte)0);
|
||||
m_Stream.Write((byte)0xFF);
|
||||
m_Stream.Write((byte)status);
|
||||
m_Stream.Write((byte)0);
|
||||
m_Stream.Write((byte)animation);
|
||||
m_Stream.Write((byte)0);
|
||||
m_Stream.Write((byte)frame);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue