コード例 #1
0
ファイル: Jhin.cs プロジェクト: geramz/PortAIO
        private static void OnUpdate(EventArgs args)
        {
            if (!ObjectManager.Player.IsActive(Spells.R))
            {
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    Combo.Execute();
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
                {
                    Clear.Execute();
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                {
                    Jungle.Execute();
                }
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                {
                    Harass.Execute();
                }
            }


            if (ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.DisableAttacking = true;
                Orbwalker.DisableMovement  = true;
            }
            else if (!ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.DisableAttacking = false;
                Orbwalker.DisableMovement  = false;
            }

            if (getKeyBindItem(Config.SemiManualUlt, "semi.manual.ult") && !ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.OrbwalkTo(Game.CursorPos);
            }

            if (Spells.R.IsReady() && getKeyBindItem(Config.SemiManualUlt, "semi.manual.ult"))
            {
                Ultimate.Execute();
            }


            if (getCheckBoxItem(Config.itemMenu, "use.qss") && (Items.HasItem((int)ItemId.Quicksilver_Sash) && Items.CanUseItem((int)ItemId.Quicksilver_Sash) ||
                                                                Items.CanUseItem(3139) && Items.HasItem(3137)))
            {
                Qss.ExecuteQss();
            }

            if (getCheckBoxItem(Config.miscMenu, "auto.orb.buy") && ObjectManager.Player.Level >= getSliderItem(Config.miscMenu, "orb.level") &&
                !Items.HasItem((int)ItemId.Farsight_Alteration))
            {
                Shop.BuyItem(ItemId.Farsight_Alteration);
            }
        }
コード例 #2
0
ファイル: Renekton.cs プロジェクト: KaiDai/LeagueSharp
        private void Game_OnGameUpdate(EventArgs args)
        {
            bool minionBlock = false;

            foreach (Obj_AI_Minion minion in MinionManager.GetMinions(player.Position, player.AttackRange + 55, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.None))
            {
                if (HealthPrediction.GetHealthPrediction(minion, 3000) <= Damage.GetAutoAttackDamage(player, minion, false))
                {
                    minionBlock = true;
                }
            }
            if (System.Environment.TickCount - lastE > 4100)
            {
                lastE = 0;
            }
            if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown)
            {
                var  target     = Jungle.GetNearest(player.Position);
                bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready;

                if (target != null)
                {
                    Jungle.setSmiteSlot();
                    if (Jungle.smite.CanCast(target) && smiteReady &&
                        player.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health)
                    {
                        Jungle.CastSmite(target);
                    }
                }
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                if (!minionBlock)
                {
                    Harass();
                }
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                Clear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                if (!minionBlock)
                {
                }
                break;
            }
        }
