コード例 #1
0
        private static float ComboDamage(Obj_AI_Base enemy)
        {
            int    UC        = ultiCount();
            int    jumpCount = (UC - (int)(enemy.Distance(player.Position) / R.Range));
            double damage    = 0d;

            if (Dfg.IsReady())
            {
                damage += player.GetItemDamage(enemy, Damage.DamageItems.Dfg) / 1.2;
            }

            if (Gunblade.IsReady())
            {
                damage += player.GetItemDamage(enemy, Damage.DamageItems.Hexgun);
            }

            if (Q.IsReady())
            {
                damage += player.GetSpellDamage(enemy, SpellSlot.Q);
            }

            if (UC > 0)
            {
                damage += jumpCount > 0 ? player.GetSpellDamage(enemy, SpellSlot.R) * jumpCount : player.GetSpellDamage(enemy, SpellSlot.R);
            }

            if (Dfg.IsReady())
            {
                damage = damage * 1.2;
            }

            if (E.IsReady())
            {
                damage += player.GetSpellDamage(enemy, SpellSlot.E);
            }

            if (player.Spellbook.CanUseSpell(IgniteSlot) == SpellState.Ready)
            {
                damage += player.GetSummonerSpellDamage(enemy, Damage.SummonerSpell.Ignite);
            }

            if (Items.HasItem(3155, (Obj_AI_Hero)enemy))
            {
                damage = damage - 250;
            }

            if (Items.HasItem(3156, (Obj_AI_Hero)enemy))
            {
                damage = damage - 400;
            }
            return((float)damage);
        }
コード例 #2
0
        public static void Combo()
        {
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            if (target == null)
            {
                return;
            }


            if (Gunblade.IsReady() && xMenu.Item("useItems").GetValue <bool>() == true)
            {
                Gunblade.Cast(target);
            }

            if (Dfg.IsReady() && xMenu.Item("useItems").GetValue <bool>() == true)
            {
                Dfg.Cast(target);
            }

            if (target.IsValidTarget(Q.Range) && Q.IsReady() && xMenu.Item("useQ").GetValue <bool>() == true)
            {
                Q.Cast(target, xMenu.Item("Packet").GetValue <bool>());
            }

            if (target.IsValidTarget(W.Range) && W.IsReady() && xMenu.Item("useW").GetValue <bool>() == true)
            {
                W.Cast(target, xMenu.Item("Packet").GetValue <bool>());
            }



            if (target.IsValidTarget(R.Range) && R.IsReady() && ObjectManager.Player.GetSpellDamage(target, SpellSlot.R) > target.Health && xMenu.Item("useR").GetValue <bool>() == true)
            {
                R.CastOnUnit(target, xMenu.Item("Packet").GetValue <bool>());
            }
        }
コード例 #3
0
        public static void Combo()
        {
            var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical);

            if (target == null)
            {
                return;
            }

            float dmg = ComboDamage(target);

            if (dmg > target.Health + 20)
            {
                if (Gunblade.IsReady() && xMenu.Item("useItems").GetValue <bool>())
                {
                    Gunblade.Cast(target);
                }

                if (Dfg.IsReady() && xMenu.Item("useItems").GetValue <bool>() == true)
                {
                    Dfg.Cast(target);
                }

                if (target.IsValidTarget(Q.Range) && Q.IsReady() && xMenu.Item("useQ").GetValue <bool>() == true)
                {
                    Q.CastOnUnit(target, xMenu.Item("Packet").GetValue <bool>());
                }

                if (xMenu.Item("chaseR").GetValue <bool>())
                {
                    if (target.IsValidTarget(xMenu.Item("RRange").GetValue <Slider>().Value) && R.IsReady() && xMenu.Item("useR").GetValue <bool>())
                    {
                        R.CastOnUnit(target);
                    }
                }
                else
                {
                    if (target.IsValidTarget(R.Range) && R.IsReady() && xMenu.Item("useR").GetValue <bool>())
                    {
                        R.CastOnUnit(target, xMenu.Item("Packet").GetValue <bool>());
                    }
                }

                if (target.IsValidTarget(E.Range) && E.IsReady() && xMenu.Item("useE").GetValue <bool>() == true)
                {
                    E.Cast(target, xMenu.Item("Packet").GetValue <bool>());
                }
            }

            else
            {
                if (target.IsValidTarget(Q.Range) && Q.IsReady() && xMenu.Item("useQ").GetValue <bool>() == true)
                {
                    Q.CastOnUnit(target, xMenu.Item("Packet").GetValue <bool>());
                }

                if (xMenu.Item("chaseR").GetValue <bool>())
                {
                    if (target.IsValidTarget(Q.Range + 100) && R.IsReady() && xMenu.Item("useR").GetValue <bool>())
                    {
                        R.CastOnUnit(target);
                    }
                }
                else
                {
                    if (target.IsValidTarget(R.Range) && R.IsReady() && xMenu.Item("useR").GetValue <bool>())
                    {
                        R.CastOnUnit(target, xMenu.Item("Packet").GetValue <bool>());
                    }
                }



                if (target.IsValidTarget(E.Range) && E.IsReady() && xMenu.Item("useE").GetValue <bool>() == true)
                {
                    E.Cast(target, xMenu.Item("Packet").GetValue <bool>());
                }
            }
        }
