public static void TailoringMiniGame(Creature creature, Item item, int xOffset, int yOffset, byte[] deviation, byte deviation2)
{
if (deviation == null || deviation.Length != 6)
throw new ArgumentException("rng needs exactly 6 values.");
var packet = new Packet(Op.TailoringMiniGame, creature.EntityId);
packet.PutShort((short)xOffset);
packet.PutShort((short)yOffset);
packet.PutBin(deviation);
// Modifies cursor size, glitches the minigame if smaller than
// deviation? Seems to be a general deviation that applies to
// all points? Setting all deviations, incl this, to 0 gives
// the most spot-on results.
packet.PutByte(deviation2);
packet.PutLong(0);
packet.PutInt(0);
packet.PutLong(item.EntityId);
packet.PutInt(0);
creature.Client.Send(packet);
}