コード例 #3
0
ファイル: Shen.cs プロジェクト: fatihyilmaz2/LeagueSharp-1
        private static void Game_OnGameUpdate(EventArgs args)
        {
            Ulti();
            if (config.Item("useeflash", true).GetValue <KeyBind>().Active&&
                player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerFlash")) == SpellState.Ready)
            {
                FlashCombo();
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                Clear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);

            var bladeObj =
                ObjectManager.Get <Obj_AI_Base>()
                .Where(
                    o => (o.Name == "ShenSpiritUnit" || o.Name == "ShenArrowVfxHostMinion") && o.Team == player.Team)
                .OrderBy(o => o.Distance(bladeOnCast))
                .FirstOrDefault();

            if (bladeObj != null)
            {
                blade = bladeObj.Position;
            }
            if (W.IsReady() && blade.IsValid())
            {
                foreach (var ally in HeroManager.Allies.Where(a => a.Distance(blade) < bladeRadius))
                {
                    var data = Program.IncDamages.GetAllyData(ally.NetworkId);
                    if (config.Item("autowAgg", true).GetValue <Slider>().Value <= data.AADamageCount)
                    {
                        W.Cast();
                    }
                    if (data.AADamageTaken >= ally.Health * 0.2f && config.Item("autow", true).GetValue <bool>())
                    {
                        W.Cast();
                    }
                }
            }
        }
コード例 #4
0
 private void Game_OnDraw(EventArgs args)
 {
     DrawHelper.DrawCircle(config.Item("drawaa", true).GetValue <Circle>(), player.AttackRange);
     DrawHelper.DrawCircle(config.Item("drawww", true).GetValue <Circle>(), W.Range);
     DrawHelper.DrawCircle(config.Item("drawee", true).GetValue <Circle>(), E.Range);
     DrawHelper.DrawCircle(config.Item("drawrr", true).GetValue <Circle>(), R.Range);
     Jungle.ShowSmiteStatus(
         config.Item("useSmite").GetValue <KeyBind>().Active, config.Item("smiteStatus").GetValue <bool>());
     Utility.HpBarDamageIndicator.Enabled = config.Item("drawcombo").GetValue <bool>();
 }
コード例 #5
0
 public Volibear()
 {
     InitVolibear();
     InitMenu();
     //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Volibear</font>");
     Drawing.OnDraw += Game_OnDraw;
     Game.OnUpdate  += Game_OnGameUpdate;
     Jungle.setSmiteSlot();
     HpBarDamageIndicator.DamageToUnit = ComboDamage;
 }
コード例 #6
0
 public Garen()
 {
     InitGaren();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Garen</font>");
     Game.OnUpdate          += Game_OnGameUpdate;
     Orbwalking.AfterAttack += AfterAttack;
     Drawing.OnDraw         += Game_OnDraw;
     Jungle.setSmiteSlot();
 }
コード例 #7
0
 public Hecarim()
 {
     InitHecarim();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Hecarim</font>");
     Game.OnUpdate  += Game_OnUpdate;
     Drawing.OnDraw += Drawing_OnDraw;
     Jungle.setSmiteSlot();
     Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
 }
コード例 #8
0
 public Evelynn()
 {
     InitEvelynn();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Evelynn</font>");
     Game.OnUpdate  += Game_OnGameUpdate;
     Drawing.OnDraw += Game_OnDraw;
     Jungle.setSmiteSlot();
     Orbwalking.OnAttack += Orbwalking_AfterAttack;
 }
コード例 #9
0
ファイル: Poppy.cs プロジェクト: Dekryptor/Port-1
 public Poppy()
 {
     Initpoppy();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Poppy</font>");
     Game.OnUpdate  += Game_OnGameUpdate;
     Drawing.OnDraw += Game_OnDraw;
     AntiGapcloser.OnEnemyGapcloser     += OnEnemyGapcloser;
     Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
     Jungle.setSmiteSlot();
 }
コード例 #10
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            bool minionBlock = false;

            foreach (Obj_AI_Minion minion in MinionManager.GetMinions(me.Position, me.AttackRange, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.None))
            {
                if (HealthPrediction.GetHealthPrediction(minion, 3000) <= Damage.GetAutoAttackDamage(me, minion, false))
                {
                    minionBlock = true;
                }
            }
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                //if (!minionBlock) Harass();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                if (!minionBlock)
                {
                    Clear();
                }
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }

            if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown)
            {
                Jungle.setSmiteSlot();
                var  target     = Jungle.GetNearest(me.Position);
                bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready;
                if (target != null)
                {
                    if (Jungle.smite.CanCast(target) && smiteReady && me.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health)
                    {
                        Jungle.CastSmite(target);
                    }
                }
            }

            if (config.Item("manualR").GetValue <KeyBind>().Active&& R.IsReady())
            {
                CastR();
            }
        }
コード例 #11
0
ファイル: Ivern.cs プロジェクト: Dekryptor/Port-1
        public Ivern()
        {
            InitIvern();
            InitMenu();
            //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Ivern</font>");
            Game.OnUpdate  += Game_OnGameUpdate;
            Drawing.OnDraw += Game_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;

            Jungle.setSmiteSlot();
        }