コード例 #4
0
        public static void ExecuteItems()
        {
            //Item Target's
            var botrktarget     = TargetSelector.GetTarget(Botrk.Range, DamageType.Physical);
            var gunbladetarget  = TargetSelector.GetTarget(Gunblade.Range, DamageType.Magical);
            var protobelttarget = TargetSelector.GetTarget(Protobelt.Range, DamageType.Magical);
            var glptarget       = TargetSelector.GetTarget(GLP.Range, DamageType.Magical);
            var cutlasstarget   = TargetSelector.GetTarget(Cutlass.Range, DamageType.Magical);

            if ((botrktarget == null) || botrktarget.IsInvulnerable)
            {
                return;
            }
            //Blade of the Ruined King
            if (ComboMenu["Botrk"].Cast <CheckBox>().CurrentValue)
            {
                if ((Player.Instance.CountEnemiesInRange(550) >= 1) && Botrk.IsReady() && Botrk.IsOwned() &&
                    botrktarget.IsValidTarget(Botrk.Range))
                {
                    Botrk.Cast(botrktarget);
                }
            }

            if ((gunbladetarget == null) || gunbladetarget.IsInvulnerable)
            {
                return;
            }
            //Hextech Gunblade
            if (ComboMenu["Gunblade"].Cast <CheckBox>().CurrentValue)
            {
                if ((Player.Instance.CountEnemiesInRange(700) >= 1) && Gunblade.IsReady() && Gunblade.IsOwned() &&
                    gunbladetarget.IsValidTarget(Gunblade.Range))
                {
                    Gunblade.Cast(gunbladetarget);
                }
            }

            if ((protobelttarget == null) || protobelttarget.IsInvulnerable)
            {
                return;
            }
            //Protobelt
            if (ComboMenu["Protobelt"].Cast <CheckBox>().CurrentValue)
            {
                if ((Player.Instance.CountEnemiesInRange(600) >= 1) && Protobelt.IsReady() && Protobelt.IsOwned() &&
                    protobelttarget.IsValidTarget(Protobelt.Range))
                {
                    Protobelt.Cast(protobelttarget.Position);
                }
            }

            if ((glptarget == null) || glptarget.IsInvulnerable)
            {
                return;
            }
            //GLP
            if (ComboMenu["GLP"].Cast <CheckBox>().CurrentValue)
            {
                if ((Player.Instance.CountEnemiesInRange(600) >= 1) && GLP.IsReady() && GLP.IsOwned() &&
                    glptarget.IsValidTarget(GLP.Range))
                {
                    GLP.Cast(glptarget);
                }
            }

            if ((cutlasstarget == null) || cutlasstarget.IsInvulnerable)
            {
                return;
            }
            //Bilgewater Cutlass
            if (ComboMenu["Cutlass"].Cast <CheckBox>().CurrentValue)
            {
                if ((Player.Instance.CountEnemiesInRange(550) >= 1) && Cutlass.IsReady() && Cutlass.IsOwned() &&
                    cutlasstarget.IsValidTarget(Cutlass.Range))
                {
                    Cutlass.Cast(cutlasstarget);
                }
            }

            /*
             *
             * //Summoners Target
             * var Summ1 = TargetSelector.GetTarget(Smite.Range, DamageType.Mixed);
             * var Summ2 = TargetSelector.GetTarget(Ignite.Range, DamageType.Mixed);
             *
             * if ((Summ1 == null) || Summ1.IsInvulnerable)
             *  return;
             * //Smite
             * if (ComboMenu["Smite"].Cast<CheckBox>().CurrentValue)
             *  if (Player.Instance.CountEnemiesInRange(500) >= 1 && Smite.IsReady() && Smite.IsLearned && Summ1.IsValidTarget(Smite.Range))
             *      Smite.Cast(Summ1);
             *
             *
             * if ((Summ2 == null) || Summ2.IsInvulnerable)
             *  return;
             * //Ignite
             * if (ComboMenu["Ignite"].Cast<CheckBox>().CurrentValue)
             *  if (Player.Instance.CountEnemiesInRange(600) >= 1 && Ignite.IsReady() && Ignite.IsLearned && Summ2.IsValidTarget(Ignite.Range))
             *      Ignite.Cast(Summ2);
             *
             */
        }