Exemplo n.º 1
0
        public static bool Execution()
        {
            int d = 10;

            Wating.Home();
            while (d > 0)
            {
                Outputs.Log((d * 30).ToString() + "秒后刷新");
                Utils.Delay(30000);
                d--;
            }
            SwitchScene.HomeToSupply();
            SwitchScene.SupplyToHome();
            return(true);
        }
Exemplo n.º 2
0
        public static bool Execution()
        {
            Wating.Home();
            int x, y;

            if (!Operation.FindPic("远征归来", out x, out y))
            {
                Outputs.Log("没有远征");
                return(false);
            }
            else
            {
                Outputs.Log("远征归来");
                Operation.Click(x, 100, y + 20, 80, 250);
                bool w1 = true;
                while (w1)
                {
                    if (Operation.FindPic("次", out x, out y))
                    {
                        Outputs.Log("远征结算");
                        Operation.Click(x, 40, y, 40, 250);
                        w1 = false;
                        bool w2 = true;
                        while (w2)
                        {
                            if (Operation.FindPic("次", out x, out y))
                            {
                                if (Operation.FindPic("远征归来2队", out x, out y))
                                {
                                    Process.supplyTeam[1] = true;
                                    if (Process.expedition[0] != 0)
                                    {
                                        Process.expeditionTeam[0] = true;
                                    }
                                    Outputs.Log("远征2队归来");
                                    Operation.Click(x, 40, y, 40, 250);
                                }
                                if (Operation.FindPic("远征归来3队", out x, out y))
                                {
                                    Process.supplyTeam[2] = true;
                                    if (Process.expedition[1] != 0)
                                    {
                                        Process.expeditionTeam[1] = true;
                                    }
                                    Outputs.Log("远征3队归来");
                                    Operation.Click(x, 40, y, 40, 250);
                                }
                                if (Operation.FindPic("远征归来4队", out x, out y))
                                {
                                    Process.supplyTeam[3] = true;
                                    if (Process.expedition[2] != 0)
                                    {
                                        Process.expeditionTeam[2] = true;
                                    }
                                    Outputs.Log("远征4队归来");
                                    Operation.Click(x, 40, y, 40, 250);
                                }
                                w2 = false;
                            }
                            Utils.Delay(1000);
                        }
                    }
                    Utils.Delay(1000);
                }
            }
            return(true);
        }