コード例 #12
0
ファイル: Hecarim.cs プロジェクト: yashine59fr/Port
 public Hecarim()
 {
     InitHecarim();
     InitMenu();
     //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Hecarim</font>");
     Game.OnUpdate  += Game_OnUpdate;
     Drawing.OnDraw += Drawing_OnDraw;
     Jungle.setSmiteSlot();
     Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
     HpBarDamageIndicator.DamageToUnit   = ComboDamage;
 }
コード例 #13
0
 public Evelynn()
 {
     InitEvelynn();
     InitMenu();
     //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Evelynn</font>");
     Game.OnUpdate  += Game_OnGameUpdate;
     Drawing.OnDraw += Game_OnDraw;
     Jungle.setSmiteSlot();
     Orbwalking.OnAttack += Orbwalking_AfterAttack;
     HpBarDamageIndicator.DamageToUnit = ComboDamage;
 }
コード例 #14
0
ファイル: Ivern.cs プロジェクト: qazji3/LeagueSharp-7
 public Ivern()
 {
     InitIvern();
     InitMenu();
     //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Ivern</font>");
     Game.OnUpdate  += Game_OnGameUpdate;
     Drawing.OnDraw += Game_OnDraw;
     Obj_AI_Base.OnProcessSpellCast   += Obj_AI_Base_OnProcessSpellCast;
     HpBarDamageIndicator.DamageToUnit = ComboDamage;
     Jungle.setSmiteSlot();
 }
コード例 #15
0
 public Renekton()
 {
     InitRenekton();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Renekton</font>");
     Game.OnUpdate           += Game_OnGameUpdate;
     Orbwalking.BeforeAttack += beforeAttack;
     Orbwalking.AfterAttack  += afterAttack;
     Drawing.OnDraw          += Game_OnDraw;
     Jungle.setSmiteSlot();
 }
コード例 #16
0
ファイル: Garen.cs プロジェクト: q199230217/LeagueSharp
 public Garen()
 {
     InitGaren();
     InitMenu();
     Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Garen</font>");
     Game.OnUpdate          += Game_OnGameUpdate;
     Orbwalking.AfterAttack += AfterAttack;
     Drawing.OnDraw         += Game_OnDraw;
     Jungle.setSmiteSlot();
     Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;
 }
コード例 #17
0
ファイル: Jhin.cs プロジェクト: wade1990/PortAIO
        private static void OnUpdate(EventArgs args)
        {
            switch (Orbwalker.ActiveMode)
            {
            case OrbwalkingMode.Combo:
                Combo.Execute();
                break;

            case OrbwalkingMode.LaneClear:
                Jungle.Execute();
                Clear.Execute();
                break;

            case OrbwalkingMode.Hybrid:
                Harass.Execute();
                break;
            }

            if (ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.AttackState   = false;
                Orbwalker.MovementState = false;
                Orbwalker.Enabled       = false;
            }
            else if (!ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.AttackState   = true;
                Orbwalker.MovementState = true;
                Orbwalker.Enabled       = true;
            }

            if (Config.SemiManualUlt.Active && !ObjectManager.Player.IsActive(Spells.R))
            {
                Orbwalker.Move(Game.CursorPos);
            }

            if (Config.SemiManualUlt.Active && Spells.R.IsReady())
            {
                Ultimate.Execute();
            }


            if (Config.Menu["activator.settings"]["use.qss"] && (Items.HasItem((int)ItemId.Quicksilver_Sash) && Items.CanUseItem((int)ItemId.Quicksilver_Sash) ||
                                                                 Items.CanUseItem(3139) && Items.HasItem(3137)))
            {
                Qss.ExecuteQss();
            }

            if (Config.Menu["misc.settings"]["auto.orb.buy"] && ObjectManager.Player.Level >= Config.Menu["misc.settings"]["orb.level"] &&
                !Items.HasItem((int)ItemId.Farsight_Alteration))
            {
                Shop.BuyItem(ItemId.Farsight_Alteration);
            }
        }
