示例#1
0
 public static void Init()
 {
     RandomWalk.Init();
     BuyManager.InitItems();
     Ryze.InitSpells();
     Garen.InitSpells();
     Warwick.InitSpells();
     MasterYi.InitSpells();
     Ahri.InitSpells();
     Annie.InitSpells();
 }
示例#2
0
        static void Game_OnUpdate(EventArgs args)
        {
            SkillManager.AutoLevelUp();
            if (Player.IsDead || Player.Distance(TEAM_POS) < 500)
            {
                BuyManager.Buy();
            }


            if (Player.IsDead && Items.HasItem(3345) && Items.CanUseItem(3345))
            {
                Items.UseItem(3345);
//		Game.PrintChat("Use Soul_Anchor_Trinket");
            }
            else
            {
//		Game.PrintChat("wating...");
            }

            if (!Player.IsDead)
            {
                if (Player.HealthPercent <= 30 || Player.ManaPercent <= 20 && Player.CountEnemiesInRange(1200) > 2)
                {
                    MoveBase();
//                    Game.PrintChat("Home!");
                }
                else
                {
//                    if (Player.CountEnemiesInRange(Range) < 3 && Player.UnderTurret(true)) && Player.CountAlliesInRange(1200) > 1
                    if (Player.CountEnemiesInRange(Range) < 3)
                    {
                        LeagueSharp.Common.Utility.DelayAction.Add(500, PathWalker.WalkAndFight);
                    }
                    else
                    {
                        Range = MaxRange;

                        if (Player.CountEnemiesInRange(MaxRange) <= 1)
                        {
                            Range = 900;
                        }

                        LeagueSharp.Common.Utility.DelayAction.Add(1000, RandomWalk.Walk);
                    }
                }
            } // Dead
        }     //OnUpdate