Updated die packet structure.

This commit is contained in:
MobiusDevelopment 2021-10-23 20:47:21 +00:00
parent 5e8af1946f
commit 8fc5e8f3fc
6 changed files with 42 additions and 30 deletions

View File

@ -90,12 +90,14 @@ public class Die implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.DIE.writeId(packet);
packet.writeD(_objectId);
packet.writeC(_flags);
packet.writeC(0);
packet.writeC(_isSweepable ? 1 : 0);
packet.writeC(0); // 1: Resurrection during siege.
packet.writeQ(_flags);
packet.writeD(_isSweepable ? 0x01 : 0x00);
packet.writeD(0x00); // Feather item time.
packet.writeC(0x00); // Hide die animation.
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}

View File

@ -90,12 +90,14 @@ public class Die implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.DIE.writeId(packet);
packet.writeD(_objectId);
packet.writeC(_flags);
packet.writeC(0);
packet.writeC(_isSweepable ? 1 : 0);
packet.writeC(0); // 1: Resurrection during siege.
packet.writeQ(_flags);
packet.writeD(_isSweepable ? 0x01 : 0x00);
packet.writeD(0x00); // Feather item time.
packet.writeC(0x00); // Hide die animation.
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}

View File

@ -90,12 +90,14 @@ public class Die implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.DIE.writeId(packet);
packet.writeD(_objectId);
packet.writeC(_flags);
packet.writeC(0);
packet.writeC(_isSweepable ? 1 : 0);
packet.writeC(0); // 1: Resurrection during siege.
packet.writeQ(_flags);
packet.writeD(_isSweepable ? 0x01 : 0x00);
packet.writeD(0x00); // Feather item time.
packet.writeC(0x00); // Hide die animation.
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}

View File

@ -90,12 +90,14 @@ public class Die implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.DIE.writeId(packet);
packet.writeD(_objectId);
packet.writeC(_flags);
packet.writeC(0);
packet.writeC(_isSweepable ? 1 : 0);
packet.writeC(0); // 1: Resurrection during siege.
packet.writeQ(_flags);
packet.writeD(_isSweepable ? 0x01 : 0x00);
packet.writeD(0x00); // Feather item time.
packet.writeC(0x00); // Hide die animation.
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}

View File

@ -90,12 +90,14 @@ public class Die implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.DIE.writeId(packet);
packet.writeD(_objectId);
packet.writeC(_flags);
packet.writeC(0);
packet.writeC(_isSweepable ? 1 : 0);
packet.writeC(0); // 1: Resurrection during siege.
packet.writeQ(_flags);
packet.writeD(_isSweepable ? 0x01 : 0x00);
packet.writeD(0x00); // Feather item time.
packet.writeC(0x00); // Hide die animation.
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}

View File

@ -90,12 +90,14 @@ public class Die implements IClientOutgoingPacket
public boolean write(PacketWriter packet)
{
OutgoingPackets.DIE.writeId(packet);
packet.writeD(_objectId);
packet.writeC(_flags);
packet.writeC(0);
packet.writeC(_isSweepable ? 1 : 0);
packet.writeC(0); // 1: Resurrection during siege.
packet.writeQ(_flags);
packet.writeD(_isSweepable ? 0x01 : 0x00);
packet.writeD(0x00); // Feather item time.
packet.writeC(0x00); // Hide die animation.
packet.writeD(0x00);
packet.writeD(0x00);
packet.writeD(0x00);
return true;
}
}