Beispiel #1
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Lucian")
            {
                return;
            }
            Chat.Print("Lucian The Troll Yüklendi! Versiyon 1.3 (23/1/2017)", Color.DeepSkyBlue);
            Chat.Print("Iyý eglenceler Sakýn Feedleme!Ceviri TekinTR", Color.DeepSkyBlue);
            LucianTheTrollMenu.LoadMenu();
            Game.OnTick += GameOnTick;
            Activator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill

            Q  = new Spell.Targeted(SpellSlot.Q, 675);
            Q1 = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, int.MaxValue, 65);
            W  = new Spell.Skillshot(SpellSlot.W, 900, SkillShotType.Linear, 250, 1600, 80);
            E  = new Spell.Skillshot(SpellSlot.E, 475, SkillShotType.Linear);
            R  = new Spell.Skillshot(SpellSlot.R, 1400, SkillShotType.Linear, 250, 1200, 70);

            #endregion

            Obj_AI_Base.OnBuffGain  += OnBuffGain;
            Obj_AI_Base.OnSpellCast += OnSpellCast;
            Obj_AI_Base.OnSpellCast += OnProcessSpellCast;
            //   Obj_AI_Base.OnBuffLose += OnBuffLose;
            Orbwalker.OnPostAttack += OnAfterAttack;
            Drawing.OnDraw         += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetRawDamage);
        }
Beispiel #2
0
 void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && Orbwalker.IsAutoAttacking)
     {
         var target = TargetSelector.GetTarget(Q1.Range, DamageType.Physical);
         if (!target.IsValidTarget(Q1.Range) || target == null)
         {
             return;
         }
         {
             if (LucianTheTrollMenu.Smooth())
             {
                 if (!E.IsReady() && Q.IsReady() && Player.Distance(target.Position) < Q.Range &&
                     !HasPassive() && !Player.IsDashing())
                 {
                     Q.Cast(target);
                     //  Core.DelayAction(() => Q.Cast(target), 1);
                 }
                 if (!E.IsReady() && W.IsReady() && Player.Distance(target.Position) < W.Range &&
                     !Player.IsDashing() && !HasPassive())
                 {
                     var predW = W.GetPrediction(target);
                     if (predW.HitChance >= HitChance.High)
                     {
                         W.Cast(predW.CastPosition);
                         //  Core.DelayAction(() => W.Cast(predW.UnitPosition), 350);
                     }
                 }
             }
         }
     }
 }
Beispiel #3
0
        void OnLaneClear()
        {
            var count =
                EntityManager.MinionsAndMonsters.GetLaneMinions(EntityManager.UnitTeam.Enemy, Player.ServerPosition,
                                                                Player.AttackRange, false).Count();
            var source =
                EntityManager.MinionsAndMonsters.GetLaneMinions()
                .OrderBy(a => a.MaxHealth)
                .FirstOrDefault(a => a.IsValidTarget(Q.Range));

            if (count == 0)
            {
                return;
            }
            if (LucianTheTrollMenu.LaneQ() && Player.ManaPercent > LucianTheTrollMenu.LaneMana() && Q.IsReady() &&
                !HasPassive())
            {
                Q.Cast(source);
            }
            if (LucianTheTrollMenu.LaneW() && Player.ManaPercent > LucianTheTrollMenu.LaneMana() && W.IsReady() &&
                !E.IsReady() && !HasPassive())
            {
                W.Cast(source);
            }
            if (LucianTheTrollMenu.LaneE() && Player.ManaPercent > LucianTheTrollMenu.LaneMana() && E.IsReady() &&
                !HasPassive())
            {
                EloBuddy.Player.CastSpell(SpellSlot.E, Game.CursorPos);
            }
        }
