Example #1
0
        private void moveItemToContainer(Location gameLocation, int containerIndex)
        {
            Point from = client.GroundPosition(gameLocation);
            Point to   = client.ContainerPosition(0, containerIndex);

            inputSender.SendDragEvent(from, to, true);
        }
Example #2
0
        private void moveItemToInventory(Item item, int slotFrom, int slotTo)
        {
            Point from = client.InventoryPosition(slotFrom);
            Point to   = client.InventoryPosition(slotTo);

            inputSender.SendDragEvent(from, to);

            if (item.Count == 1)
            {
                Console.WriteLine("Count is 1, NO CTRL:");
                inputSender.SendDragEvent(from, to);
            }
            else
            {
                Console.WriteLine("Count is more than 1, using ctrl:");
                inputSender.SendDragEvent(from, to, true);
            }
        }
Example #3
0
        private void moveItemToContainer(Item item, int itemIndex, int containerIndex, Container destination)
        {
            Point from   = client.ContainerPosition(itemIndex, containerIndex);
            int   toSlot = destination.GetAvailableSlotFor(item);
            Point to     = client.ContainerPosition(toSlot, destination.Index);

            //Console.WriteLine("Item count: " + item.Count);
            if (item.Count == 1)
            {
                //Console.WriteLine("Count is 1, NO CTRL:");
                inputSender.SendDragEvent(from, to);
            }
            else
            {
                //Console.WriteLine("Count is more than 1, using ctrl:");
                inputSender.SendDragEvent(from, to, true);
            }
        }