コード例 #18
0
ファイル: Sion.cs プロジェクト: fatihyilmaz2/LeagueSharp-1
        private void Game_OnGameUpdate(EventArgs args)
        {
            if (Q.IsCharging || activatedR)
            {
                orbwalker.SetAttack(false);
                orbwalker.SetMovement(false);
            }
            else
            {
                orbwalker.SetAttack(true);
                orbwalker.SetMovement(true);
            }
            Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active);
            switch (orbwalker.ActiveMode)
            {
            case Orbwalking.OrbwalkingMode.Combo:
                Combo();
                break;

            case Orbwalking.OrbwalkingMode.Mixed:
                Harass();
                break;

            case Orbwalking.OrbwalkingMode.LaneClear:
                Clear();
                break;

            case Orbwalking.OrbwalkingMode.LastHit:
                break;

            default:
                break;
            }
            var data = Program.IncDamages.GetAllyData(player.NetworkId);

            if (data != null && !activatedW && config.Item("AshieldB", true).GetValue <bool>() &&
                data.DamageCount >= config.Item("wMinAggro", true).GetValue <Slider>().Value&&
                player.ManaPercent > config.Item("minmanaAgg", true).GetValue <Slider>().Value)
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
            if (data != null && !activatedW && config.Item("AshieldB", true).GetValue <bool>() && W.IsReady() &&
                (data.DamageTaken > player.Health ||
                 data.DamageTaken > getWShield() / 100f * config.Item("AshieldDmg", true).GetValue <Slider>().Value))
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
            if (data != null && activatedW && data.DamageTaken > player.GetBuff("sionwshieldstacks").Count&&
                data.DamageTaken < player.Health)
            {
                W.Cast(config.Item("packets").GetValue <bool>());
            }
        }
コード例 #19
0
ファイル: Sejuani.cs プロジェクト: Dekryptor/Port-1
 public Sejuani()
 {
     InitSejuani();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Sejuani</font>");
     Game.OnUpdate  += Game_OnGameUpdate;
     Drawing.OnDraw += Game_OnDraw;
     AntiGapcloser.OnEnemyGapcloser     += OnEnemyGapcloser;
     Interrupter2.OnInterruptableTarget += OnPossibleToInterrupt;
     Orbwalking.AfterAttack             += AfterAttack;
     Jungle.setSmiteSlot();
 }
コード例 #20
0
        public void CarnivoresKillHerbivoresTest()
        {
            var randomGen = new Random();
            var herbs     = Enumerable.Range(0, 100).Select(i => new Herbivore(randomGen)).ToList();
            var carns     = Enumerable.Range(0, 20).Select(i => new Carnivore(randomGen)).ToList();
            var cell      = new Jungle(new Position {
                x = 0, y = 0
            }, randomGen, herbs, carns);

            cell.CarnivoreFeedingCycle();
            Assert.True(cell.Herbivores.Count() < 100);
        }
コード例 #21
0
        //public static AutoLeveler autoLeveler;

        public Poppy()
        {
            Initpoppy();
            InitMenu();
            //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Poppy</font>");
            Game.OnTick    += Game_OnGameUpdate;
            Drawing.OnDraw += Game_OnDraw;
            AntiGapcloser.OnEnemyGapcloser     += OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += OnInterruptableTarget;
            Jungle.setSmiteSlot();
            //HpBarDamageIndicator.DamageToUnit = ComboDamage;
        }
コード例 #22
0
ファイル: Renekton.cs プロジェクト: hama1/Port
        //public static AutoLeveler autoLeveler;

        public Renekton()
        {
            InitRenekton();
            InitMenu();
            //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Renekton</font>");
            Game.OnUpdate           += Game_OnGameUpdate;
            Orbwalking.BeforeAttack += beforeAttack;
            Orbwalking.AfterAttack  += afterAttack;
            Drawing.OnDraw          += Game_OnDraw;
            Jungle.setSmiteSlot();
            HpBarDamageIndicator.DamageToUnit = ComboDamage;
        }
