예제 #1
0
        private static void OnHarrass()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range);
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (!target.IsValidTarget())
            {
                return;
            }

            if (Q.IsReady() && target.IsValidTarget(700))
            {
                foreach (var eenemies in enemies)
                {
                    var useQ = CaitlynTheTrollMeNu.HarassMeNu["harass.Q"
                                                              + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useQ && Player.ManaPercent >= CaitlynTheTrollMeNu.HarassQe())
                    {
                        var predQharass = Q.GetPrediction(target);
                        if (predQharass.HitChance >= HitChance.High)
                        {
                            Q.Cast(predQharass.CastPosition);
                        }
                    }
                }
            }
            if (W.IsReady() && target.IsValidTarget(W.Range) && CaitlynTheTrollMeNu.HarassW() &&
                Player.ManaPercent >= CaitlynTheTrollMeNu.HarassQe())
            {
                var predWharass = W.GetPrediction(target);
                if (predWharass.HitChance >= HitChance.High)
                {
                    W.Cast(predWharass.CastPosition);
                }
            }
        }
예제 #2
0
        private static void GameOnDraw(EventArgs args)
        {
            if (CaitlynTheTrollMeNu.Nodraw())
            {
                return;
            }

            {
                if (CaitlynTheTrollMeNu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.Purple, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (CaitlynTheTrollMeNu.DrawingsW())
                {
                    new Circle {
                        Color = Color.Purple, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (CaitlynTheTrollMeNu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Purple, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (CaitlynTheTrollMeNu.DrawingsR())
                {
                    new Circle {
                        Color = Color.Purple, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                DamageIndicator.HealthbarEnabled =
                    CaitlynTheTrollMeNu.DrawMeNu["healthbar"].Cast <CheckBox>().CurrentValue;
                DamageIndicator.PercentEnabled = CaitlynTheTrollMeNu.DrawMeNu["percent"].Cast <CheckBox>().CurrentValue;
            }
        }
예제 #3
0
파일: Program.cs 프로젝트: tekintr/Elobuddy
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Caitlyn")
            {
                return;
            }
            Chat.Print(
                "<font color=\"#6909aa\" >MeLoSenpai Presents </font><font color=\"#fffffff\" >Caitlyn </font><font color=\"#6909aa\" >The Troll Ceviri TekinTR</font>");
            Chat.Print("Yuklenen versiyon 1.6 (27-10-2016)", Color.Red);
            CaitlynTheTrollMeNu.LoadMenu();
            Game.OnTick += GameOnTick;
            Activator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill

            Q = new Spell.Skillshot(SpellSlot.Q, 1200, SkillShotType.Linear, 625, 2200, 90)
            {
                AllowedCollisionCount = -1
            };
            W = new Spell.Skillshot(SpellSlot.W, 800, SkillShotType.Circular, 500, int.MaxValue, 20);
            E = new Spell.Skillshot(SpellSlot.E, 800, SkillShotType.Linear, 150, 1600, 80)
            {
                AllowedCollisionCount = 0
            };
            R = new Spell.Targeted(SpellSlot.R, 2000);

            #endregion

            Gapcloser.OnGapcloser            += AntiGapCloser;
            Interrupter.OnInterruptableSpell += Interupt;
            Obj_AI_Base.OnBuffGain           += OnBuffGain;
            Orbwalker.OnPostAttack           += OnAfterAttack;
            Drawing.OnDraw += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
        }
예제 #4
0
파일: Program.cs 프로젝트: tekintr/Elobuddy
        void OnCombo()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

            if (!target.IsValidTarget(Q.Range) || target == null)
            {
                return;
            }
            if (CaitlynTheTrollMeNu.ComboE() && CaitlynTheTrollMeNu.LogicE() && !Boom())
            {
                if (E.IsReady() && E.CanCast(target))
                {
                    var predE = E.GetPrediction(target);
                    if (predE.HitChancePercent >= CaitlynTheTrollMeNu.PredE())
                    {
                        E.Cast(predE.CastPosition);
                    }
                    else
                    {
                        if (target.IsValidTarget(200))
                        {
                            E.Cast(predE.CastPosition);
                        }
                    }
                }
            }
            if (CaitlynTheTrollMeNu.ComboQ() && CaitlynTheTrollMeNu.LogicQ() && !Boom())
            {
                if (Q.IsReady() && Q.CanCast(target))
                {
                    var predq = W.GetPrediction(target);
                    if (predq.HitChancePercent >= CaitlynTheTrollMeNu.PredQ())
                    {
                        Q.Cast(predq.CastPosition);
                    }
                }
            }
            if (CaitlynTheTrollMeNu.ComboW() && W.Handle.Ammo >= CaitlynTheTrollMeNu.LimitTrap())
            {
                if (W.IsReady())
                {
                    var predictionPos = Prediction.Position.PredictUnitPosition(target, 500).To3D();

                    if (W.IsInRange(predictionPos))
                    {
                        W.Cast(predictionPos);
                    }
                }
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >=
                 CaitlynTheTrollMeNu.YoumusEnemies() ||
                 Player.HealthPercent >= CaitlynTheTrollMeNu.ItemsYoumuShp()) &&
                Activator.Youmus.IsReady() && CaitlynTheTrollMeNu.Youmus() && Activator.Youmus.IsOwned())
            {
                Activator.Youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= CaitlynTheTrollMeNu.BilgewaterHp() &&
                CaitlynTheTrollMeNu.Bilgewater() &&
                Activator.Bilgewater.IsReady() && Activator.Bilgewater.IsOwned())
            {
                Activator.Bilgewater.Cast(target);
                return;
            }

            if (Player.HealthPercent <= CaitlynTheTrollMeNu.BotrkHp() && CaitlynTheTrollMeNu.Botrk() &&
                Activator.Botrk.IsReady() &&
                Activator.Botrk.IsOwned())
            {
                Activator.Botrk.Cast(target);
            }
        }
예제 #5
0
        void OnCombo()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= Q.Range);
            var target = TargetSelector.GetTarget(1400, DamageType.Physical);

            if (!target.IsValidTarget(Q.Range) || target == null)
            {
                return;
            }
            if (E.IsReady() && target.IsValidTarget(750) && CaitlynTheTrollMeNu.ComboE())
            {
                var predE = Q.GetPrediction(target);
                if (predE.HitChance >= HitChance.Medium)
                {
                    E.Cast(predE.CastPosition);
                }
            }
            if (Q.IsReady() && target.IsValidTarget(850))
            {
                foreach (var eenemies in enemies)
                {
                    var useQ = CaitlynTheTrollMeNu.ComboMenu["combo.q"
                                                             + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useQ)
                    {
                        var predQ = Q.GetPrediction(target);
                        if (predQ.HitChance >= HitChance.High)
                        {
                            Q.Cast(predQ.CastPosition);
                        }
                    }
                }
            }
            if (CaitlynTheTrollMeNu.ComboW() && W.IsReady() && target.IsValidTarget(W.Range) && !target.IsInvulnerable)
            {
                var predW = W.GetPrediction(target);
                if (predW.HitChance >= HitChance.Medium)
                {
                    W.Cast(predW.CastPosition);
                }
                else if (predW.HitChance >= HitChance.Immobile)
                {
                    W.Cast(predW.CastPosition);
                }
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >=
                 CaitlynTheTrollMeNu.YoumusEnemies() ||
                 Player.HealthPercent >= CaitlynTheTrollMeNu.ItemsYoumuShp()) &&
                Activator.Youmus.IsReady() && CaitlynTheTrollMeNu.Youmus() && Activator.Youmus.IsOwned())
            {
                Activator.Youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= CaitlynTheTrollMeNu.BilgewaterHp() &&
                CaitlynTheTrollMeNu.Bilgewater() &&
                Activator.Bilgewater.IsReady() && Activator.Bilgewater.IsOwned())
            {
                Activator.Bilgewater.Cast(target);
                return;
            }

            if (Player.HealthPercent <= CaitlynTheTrollMeNu.BotrkHp() && CaitlynTheTrollMeNu.Botrk() &&
                Activator.Botrk.IsReady() &&
                Activator.Botrk.IsOwned())
            {
                Activator.Botrk.Cast(target);
            }
        }