Exemple #1
0
        public static void SaveQuickSlot(PacketReader packet, PacketBuilder builder, ClientHandler client, EventHandler events)
        {
            var       quickslot = packet.ReadShort();
            var       skill     = packet.ReadShort();
            Character character = client.Metadata["fullchar"] as Character;
            var       id        = character.id;

            builder.New(0x0092);
            {
                builder += id;
                builder += quickslot;
                builder += skill;
            }

            var syncServer = client.Metadata["syncServer"] as SyncReceiver;
            var server     = (int)client.Metadata["server"];

            CharacterManagement.SetQuickSlots(syncServer, server, id, quickslot, skill);

            client.Send(builder, "SaveQuickSlot");
        }