コード例 #23
0
ファイル: Yorick.cs プロジェクト: sadnecc/CHportcn
 private static void AfterAttack(AttackableUnit target, EventArgs args)
 {
     if (Q.IsReady() &&
         ((Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && getCheckBoxItem(menuC, "useq") &&
           target is AIHeroClient) ||
          (getCheckBoxItem(menuLC, "useqLC") &&
           Jungle.GetNearest(player.Position).LSDistance(player.Position) < player.AttackRange + 30)))
     {
         Q.Cast(getCheckBoxItem(config, "packets"));
         Orbwalker.ResetAutoAttack();
     }
 }
コード例 #24
0
 internal static void InMenu()
 {
     Caiy = MainMenu.AddMenu("Caitlyn", "Caitlyn");
     Caiy.Add("AutoAtack", new CheckBox("Use Atack Buff [Enemy]"));
     pre = Caiy.AddSubMenu("Prediction");
     pre.Add("HitQ", new ComboBox("HitChance [Q]", 1, "Low", "Medium", "High"));
     pre.Add("HitW", new ComboBox("HitChance [W]", 2, "Low", "Medium", "High"));
     pre.Add("HitE", new ComboBox("HitChance [E]", 1, "Low", "Medium", "High"));
     Comb = Caiy.AddSubMenu("Combo");
     Comb.Add("Qc", new CheckBox("Use [Q]"));
     Comb.Add("Wc", new CheckBox("Use [W]"));
     Comb.Add("Ec", new CheckBox("Use [E]"));
     Comb.AddSeparator();
     Comb.AddLabel("Settings [R]");
     Comb.Add("Rf", new CheckBox("Use [R] Fish Enemy"));
     Comb.AddSeparator();
     Comb.Add("ModoR", new ComboBox("Mode [R]", 0, "Fish [R]", "Beta Mode [R]"));
     Comb.AddSeparator();
     Comb.AddLabel("Settings [Beta Mode R]");
     Comb.Add("LR", new Slider("Minimal of the Enemy's Life", 20, 1, 100));
     Comb.AddSeparator();
     Comb.AddLabel("Enemys, No Use on whom?");
     foreach (var enemies in EntityManager.Heroes.Enemies.Where(caity => !caity.IsMe))
     {
         Comb.Add("CaitlynUti" + enemies.ChampionName, new CheckBox("" + enemies.ChampionName, false));
     }
     Auto = Caiy.AddSubMenu("Auto Harass");
     Auto.Add("AutoQ", new CheckBox("AutoHarass [Q]"));
     Auto.AddSeparator();
     Auto.AddLabel("Mana Percent");
     Auto.Add("ManaQ", new Slider("Mana Percent [Q] > {0}", 65, 1));
     Lane = Caiy.AddSubMenu("Lane [Clear]");
     Lane.Add("Ql", new CheckBox("Use [Q] Lane"));
     Lane.AddSeparator();
     Lane.AddLabel("Mana Percent");
     Lane.Add("ManaL", new Slider("Mana Percent > {0}", 50, 1, 100));
     Lane.AddSeparator();
     Lane.AddLabel("Minions");
     Lane.Add("Qmi", new Slider("Minion Percent > {0}", 3, 1, 6));
     Jungle = Caiy.AddSubMenu("Jungle [Clear]");
     Jungle.Add("Qj", new CheckBox("Use [Q] Jungle"));
     Jungle.AddSeparator();
     Jungle.AddLabel("Mana Percent");
     Jungle.Add("Q/J", new Slider("Mana Percent [Q/E]", 65, 1));
     Misc = Caiy.AddSubMenu("Misc");
     Misc.Add("Ks", new CheckBox("KillSteal"));
     Draws = Caiy.AddSubMenu("Draws [Spells]");
     Draws.Add("DQ", new CheckBox("[Q] Draws"));
     Draws.Add("DW", new CheckBox("[W] Draws"));
     Draws.Add("DE", new CheckBox("[E] Draws"));
     Draws.Add("DR", new CheckBox("[R] Draws"));
 }