Beispiel #4
0
        void ItemUsage()
        {
            var target = TargetSelector.GetTarget(550, DamageType.Physical);

            if (!target.IsValidTarget(Q.Range) || target == null)
            {
                if (LucianTheTrollMenu.Youmus() && Activator.Youmuu.IsOwned() && Activator.Youmuu.IsReady())
                {
                    if (ObjectManager.Player.CountEnemiesInRange(1800) >= LucianTheTrollMenu.YoumusEnemies())
                    {
                        Activator.Youmuu.Cast();
                    }
                }
            }
            if (Player.HealthPercent <= LucianTheTrollMenu.BilgewaterHp() &&
                LucianTheTrollMenu.Bilgewater() &&
                Activator.Bilgewater.IsReady() && Activator.Bilgewater.IsOwned())
            {
                Activator.Bilgewater.Cast(target);
                return;
            }
            if (Player.HealthPercent <= LucianTheTrollMenu.BotrkHp() && LucianTheTrollMenu.Botrk() &&
                Activator.Botrk.IsReady() &&
                Activator.Botrk.IsOwned())
            {
                Activator.Botrk.Cast(target);
            }
        }
Beispiel #5
0
        private static void OnHarrass()
        {
            var target = TargetSelector.GetTarget(Q.Range, DamageType.Physical);

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

            if (Q.IsReady() && LucianTheTrollMenu.HarassQ() && target.IsValidTarget(Q1.Range) &&
                Player.ManaPercent >= LucianTheTrollMenu.HarassMana())
            {
                CastExtendedQ();
                Q.Cast(target);
            }
            if (W.IsReady() && target.IsValidTarget(W.Range) && LucianTheTrollMenu.HarassW() &&
                Player.ManaPercent >= LucianTheTrollMenu.HarassMana())
            {
                var predW = W.GetPrediction(target);
                if (predW.HitChance >= HitChance.High)
                {
                    W.Cast(predW.CastPosition);
                }
            }
        }
Beispiel #6
0
        void OnJungle()
        {
            var junleminions =
                EntityManager.MinionsAndMonsters.GetJungleMonsters()
                .OrderByDescending(a => a.MaxHealth)
                .FirstOrDefault(a => a.IsValidTarget(900));

            if (LucianTheTrollMenu.JungleE() && Player.ManaPercent > LucianTheTrollMenu.Junglemana() && E.IsReady() &&
                junleminions.IsValidTarget(E.Range) &&
                !HasPassive())
            {
                EloBuddy.Player.CastSpell(SpellSlot.E, Game.CursorPos);
            }
            if (LucianTheTrollMenu.JungleQ() && Player.ManaPercent > LucianTheTrollMenu.Junglemana() && Q.IsReady() &&
                !E.IsReady() && !W.IsReady() && junleminions.IsValidTarget(Q.Range) &&
                !HasPassive())
            {
                Core.DelayAction(() => Q.Cast(junleminions), 350);
            }
            if (LucianTheTrollMenu.JungleW() && Player.ManaPercent > LucianTheTrollMenu.Junglemana() && W.IsReady() &&
                !E.IsReady() && junleminions.IsValidTarget(W.Range) &&
                !HasPassive())
            {
                Core.DelayAction(() => W.Cast(junleminions), 350);
            }
        }
Beispiel #7
0
 private static void Heal()
 {
     if (Activator.Heal != null && Activator.Heal.IsReady() &&
         Player.HealthPercent <= LucianTheTrollMenu.SpellsHealHp() &&
         Player.CountEnemiesInRange(600) > 0 && Activator.Heal.IsReady())
     {
         Activator.Heal.Cast();
     }
 }
Beispiel #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 <= LucianTheTrollMenu.SpellsIgniteFocus())
            {
                Activator.Ignite.Cast(autoIgnite);
            }
        }
Beispiel #9
0
        void UseRTarget()
        {
            var target = TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (target != null && LucianTheTrollMenu.ForceR() && R.IsReady() && target.IsValid &&
                !Player.HasBuff("lucianr"))
            {
                R.Cast(target.Position);
            }
        }
Beispiel #10
0
        private static void Flee()
        {
            var targetW = TargetSelector.GetTarget(W.Range, DamageType.Physical);

            if (LucianTheTrollMenu.Fleew() && W.IsReady() && targetW.IsValidTarget(W.Range))
            {
                W.Cast(targetW);
            }
            if (LucianTheTrollMenu.Fleee() && E.IsReady())
            {
                EloBuddy.Player.CastSpell(SpellSlot.E, Game.CursorPos);
            }
        }
