Beispiel #1
0
        /// <summary>
        /// Called whenever the game is being runned.
        /// </summary>
        /// <param name="args"></param>
        private static void Game_OnTick(System.EventArgs args)
        {
            if (Config.MiscMenu["pet"].Cast <CheckBox>().CurrentValue)
            {
                Pet.MovePet();
            }
            if (Config.KillStealMenu["toggle"].Cast <CheckBox>().CurrentValue)
            {
                if (!LastWEndPosition.IsZero &&
                    Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslide")
                {
                    LastWEndPosition = Vector3.Zero;
                }
                if (!LastWUltimateEndPosition.IsZero &&
                    Player.Instance.Spellbook.GetSpell(SpellSlot.R).Name.ToLower() == "leblancslidem")
                {
                    LastWUltimatePosition = Vector3.Zero;
                }
                if (Modes.KillSteal.ResetW && Player.Instance.ServerPosition.IsInRange(LastWEndPosition, 100))
                {
                    Modes.KillSteal.ResetW = Extension.LogicReturn();

                    if (Modes.KillSteal.ResetW == false)
                    {
                        LastWEndPosition = Vector3.Zero;
                    }

                    #region Old Code

                    /*if (!E.IsReady())
                     * {
                     *  var eEnemies =
                     *      EntityManager.Heroes.Enemies.Where(t => t.IsValidTarget(E.Range) && Extension.IsBeingE(t))
                     *          .ToArray();
                     *
                     *  if (eEnemies.Any())
                     *  {
                     *      var shouldUse = eEnemies.Any(t => LastWPosition.Distance(t) <= E.Range);
                     *
                     *      if (!shouldUse) return;
                     *
                     *      if (WReturn.IsReady() &&
                     *          Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslidereturn")
                     *      {
                     *          WReturn.Cast();
                     *          LastWEndPosition = Vector3.Zero;
                     *          Modes.KillSteal.ResetW = false;
                     *          return;
                     *      }
                     *  }
                     *  else
                     *  {
                     *      if (WReturn.IsReady() &&
                     *          Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslidereturn")
                     *      {
                     *          WReturn.Cast();
                     *          LastWEndPosition = Vector3.Zero;
                     *          Modes.KillSteal.ResetW = false;
                     *          return;
                     *      }
                     *  }
                     * }
                     *
                     * if (WReturn.IsReady() &&
                     *  Player.Instance.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "leblancslidereturn")
                     * {
                     *  WReturn.Cast();
                     *  LastWEndPosition = Vector3.Zero;
                     *  Modes.KillSteal.ResetW = false;
                     *  return;
                     * }*/

                    #endregion
                }
                if (Modes.KillSteal.ResetW && Player.Instance.ServerPosition.IsInRange(LastWUltimateEndPosition, 100))
                {
                    Modes.KillSteal.ResetW = Extension.LogicReturn(true);

                    if (Modes.KillSteal.ResetW == false)
                    {
                        LastWEndPosition = Vector3.Zero;
                    }

                    #region Old Code

                    /*if (!E.IsReady())
                     * {
                     *  var eEnemies =
                     *      EntityManager.Heroes.Enemies.Where(t => t.IsValidTarget(E.Range) && Extension.IsBeingE(t))
                     *          .ToArray();
                     *
                     *  if (eEnemies.Any())
                     *  {
                     *      var shouldUse = eEnemies.Any(t => LastWUltimatePosition.Distance(t) <= E.Range);
                     *
                     *      if (!shouldUse) return;
                     *
                     *      if (RReturn.IsReady() &&
                     *          Player.Instance.Spellbook.GetSpell(SpellSlot.R).Name.ToLower() == "leblancslidereturnm")
                     *      {
                     *          RReturn.Cast();
                     *          LastWEndPosition = Vector3.Zero;
                     *          Modes.KillSteal.ResetW = false;
                     *          return;
                     *      }
                     *  }
                     *  else
                     *  {
                     *      if (RReturn.IsReady() &&
                     *          Player.Instance.Spellbook.GetSpell(SpellSlot.R).Name.ToLower() == "leblancslidereturnm")
                     *      {
                     *          RReturn.Cast();
                     *          LastWUltimateEndPosition = Vector3.Zero;
                     *          Modes.KillSteal.ResetW = false;
                     *          return;
                     *      }
                     *  }
                     * }
                     *
                     *
                     * if (RReturn.IsReady() &&
                     *  Player.Instance.Spellbook.GetSpell(SpellSlot.R).Name.ToLower() == "leblancslidereturnm")
                     * {
                     *  RReturn.Cast();
                     *  LastWUltimateEndPosition = Vector3.Zero;
                     *  Modes.KillSteal.ResetW = false;
                     *  return;
                     * }*/

                    #endregion
                }

                Modes.KillSteal.Execute();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                Modes.Combo.Execute();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
            {
                Modes.Harass.Execute();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                Modes.LaneClear.Execute();
            }
            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                Modes.JungleClear.Execute();
            }
        }
Beispiel #2
0
        /// <summary>
        /// Called when the Game is finished loading
        /// </summary>
        /// <param name="args"></param>
        private static void Loading_OnLoadingComplete(System.EventArgs args)
        {
            if (Player.Instance.Hero != Champion.Leblanc)
            {
                return;
            }

            Q = new Spell.Targeted(SpellSlot.Q, 700);

            W = new Spell.Skillshot(SpellSlot.W, 600, SkillShotType.Circular, 0, 1600, 260)
            {
                AllowedCollisionCount = -1
            };

            WReturn = new Spell.Active(SpellSlot.W)
            {
                CastDelay = 250
            };

            RReturn = new Spell.Active(SpellSlot.R);

            E = new Spell.Skillshot(SpellSlot.E, 950, SkillShotType.Linear, 250, 1750, 55)
            {
                AllowedCollisionCount = 0
            };

            QUltimate = new Spell.Targeted(SpellSlot.Q, 700);

            WUltimate = new Spell.Skillshot(SpellSlot.W, 600, SkillShotType.Circular, 0, 1600, 250)
            {
                AllowedCollisionCount = -1
            };

            EUltimate = new Spell.Skillshot(SpellSlot.E, 950, SkillShotType.Linear, 250, 1750, 55)
            {
                AllowedCollisionCount = 0
            };

            RActive = new Spell.Active(SpellSlot.R);

            RTargeted = new Spell.Targeted(SpellSlot.R, int.MaxValue);

            if (Extension.HasSpell("summonerdot"))
            {
                Ignite = new Spell.Targeted(ObjectManager.Player.GetSpellSlotFromName("summonerdot"), 600);
                Chat.Print("LelBlanc: Ignite Loaded", System.Drawing.Color.Red);
            }

            Chat.Print("LelBlanc: Addon Yuklendi.Ceviri TekinTR GG!", System.Drawing.Color.Blue);

            // Methods
            Config.Initialize();

            // Constructors
            Picker = new ColorPicker(Config.DrawingMenu, "draw_", System.Drawing.Color.FromArgb(255, 255, 0, 0),
                                     "Color Settings for Damage Indicator");
            Indicator = new DamageIndicator();

            // Events
            Game.OnUpdate                  += Game_OnUpdate;
            GameObject.OnCreate            += GameObject_OnCreate;
            GameObject.OnDelete            += GameObject_OnDelete;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Obj_AI_Base.OnNewPath          += Obj_AI_Base_OnNewPath;
            Drawing.OnDraw                 += OnDraw.DrawRange;
        }