コード例 #25
0
 public Yorick()
 {
     InitYorick();
     InitMenu();
     Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Yorick</font>");
     Jungle.setSmiteSlot();
     Game.OnUpdate           += Game_OnGameUpdate;
     Orbwalking.AfterAttack  += AfterAttack;
     Orbwalking.BeforeAttack += beforeAttack;
     Drawing.OnDraw          += Game_OnDraw;
     Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;
     Obj_AI_Base.OnProcessSpellCast           += Obj_AI_Base_OnProcessSpellCast;
 }
コード例 #26
0
 private static void AfterAttack(AttackableUnit unit, AttackableUnit target)
 {
     if (unit.IsMe && Q.IsReady() &&
         ((orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && config.Item("useq").GetValue <bool>() &&
           target is Obj_AI_Hero) ||
          (config.Item("useqLC").GetValue <bool>() &&
           Jungle.GetNearest(player.Position).Distance(player.Position) < player.AttackRange + 30)))
     {
         Q.Cast(config.Item("packets").GetValue <bool>());
         Orbwalking.ResetAutoAttackTimer();
         //player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
     }
 }
コード例 #27
0
ファイル: Shen.cs プロジェクト: Dekryptor/Port-1
 public Shen()
 {
     InitShen();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Shen</font>");
     Game.OnUpdate  += Game_OnGameUpdate;
     Drawing.OnDraw += Game_OnDraw;
     AntiGapcloser.OnEnemyGapcloser     += OnEnemyGapcloser;
     Interrupter2.OnInterruptableTarget += OnPossibleToInterrupt;
     Obj_AI_Base.OnDamage           += Obj_AI_Base_OnDamage;
     Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell;
     Jungle.setSmiteSlot();
 }
コード例 #28
0
ファイル: Evelynn.cs プロジェクト: KaiDai/LeagueSharp
 public Evelynn()
 {
     if (player.BaseSkinName != "Evelynn")
     {
         return;
     }
     InitMenu();
     InitEvelynn();
     Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Evelynn</font>");
     Game.OnGameUpdate += Game_OnGameUpdate;
     Drawing.OnDraw    += Game_OnDraw;
     Jungle.setSmiteSlot();
 }
コード例 #29
0
ファイル: Fiora.cs プロジェクト: fgpmaia123/LeagueSharp-21
 public Fiora()
 {
     InitFiora();
     InitMenu();
     Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Fiora</font>");
     Game.OnUpdate                  += Game_OnGameUpdate;
     Drawing.OnDraw                 += Game_OnDraw;
     Orbwalking.AfterAttack         += AfterAttack;
     Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell;
     Jungle.setSmiteSlot();
     Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage;
     GameObject.OnCreate += GameObject_OnCreate;
     GameObject.OnDelete += GameObject_OnDelete;
 }
コード例 #30
0
ファイル: Trundle.cs プロジェクト: waldow90/PortAIO
 public Trundle()
 {
     InitTrundle();
     InitMenu();
     //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Trundle</font>");
     Game.OnUpdate  += Game_OnUpdate;
     Drawing.OnDraw += Drawing_OnDraw;
     Jungle.setSmiteSlot();
     Obj_AI_Base.OnDamage               += Obj_AI_Base_OnDamage;
     Orbwalking.AfterAttack             += AfterAttack;
     Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget;
     HpBarDamageIndicator.DamageToUnit   = ComboDamage;
     Obj_AI_Base.OnProcessSpellCast     += Obj_AI_Base_OnProcessSpellCast;
 }