Beispiel #11
0
        private static void AutoHarass()
        {
            var target = TargetSelector.GetTarget(Q1.Range, DamageType.Physical);

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

            if (LucianTheTrollMenu.AutoQHarass() && Q.IsReady() && target.IsValidTarget(Q1.Range) &&
                Player.ManaPercent >= LucianTheTrollMenu.AutoHarassMana())
            {
                CastExtendedQ();
            }
        }
Beispiel #12
0
        private static void OnBuffGain(Obj_AI_Base sender, Obj_AI_BaseBuffGainEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            if (args.Buff.Type == BuffType.Taunt && LucianTheTrollMenu.Taunt())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Stun && LucianTheTrollMenu.Stun())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Snare && LucianTheTrollMenu.Snare())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Polymorph && LucianTheTrollMenu.Polymorph())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Blind && LucianTheTrollMenu.Blind())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Flee && LucianTheTrollMenu.Fear())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Charm && LucianTheTrollMenu.Charm())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Suppression && LucianTheTrollMenu.Suppression())
            {
                DoQss();
            }
            if (args.Buff.Type == BuffType.Silence && LucianTheTrollMenu.Silence())
            {
                DoQss();
            }
        }
Beispiel #13
0
        private static void GameOnDraw(EventArgs args)
        {
            if (LucianTheTrollMenu.Nodraw())
            {
                return;
            }

            {
                if (LucianTheTrollMenu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.DeepSkyBlue, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (LucianTheTrollMenu.DrawingsQ1())
                {
                    new Circle {
                        Color = Color.DeepSkyBlue, Radius = Q1.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (LucianTheTrollMenu.DrawingsW())
                {
                    new Circle {
                        Color = Color.DeepSkyBlue, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (LucianTheTrollMenu.DrawingsE())
                {
                    new Circle {
                        Color = Color.DeepSkyBlue, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (LucianTheTrollMenu.DrawingsR())
                {
                    new Circle {
                        Color = Color.DeepSkyBlue, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
            }
            DamageIndicator.HealthbarEnabled =
                LucianTheTrollMenu.DrawMeNu["healthbar"].Cast <CheckBox>().CurrentValue;
            DamageIndicator.PercentEnabled = LucianTheTrollMenu.DrawMeNu["percent"].Cast <CheckBox>().CurrentValue;
        }
Beispiel #14
0
        void OnGameUpdate(EventArgs args)
        {
            if (Activator.Heal != null)
            {
                Heal();
            }
            if (Activator.Ignite != null)
            {
                Ignite();
            }

            if (LucianTheTrollMenu.CheckSkin())
            {
                if (LucianTheTrollMenu.SkinId() != CurrentSkin)
                {
                    Player.SetSkinId(LucianTheTrollMenu.SkinId());
                    CurrentSkin = LucianTheTrollMenu.SkinId();
                }
            }
        }
Beispiel #15
0
 void AutoPotions()
 {
     if (LucianTheTrollMenu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.HealthPercent <= LucianTheTrollMenu.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 (LucianTheTrollMenu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.ManaPercent <= LucianTheTrollMenu.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();
         }
     }
 }
Beispiel #16
0
        void CastR()
        {
            var target = TargetSelector.GetTarget(R.Range, DamageType.Physical);

            if (!target.IsValidTarget(R.Range) || target == null)
            {
                return;
            }
            if (LucianTheTrollMenu.ComboRhp() && target.HealthPercent <= LucianTheTrollMenu.Hpslider() &&
                Player.CountEnemiesInRange(R.Range) == LucianTheTrollMenu.MinenemyR() &&
                R.IsReady() && target.IsValidTarget(R.Range))
            {
                R.Cast(target.Position);
            }

            if (LucianTheTrollMenu.KillstealR() && R.IsReady() && target.HealthPercent <= 30 &&
                Player.CountEnemiesInRange(R.Range) == 1 && target.IsValidTarget(R.Range))
            {
                R.Cast(target.Position);
            }
        }
Beispiel #17
0
        void OnCombo()
        {
            var target = TargetSelector.GetTarget(Q1.Range, DamageType.Physical);

            if (!target.IsValidTarget(Q1.Range) || target == null)
            {
                return;
            }
            {
                if (LucianTheTrollMenu.Fast())
                {
                    if (!E.IsReady() && Q.IsReady() && Player.Distance(target.Position) < Q.Range && !HasPassive() &&
                        !Player.IsDashing())
                    {
                        //  Q.Cast(target);
                        Core.DelayAction(() => Q.Cast(target), 1);
                    }
                    if (!E.IsReady() && W.IsReady() &&
                        Player.Distance(target.Position) < W.Range &&
                        !Player.IsDashing() && !HasPassive())
                    {
                        var predW = W.GetPrediction(target);
                        if (predW.HitChance >= HitChance.High)
                        {
                            //   W.Cast(predW.CastPosition);
                            Core.DelayAction(() => W.Cast(predW.CastPosition), 350);
                        }
                        else
                        {
                            if (target.IsValidTarget(300))
                            {
                                Core.DelayAction(() => W.Cast(target.Position), 350);
                            }
                        }
                    }
                }
            }
        }
Beispiel #18
0
 private static void KillSteal()
 {
     foreach (
         var enemy in
         EntityManager.Heroes.Enemies.Where(
             e => e.Distance(Player) <= Q.Range && e.IsValidTarget(1000) && !e.IsInvulnerable))
     {
         if (LucianTheTrollMenu.KillstealQ() && Q.IsReady() &&
             SpellDamage.Qdamage(enemy) >= enemy.Health && enemy.Distance(Player) >= 550)
         {
             Q.Cast(enemy);
         }
         if (LucianTheTrollMenu.KillstealW() && W.IsReady() &&
             SpellDamage.Wdamage(enemy) >= enemy.Health && enemy.Distance(Player) >= 550)
         {
             var predW = W.GetPrediction(enemy);
             if (predW.HitChance == HitChance.High)
             {
                 W.Cast(enemy.Position);
             }
         }
     }
 }
Beispiel #19
0
        private static void OnAfterAttack(AttackableUnit target, EventArgs args)
        {
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                if (target == null || !(target is AIHeroClient) || target.IsDead || target.IsInvulnerable ||
                    !target.IsEnemy || target.IsPhysicalImmune || target.IsZombie)
                {
                    return;
                }
            }

            var enemy = target as AIHeroClient;

            if (enemy == null)
            {
                return;
            }
            if (LucianTheTrollMenu.ComboEStart())
            {
                if (LucianTheTrollMenu.Eside())
                {
                    if (E.IsReady() && target.IsValidTarget(Q1.Range) &&
                        !UnderEnemyTower((Vector2)Player.Position) &&
                        !HasPassive())
                    {
                        E.Cast(Side(Player.Position.To2D(), target.Position.To2D(), 65).To3D());
                    }
                }
                if (LucianTheTrollMenu.Ecursor())
                {
                    if (E.IsReady() && target.IsValidTarget(Q1.Range) &&
                        !UnderEnemyTower((Vector2)Player.Position) &&
                        !HasPassive())
                    {
                        EloBuddy.Player.CastSpell(SpellSlot.E, Game.CursorPos);
                    }
                }
                if (LucianTheTrollMenu.Eauto())
                {
                    if (Game.CursorPos.Distance(Player.Position) > Player.AttackRange + Player.BoundingRadius * 2 &&
                        !Player.Position.Extend(Game.CursorPos, E.Range).IsUnderTurret() && !HasPassive())
                    {
                        E.Cast(Player.Position.Extend(Game.CursorPos, E.Range).To3D());
                    }
                    else
                    {
                        E.Cast(Side(Player.Position.To2D(), target.Position.To2D(), 65).To3D());
                    }
                }
            }
            if (LucianTheTrollMenu.AArange())
            {
                if (!E.IsReady() && Q.IsReady())
                {
                    Q.Cast(enemy);
                    Core.DelayAction(() => W.Cast(enemy), 325);
                }
                if (!E.IsReady() && W.IsReady())
                {
                    //  W.Cast(enemy.Position);
                    Core.DelayAction(() => W.Cast(enemy), 370);
                }
            }
        }