示例#1
0
        void StunE()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (!target.IsValidTarget())
            {
                return;
            }
            if (E.IsReady() && target.IsValidTarget(650))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = TarickTheTrollMeNu.ComboMenu["combo.E"
                                                            + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE && Player.ManaPercent >= TarickTheTrollMeNu.Harassmana())
                    {
                        var predE = E.GetPrediction(target);
                        if (predE.HitChance >= HitChance.Medium)
                        {
                            E.Cast(predE.CastPosition);
                        }
                        else if (predE.HitChance >= HitChance.Dashing)
                        {
                            E.Cast(predE.CastPosition);
                        }
                        else if (predE.HitChance >= HitChance.Immobile)
                        {
                            E.Cast(predE.CastPosition);
                        }
                    }
                }
            }
        }
示例#2
0
        private static void GameOnDraw(EventArgs args)
        {
            if (TarickTheTrollMeNu.Nodraw())
            {
                return;
            }

            {
                if (TarickTheTrollMeNu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.DeepPink, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (TarickTheTrollMeNu.DrawingsW())
                {
                    new Circle {
                        Color = Color.DeepPink, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (TarickTheTrollMeNu.DrawingsE())
                {
                    new Circle {
                        Color = Color.DeepPink, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (TarickTheTrollMeNu.DrawingsR())
                {
                    new Circle {
                        Color = Color.DeepPink, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
            }
        }
示例#3
0
        private static void OnHarrass()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

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

            if (E.IsReady() && target.IsValidTarget(E.Range))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = TarickTheTrollMeNu.HarassMeNu["harass.E"
                                                             + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE && Player.ManaPercent >= TarickTheTrollMeNu.Harassmana())
                    {
                        var predeharass = E.GetPrediction(target);
                        if (predeharass.HitChance >= HitChance.High)
                        {
                            E.Cast(predeharass.CastPosition);
                        }
                    }
                }
            }
        }
示例#4
0
        void AutoShieldHp()
        {
            var allies =
                EntityManager.Heroes.Allies.OrderBy(a => a.Health).FirstOrDefault(a => W.IsInRange(a) && !a.IsMe);

            if (allies != null)
            {
                if (Q.IsReady() && TarickTheTrollMeNu.AutoQ() && allies.IsValidTarget(Q.Range) &&
                    allies.HealthPercent <= TarickTheTrollMeNu.HpallyQ() &&
                    Player.ManaPercent >= TarickTheTrollMeNu.Automanaheal())
                {
                    Q.Cast();
                }
            }
            if (W.IsReady())
            {
                var usew = allies != null && allies.IsValidTarget(W.Range) &&
                           TarickTheTrollMeNu.AUtoMenu["Autoshield.Champion"
                                                       + allies.ChampionName].Cast <CheckBox>().CurrentValue;
                if (usew && allies.HealthPercent <= TarickTheTrollMeNu.Hpally() &&
                    Player.ManaPercent >= TarickTheTrollMeNu.AUtomanaShield())
                {
                    W.Cast(allies);
                }
                if (allies != null && (R.IsReady() && TarickTheTrollMeNu.AutoR() && allies.IsValidTarget(R.Range) &&
                                       allies.HealthPercent <= TarickTheTrollMeNu.AutoRhp()))
                {
                    R.Cast();
                }
            }
        }
示例#5
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Taric")
            {
                return;
            }
            Chat.Print(
                "<font color=\"#ac4cdc\" >MeLoDag Presents </font><font color=\"#fffffff\" >Taric </font><font color=\"#ac4cdc\" >Kappa Kippo</font>");
            TarickTheTrollMeNu.LoadMenu();
            Game.OnTick += GameOnTick;
            Activator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill

            Q = new Spell.Active(SpellSlot.Q, 350);
            W = new Spell.Targeted(SpellSlot.W, 800);
            E = new Spell.Skillshot(SpellSlot.E, 580, SkillShotType.Linear, 250, int.MaxValue, 140);
            R = new Spell.Active(SpellSlot.R, 400);

            #endregion

            Gapcloser.OnGapcloser            += AntiGapCloser;
            Interrupter.OnInterruptableSpell += Interupt;
            Obj_AI_Base.OnBuffGain           += OnBuffGain;
            Drawing.OnDraw += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
        }
示例#6
0
 private static void Barrier()
 {
     if (Player.IsFacing(Target) && Activator.Barrier.IsReady() &&
         Player.HealthPercent <= TarickTheTrollMeNu.SpellsBarrierHp())
     {
         Activator.Barrier.Cast();
     }
 }
示例#7
0
 private static void Heal()
 {
     if (Activator.Heal != null && Activator.Heal.IsReady() &&
         Player.HealthPercent <= TarickTheTrollMeNu.SpellsHealHp() &&
         Player.CountEnemiesInRange(600) > 0 && Activator.Heal.IsReady())
     {
         Activator.Heal.Cast();
     }
 }
示例#8
0
        private static void Ignite()
        {
            var autoIgnite = TargetSelector.GetTarget(Activator.Ignite.Range, DamageType.True);

            if (autoIgnite != null && autoIgnite.Health <= Player.GetSpellDamage(autoIgnite, Activator.Ignite.Slot) ||
                autoIgnite != null && autoIgnite.HealthPercent <= TarickTheTrollMeNu.SpellsIgniteFocus())
            {
                Activator.Ignite.Cast(autoIgnite);
            }
        }
示例#9
0
        private static void AntiGapCloser(AIHeroClient sender, Gapcloser.GapcloserEventArgs e)
        {
            if (!e.Sender.IsValidTarget() || !TarickTheTrollMeNu.GapcloserE() || e.Sender.Type != Player.Type ||
                !e.Sender.IsEnemy || e.Sender.IsAlly)
            {
                return;
            }

            E.Cast(e.Sender.ServerPosition);
        }
示例#10
0
        private static void ForceStun()
        {
            var target = TargetSelector.GetTarget(E.Range, DamageType.Magical);

            if (target != null &&
                (TarickTheTrollMeNu.ForceStun() && E.IsReady() &&
                 target.IsValidTarget(E.Range)))
            {
                E.Cast(target.Position);
            }
        }
示例#11
0
        public static void Interupt(Obj_AI_Base sender,
                                    Interrupter.InterruptableSpellEventArgs interruptableSpellEventArgs)
        {
            if (!sender.IsEnemy)
            {
                return;
            }

            if (interruptableSpellEventArgs.DangerLevel >= DangerLevel.High && !TarickTheTrollMeNu.InterruptE() &&
                E.IsReady())
            {
                E.Cast(sender.Position);
            }
        }
示例#12
0
        void OnCombo()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical);

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

            if (Q.IsReady() && TarickTheTrollMeNu.ComboQ() &&
                Player.HealthPercent <= TarickTheTrollMeNu.MyhpQ())
            {
                Q.Cast();
            }
            if (W.IsReady() && TarickTheTrollMeNu.ComboW() &&
                Player.HealthPercent <= TarickTheTrollMeNu.ShieldMyHp())
            {
                W.Cast(Player);
            }
            if (R.IsReady() && TarickTheTrollMeNu.Combor() &&
                Player.HealthPercent <= TarickTheTrollMeNu.Comborhp())
            {
                R.Cast();
            }
            if ((ObjectManager.Player.CountEnemiesInRange(ObjectManager.Player.AttackRange) >=
                 TarickTheTrollMeNu.YoumusEnemies() ||
                 Player.HealthPercent >= TarickTheTrollMeNu.ItemsYoumuShp()) &&
                Activator.Youmus.IsReady() && TarickTheTrollMeNu.Youmus() &&
                Activator.Youmus.IsOwned())
            {
                Activator.Youmus.Cast();
                return;
            }
            if (Player.HealthPercent <= TarickTheTrollMeNu.BilgewaterHp() &&
                TarickTheTrollMeNu.Bilgewater() &&
                Activator.Bilgewater.IsReady() && Activator.Bilgewater.IsOwned())
            {
                Activator.Bilgewater.Cast(target);
                return;
            }

            if (Player.HealthPercent <= TarickTheTrollMeNu.BotrkHp() && TarickTheTrollMeNu.Botrk() &&
                Activator.Botrk.IsReady() &&
                Activator.Botrk.IsOwned())
            {
                Activator.Botrk.Cast(target);
            }
        }
示例#13
0
        private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            if (args.Buff.Type == BuffType.Taunt && TarickTheTrollMeNu.Taunt())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Stun && TarickTheTrollMeNu.Stun())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Snare && TarickTheTrollMeNu.Snare())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Polymorph && TarickTheTrollMeNu.Polymorph())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Blind && TarickTheTrollMeNu.Blind())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Flee && TarickTheTrollMeNu.Fear())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Charm && TarickTheTrollMeNu.Charm())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Suppression && TarickTheTrollMeNu.Suppression())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Silence && TarickTheTrollMeNu.Silence())
            {
                DoQss();
            }
        }
