Ejemplo n.º 1
0
        public static void DropItems()
        {
            // DISABLE MOUSE HOOKS TO PREVENT LAG
            HardwareListener.UnregisterMouseHooks();

            Coord             Drop      = coords["drop_item"];
            InventoryIterator inventory = Player.Player.Inventory.Get1SlotIterator();

            SendKeys.SendWait("i");
            while (inventory.HasNext)
            {
                Position p = inventory.GetNext();
                HardwareRobot.MovePhysicalCursor(p);
                HardwareRobot.DoLeftDown(p.x, p.y, HardwareRobot.ActionTypes.PHYSICAL);
                HardwareRobot.MovePhysicalCursor(Drop);
                Sleep(-20);
                HardwareRobot.DoLeftUp(Drop.RealX, Drop.RealY, HardwareRobot.ActionTypes.PHYSICAL);
            }
            SendKeys.SendWait("i");

            // RE-ENABLE MOUSE HOOKS
            HardwareListener.RegisterMouseHooks();
        }