コード例 #31
0
ファイル: Script.cs プロジェクト: timkboo/LeagueSharp
        private void onLoad(EventArgs args)
        {
            // Se for o Master Yi
            if (ObjectManager.Player.BaseSkinName == charName)
            {
                masterYi = new Master();
                jg = new Jungle();

                // Boas vindas
                Game.PrintChat(string.Format("<font color='#3BB9FF'>{0} - by Crisdmc - </font>Loaded", charName));

                try
                {
                    Config = new Menu("MasterYi", "MasterYi", true);
                    // OrbWalker
                    Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                    masterYi.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));

                    // Target Selector
                    var TargetSelectorMenu = new Menu("Target Selector", "targetSelector");
                    TargetSelector.AddToMenu(Config.SubMenu("targetSelector"));

                    // Combo
                    Config.AddSubMenu(new Menu("Combo", "combo"));
                    Config.SubMenu("combo").AddItem(new MenuItem("useQ", "Use Q")).SetValue(true);
                    Config.SubMenu("combo").AddItem(new MenuItem("useW", "Use W")).SetValue(true);
                    Config.SubMenu("combo").AddItem(new MenuItem("useE", "Use E")).SetValue(true);
                    Config.SubMenu("combo").AddItem(new MenuItem("useR", "Use R")).SetValue(true);
                    Config.SubMenu("combo").AddItem(new MenuItem("orbLock", "Orbwalk Lock")).SetValue(false);
                    Config.SubMenu("combo").AddItem(new MenuItem("usePacket", "Use Packet")).SetValue(false);

                    // W options
                    Config.AddSubMenu(new Menu("W Options", "wOptions"));
                    Config.SubMenu("wOptions").AddItem(new MenuItem("useWWhen", "")).SetValue(new StringList(new[] { "Combo", "After Attack", "Combo(AA)" }, 2));
                    Config.SubMenu("wOptions").AddItem(new MenuItem("useWon", "Use W on %")).SetValue(new Slider(40, 100, 0));
                    Config.SubMenu("wOptions").AddItem(new MenuItem("shortW", "Interrupt W")).SetValue(true);
                    Config.SubMenu("wOptions").AddItem(new MenuItem("shortWRange", "")).SetValue(new StringList(new[] { "AA Range", "300" }, 0));

                    // Lane Clear
                    Config.AddSubMenu(new Menu("Lane Clear", "laneclear"));
                    var menuLaneCQ = new Menu("Q", "LCQ");
                    menuLaneCQ.AddItem(new MenuItem("useQLC", "Enable")).SetValue(true);
                    menuLaneCQ.AddItem(new MenuItem("useQLCX", "X Units")).SetValue(new Slider(3, 1, 5));
                    Config.SubMenu("laneclear").AddSubMenu(menuLaneCQ);

                    // Draw
                    Config.AddSubMenu(new Menu("Draw", "draw"));
                    Config.SubMenu("draw").AddItem(new MenuItem("drawQ", "Q")).SetValue(true);

                    // Jungle Slack
                    Config.AddSubMenu(new Menu("Jungle Slack", "slack"));
                    Config.SubMenu("slack").AddItem(new MenuItem("activeSlack", "Active(IMPLEMENTING)")).SetValue(new KeyBind("F1".ToCharArray()[0], KeyBindType.Toggle, false));

                    // Additionals
                    Config.AddSubMenu(new Menu("Additionals", "additionals"));
                    Config.SubMenu("additionals").AddItem(new MenuItem("autoUpSkill", "Auto Up Skills")).SetValue(true);
                    Config.SubMenu("additionals").AddItem(new MenuItem("autoSkillOrder", "")).SetValue(new StringList(new[] { "Q>E>W(2W)", "Q>W>E(2E)" }, 0));

                    Config.AddToMainMenu();
                }
                catch
                {
                    Game.PrintChat("MasterYi error creating menu!");
                }

                // attach events
                Drawing.OnDraw += onDraw;
                Game.OnGameUpdate += OnGameUpdate;
                CustomEvents.Unit.OnLevelUp += onLevelUpEvent;
                Orbwalking.AfterAttack += afterAttackEvent;

                // Se o auto up de skill estiver ligado
                if (Config.Item("autoUpSkill").GetValue<bool>())
                {
                    int order = Config.Item("autoSkillOrder").GetValue<StringList>().SelectedIndex;
                    masterYi.autoUpSkill(order, masterYi.player.Level);
                }
            }
        }