示例#1
0
        public static void KeyMoveBegined(PacketReader packet, PacketBuilder builder, ClientHandler client, EventHandler events)
        {
            var unk1 = packet.ReadShort();
            var unk2 = packet.ReadShort();
            var unk3 = packet.ReadShort();
            var unk4 = packet.ReadLong();

            packet.Skip(8);
            var unk5 = packet.ReadShort();
            //var unk6 = packet.ReadByte();

            //var id = (int)client.Metadata["id"];
            var timestamp = (uint)client.Metadata["timestamp"];

            //var clients = (client.Metadata["map"] as IMap).GetSurroundingClients(client, 2); For Now

            builder.New(0x193);
            {
                builder += 0;
                builder += Environment.TickCount - (int)timestamp;
                builder += unk1;
                builder += unk2;
                builder += unk3;
                builder += unk4;
                builder += unk5;
                //builder += unk6;
            }

            /*foreach (var c in clients)
             * {
             *  c.Send(builder, "NFY_KeyMoveBegined");
             * }*/
            client.Send(builder, "NFY_KeyMoveBegined");

            //NewUserList(packet, builder, client, events);
        }