Exemplo n.º 1
0
        protected override bool ProcessInventory()
        {
            Stopwatch watch = new Stopwatch();

            for (int i = 1; i < Inventory.INVENTORY_CAPACITY; i++)
            {
                Point inventorySlot = Inventory.InventoryIndexToCoordinates(i);
                if (!Inventory.Enchant(inventorySlot.X, inventorySlot.Y, EnchantLevel, false, false))
                {
                    return(false);
                }
                SafeWaitPlus(1200, 100);
                RunParams.Iterations--;
                if (RunParams.Iterations <= 0 || StopFlag)
                {
                    return(false);
                }
            }
            return(true);
        }