コード例 #1
0
ファイル: Mine.cs プロジェクト: Jacobth/wow_auto_walk
        //Call this to gather all ores in specified area
        public void GatherOres(List <Point> ores, Rotation rotation)
        {
            Travel t      = new Travel();
            bool   landed = true;

            while (ores.Count > 0)
            {
                float Min_Distance = 2f;

                if (landed)
                {
                    t.Mount();
                }
                landed = true;

                float Max_Z = 550f;
                t.Lift(Max_Z);

                Point dest = GetClosest(t, ores);

                float distance = 0;

                while (true)
                {
                    distance = t.MoveToPoint(dest, Min_Distance, 0.05f);

                    if (distance <= Min_Distance)
                    {
                        break;
                    }
                }

                landed = t.Land(dest.getZ());

                ClickOre();

                Thread.Sleep(3000);
                Console.WriteLine(ores.Count);

                rotation.Attack();
                ClickOre();
                Thread.Sleep(3000);
            }
        }
コード例 #2
0
ファイル: MainClass.cs プロジェクト: Jacobth/wow_auto_walk
        private static void Arguments(string arg, string op, ZoneInfo info)
        {
            if (arg.Equals("mine") && op != "")
            {
                Mine     m = new Mine();
                OreLists o = new OreLists();

                Rotation mage = new MageRotate();

                List <Point> ores = o.MineMap(op);

                int zone = o.MineZone(op);

                bool sameZone = zone == info.GetContinent(GameInfo.GetMapId());

                if (!sameZone)
                {
                    Console.WriteLine("Error: Ores in different continent");
                }

                else if (ores.Count > 0)
                {
                    m.GatherOres(ores, mage);
                }
            }

            else if (arg.Equals("walk"))
            {
                Travel t = new Travel();
                t.TravelWalk(op);
            }

            else if (arg.Equals("fly"))
            {
            }
        }