示例#14
0
 void AutoPotions()
 {
     if (TarickTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.HealthPercent <= TarickTheTrollMeNu.SpellsPotionsHp() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.HuntersPot.IsReady() && Activator.HuntersPot.IsOwned())
         {
             Activator.HuntersPot.Cast();
         }
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
         if (Activator.Biscuit.IsReady() && Activator.Biscuit.IsOwned())
         {
             Activator.Biscuit.Cast();
         }
         if (Activator.HpPot.IsReady() && Activator.HpPot.IsOwned())
         {
             Activator.HpPot.Cast();
         }
         if (Activator.RefillPot.IsReady() && Activator.RefillPot.IsOwned())
         {
             Activator.RefillPot.Cast();
         }
     }
     if (TarickTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.ManaPercent <= TarickTheTrollMeNu.SpellsPotionsM() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
     }
 }
示例#15
0
 void OnGameUpdate(EventArgs args)
 {
     if (Activator.Barrier != null)
     {
         Barrier();
     }
     if (Activator.Heal != null)
     {
         Heal();
     }
     if (Activator.Ignite != null)
     {
         Ignite();
     }
     if (TarickTheTrollMeNu.CheckSkin())
     {
         if (TarickTheTrollMeNu.SkinId() != CurrentSkin)
         {
             Player.SetSkinId(TarickTheTrollMeNu.SkinId());
             CurrentSkin = TarickTheTrollMeNu.SkinId();
         }
     }
 }