Files
ClassicAssist.Avalonia/ClassicAssist.Shared/UO/Network/Packets/CompressedGump.cs
T
Beyhan Oğur d5f52cc3d3 first commit
2026-09-03 04:45:36 +03:00

19 lines
563 B
C#

using ClassicAssist.UO.Network.PacketFilter;
namespace ClassicAssist.UO.Network.Packets
{
public class CompressedGump : IMacroCommandParser
{
public string Parse( byte[] packet, int length, PacketDirection direction )
{
if ( packet[0] != 0xDD || direction != PacketDirection.Incoming )
{
return null;
}
int serial = ( packet[7] << 24 ) | ( packet[8] << 16 ) | ( packet[9] << 8 ) | packet[10];
return $"WaitForGump(0x{serial:x}, 5000)\r\n";
}
}
}