private void Pipe_OnIconClick(Tibia.Packets.NetworkMessage msg) { msg.Position = 3; if (Click != null) { Click.BeginInvoke((int)msg.GetUInt32(), null, null); } }
private void Pipe_OnSocketSend(Tibia.Packets.NetworkMessage msg) { int length = msg.GetUInt16(); if (msg.GetByte() == (byte)PipePacketType.HookSentPacket) { byte[] buf = new byte[msg.Data.Length - 3]; Array.Copy(msg.Data, 3, buf, 0, buf.Length); ProcessFromClient(buf); } }