Exemplo n.º 1
0
        public static void doHarass(Obj_AI_Hero target)
        {
            if (target == null || !target.IsValid || player.Mana < 200)
            {
                return;
            }


            if (!LXOrbwalker.InAutoAttackRange(target))
            {
                useQonTarg(target, QhitChance.medium);
            }
        }
Exemplo n.º 2
0
        public static void killIfPossible(Obj_AI_Base target)
        {
            try
            {
                var useQ = LucianSharp.Config.Item("ksOnQ").GetValue <bool>();
                var useW = LucianSharp.Config.Item("ksOnW").GetValue <bool>();
                var useE = LucianSharp.Config.Item("ksOnE").GetValue <bool>();

                var dist = target.Distance(player) - target.BoundingRadius + 10;
                var tHP  = target.Health;
                var qDmg = Q.GetDamage(target);
                //Console.WriteLine(tHP+" - "+qDmg);
                var wDmg    = W.GetDamage(target);
                var passive = player.GetAutoAttackDamage(target) * 1.45f;



                if (useE && qDmg - 20 > tHP && E.IsReady() && Q.IsReady() && dist < 1100 + E.Range && dist > Q.Range + 100)
                {
                    doProKillSteal(target);
                    LXOrbwalker.Orbwalk(Game.CursorPos, target);
                }

                if (useQ && qDmg > tHP && Q.IsReady() && dist < 1150)
                {
                    useQonTarg(target, QhitChance.medium);
                    return;
                }


                if (useW && wDmg > tHP && W.IsReady() && dist < W.Range)
                {
                    W.CastIfHitchanceEquals(target, HitChance.Medium);
                    return;
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Exemplo n.º 3
0
        private static void onLoad(EventArgs args)
        {

            Game.PrintChat("Lucian - Sharp by DeTuKs");

            try
            {

                Config = new Menu("LucianSharp", "Lucian", true);
                var orbwalkerMenu = new Menu("Lucian Orbwalker", "my_Orbwalker");
                LXOrbwalker.AddToMenu(orbwalkerMenu);
                Config.AddSubMenu(orbwalkerMenu);
                //TS
                var TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                TargetSelector.AddToMenu(TargetSelectorMenu);
                Config.AddSubMenu(TargetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("Combo Sharp", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("useQ", "Use Q")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useW", "Use W")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useE", "Use E from melee")).SetValue(true);

                //LastHit
                Config.AddSubMenu(new Menu("LastHit Sharp", "lHit"));
               
                //LaneClear
                Config.AddSubMenu(new Menu("LaneClear Sharp", "lClear"));
               
                //Harass
                Config.AddSubMenu(new Menu("Harass Sharp", "harass"));

                //KillSteal
                Config.AddSubMenu(new Menu("KillSteal Sharp", "killsteal"));
                Config.SubMenu("killsteal").AddItem(new MenuItem("ksOn", "do KillSteal")).SetValue(true);
                Config.SubMenu("killsteal").AddItem(new MenuItem("ksOnQ", "use Q")).SetValue(true);
                Config.SubMenu("killsteal").AddItem(new MenuItem("ksOnW", "use W")).SetValue(true);
                Config.SubMenu("killsteal").AddItem(new MenuItem("ksOnE", "use E")).SetValue(true);
               
                //Extra
                Config.AddSubMenu(new Menu("Draw Sharp", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("drawQ", "draw Q")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawW", "draw W")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawE", "draw E")).SetValue(true);
                

                //Debug
                Config.AddSubMenu(new Menu("Debug", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("debugOn", "Debug stuff")).SetValue(new KeyBind('A', KeyBindType.Press));


                Config.AddToMainMenu();
                Drawing.OnDraw += onDraw;
                Game.OnUpdate += OnGameUpdate;

                GameObject.OnCreate += OnCreateObject;
                GameObject.OnDelete += OnDeleteObject;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;

                LXOrbwalker.AfterAttack += AfterAttack;

                Lucian.setSkillShots();

            }
            catch(Exception ex)
            {
                Console.WriteLine(ex);
                Game.PrintChat("Oops. Something went wrong with LucianSharp");
            }
        }