Пример #1
0
        public static void setupARMASimulator()
        {
            GameObject.OnCreate += TowerAttackOnCreate;
            GameObject.OnDelete += onDelete;

            foreach (var tur in ObjectManager.Get <Obj_HQ>())
            {
                if (tur.Team == GameObjectTeam.Chaos && player.Team == GameObjectTeam.Chaos)
                {
                    fromNex = tur;
                }
                if (tur.Team == GameObjectTeam.Chaos && player.Team == GameObjectTeam.Order)
                {
                    toNex = tur;
                }

                if (tur.Team == GameObjectTeam.Order && player.Team == GameObjectTeam.Order)
                {
                    fromNex = tur;
                }

                if (tur.Team == GameObjectTeam.Order && player.Team == GameObjectTeam.Chaos)
                {
                    toNex = tur;
                }
            }

            if (fromNex == null)
            {
                return;
            }
            float sep = fromNex.Position.Distance(toNex.Position) / 40;

            Vector2 lastPos = fromNex.Position.To2D();

            //Setup sectors
            for (int i = 0; i < 40; i++)
            {
                Vector2 end = lastPos.Extend(toNex.Position.To2D(), sep);
                sectors.Add(new Sector(lastPos, end, 750));
                lastPos = end;
            }
            MapControl.setupMapControl();
            AutoLevelChamp.setAutoLevel();
            AutoShopper.init();
            setUpItems();
            setChamp();
            AutoShopper.setBuild(champBuild);
            //checkItems();
            sSpells = new SummonerSpells();
            if (champ != null)
            {
                champ.setUpSpells();
            }

            DeathWalker.CustomRunCS     = (player.IsMelee) ? 250 : 150;
            DeathWalker.CustomMoveDelay = 324;
            DeathWalker.BottingMode     = true;
        }
Пример #2
0
 public static void buyItems()
 {
     if (lastBuy < DeathWalker.now - 2300)
     {
         AutoShopper.buyNext();
         lastBuy = DeathWalker.now;
     }
 }
Пример #3
0
 public static void buyItems()
 {
     if (lastBuy < ARAMDetFull.now - 2300)//if (lastBuy + 125 <= Core.GameTickCount)
     {
         //Chat.Print("I should buy an item now.");
         AutoShopper.buyNext();
         lastBuy = Core.GameTickCount;
     }
     else
     {
         //Chat.Print("I cant buy an item now." + Core.GameTickCount);
     }
 }
Пример #4
0
        public static void buyItems()
        {
            if (lastBuy < DeathWalker.now - 2300)
            {
                AutoShopper.buyNext();
                lastBuy = DeathWalker.now;
            }

            /* foreach (var item in nextItem.itemIds)
             * {
             *   if (!LeagueSharp.Common.Items.HasItem(item) && nextItem.goldReach<=player.Gold)
             *   {
             *       Console.WriteLine("Buy itemmss: "+item);
             *       player.BuyItem((ItemId)item);
             *       lastBuy = DeathWalker.now;
             *   }
             * }
             * checkItems();*/
        }
Пример #5
0
        public static void setupARMASimulator()
        {
            try
            {
                GameObject.OnCreate += TowerAttackOnCreate;
                if (ObjectManager.Player.Hero != EloBuddy.Champion.Corki)
                {
                    GameObject.OnDelete += onDelete;
                }

                foreach (var tur in ObjectManager.Get <Obj_HQ>())
                {
                    if (tur.Team == GameObjectTeam.Chaos && player.Team == GameObjectTeam.Chaos)
                    {
                        fromNex = tur;
                    }
                    if (tur.Team == GameObjectTeam.Chaos && player.Team == GameObjectTeam.Order)
                    {
                        toNex = tur;
                    }

                    if (tur.Team == GameObjectTeam.Order && player.Team == GameObjectTeam.Order)
                    {
                        fromNex = tur;
                    }

                    if (tur.Team == GameObjectTeam.Order && player.Team == GameObjectTeam.Chaos)
                    {
                        toNex = tur;
                    }
                }

                if (fromNex == null)
                {
                    return;
                }
                float sep = fromNex.Position.Distance(toNex.Position) / 40;

                Vector2 lastPos = fromNex.Position.To2D();
                //Setup sectors
                for (int i = 0; i < 40; i++)
                {
                    Vector2 end = lastPos.Extend(toNex.Position.To2D(), sep);
                    sectors.Add(new Sector(lastPos, end, 750));
                    lastPos = end;
                }
                MapControl.setupMapControl();
                AutoLevelChamp.setAutoLevel();
                AutoShopper.init();
                setUpItems();
                setChamp();
                AutoShopper.setBuild(champBuild);

                sSpells = new SummonerSpells();
                if (champ != null)
                {
                    champ.setUpSpells();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.StackTrace);
            }
        }
Пример #6
0
 public bool gotIt()
 {
     return(primary == null || AutoShopper.gotItem(primary) || (secondary != null && AutoShopper.gotItem(secondary)));
 }
Пример #7
0
 public ConditionalItem(ItemId pri, ItemId sec = ItemId.Unknown, ItemCondition cond = ItemCondition.TAKE_PRIMARY)
 {
     primary   = AutoShopper.getData((int)pri);
     secondary = (sec == ItemId.Unknown) ? null : AutoShopper.getData((int)sec);
     condition = cond;
 }
Пример #8
0
 public ConditionalItem(int pri, int sec = -1, ItemCondition cond = ItemCondition.TAKE_PRIMARY)
 {
     primary   = AutoShopper.getData(pri);
     secondary = (sec == -1)?null:AutoShopper.getData(sec);
     condition = cond;
 }