Пример #1
0
        public static void shadowCoax(Obj_AI_Hero target)
        {
            Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
            // Game.PrintChat("Wut");
            if (shadowW == null || !canGoToShadow("W") || !isKillableShadowCoax(target))
            {
                return;
            }
            //var target =
            //    ObjectManager.Get<Obj_AI_Hero>().First(h => h.IsEnemy && h.IsValidTarget() && h.Distance(shadowW) <= R.Range && isKillableShadowCoax(h));
            if (target == null || !canDoCombo(new[] { SpellSlot.Q, SpellSlot.E, SpellSlot.R }))
            {
                return;
            }
            if (canGoToShadow("W") && shadowW != null)
            {
                W.Cast();
            }
            ;
            if (R.IsReady() && shadowR == null)
            {
                R.Cast(target);
            }
            if (E.IsReady() && shadowR != null)
            {
                E.Cast();
            }

            if (Q.IsReady() && shadowR != null)
            {
                Q.Cast(target, true);
            }
            LXOrbwalker.ForcedTarget = target;
            if (LXOrbwalker.CanAttack())
            {
                Player.IssueOrder(GameObjectOrder.AttackUnit, target);
            }
            sumItems.castIgnite(target);
            castItemsFull(target);
            // if (canGoToShadow("R") && shadowR != null && !Player.IsAutoAttacking) {
            //     R.Cast();
            //  }
        }
Пример #2
0
        private static void loadMenu()
        {
            menu = new Menu("Zed Sharp", "zedSharp", true);

            var targetSelector = new Menu("Target Selector", "Target Selector"); //TODO new target selector ofc.

            SimpleTs.AddToMenu(targetSelector);
            menu.AddSubMenu(targetSelector);

            var orbwalkerMenu = new Menu("LX Orbwalker", "my_Orbwalker");

            LXOrbwalker.AddToMenu(orbwalkerMenu);
            menu.AddSubMenu(orbwalkerMenu);

            menu.AddSubMenu(new Menu("Combo Options", "combo"));
            menu.SubMenu("combo").AddItem(new MenuItem("useQC", "Use Q in combo").SetValue(true));
            menu.SubMenu("combo").AddItem(new MenuItem("useWC", "Use W in combo").SetValue(true));
            menu.SubMenu("combo").AddItem(new MenuItem("useEC", "Use E in combo").SetValue(true));
            menu.SubMenu("combo").AddItem(new MenuItem("useRC", "Use R in combo").SetValue(true));
            menu.SubMenu("combo").AddItem(new MenuItem("useWF", "Use W to follow").SetValue(true));
            menu.SubMenu("combo").AddItem(
                new MenuItem("shadowCoax", "Do Shadow Coax").SetValue(new KeyBind("T".ToCharArray()[0],
                                                                                  KeyBindType.Press)));
            //menu.SubMenu("combo").AddItem(new MenuItem("minQ", "Minimum Q to Hit").SetValue(new Slider(2, 1, 3)));
            //menu.SubMenu("combo").AddItem(new MenuItem("minE", "Minimum E to Hit").SetValue(new Slider(2, 1, 3)));

            menu.AddSubMenu(new Menu("Harass Options", "harass"));
            menu.SubMenu("harass").AddItem(
                new MenuItem("harassMode", "Harass Mode").SetValue(new StringList(new[] { "WEQ", "QE", "Q", "E" })));
            menu.SubMenu("harass").AddItem(new MenuItem("harassEnabled", "Enabled").SetValue(true));

            menu.AddSubMenu(new Menu("Laneclear", "laneclear"));
            menu.SubMenu("laneclear").AddItem(new MenuItem("useQLC", "Use Q to laneclear").SetValue(false));
            menu.SubMenu("laneclear").AddItem(new MenuItem("useELC", "Use E to laneclear").SetValue(false));

            menu.AddSubMenu(new Menu("Lasthit", "lasthit"));
            menu.SubMenu("lasthit").AddItem(new MenuItem("useQLH", "Use Q to lasthit").SetValue(false));
            menu.SubMenu("lasthit").AddItem(new MenuItem("useELH", "Use E to lasthit").SetValue(false));

            menu.AddSubMenu(new Menu("Use ultimate on", "ultOn"));
            HeroMenuCreate();

            menu.AddSubMenu(new Menu("Draw Options", "draw"));
            menu.SubMenu("draw").AddItem(new MenuItem("drawHp", "Draw predicted hp").SetValue(true));

            /*menu.AddSubMenu(new Menu("Speech Options", "spoken"));
             * menu.SubMenu("spoken").AddItem(new MenuItem("speech", "Enabled").SetValue(true));
             * menu.SubMenu("spoken").AddItem(new MenuItem("speechinterval", "delay").SetValue(new Slider(1000, 250, 5000)));
             */
            menu.AddSubMenu(new Menu("Misc Options", "misc"));
            menu.SubMenu("misc").AddItem(new MenuItem("SwapHPToggle", "Swap R at % HP").SetValue(true)); //dont need %
            menu.SubMenu("misc").AddItem(new MenuItem("SwapHP", "%HP").SetValue(new Slider(5, 1)));      //nop
            menu.SubMenu("misc").AddItem(new MenuItem("SwapRKill", "Swap R when target dead").SetValue(true));
            menu.SubMenu("misc").AddItem(new MenuItem("SafeRBack", "Safe swap calculation").SetValue(true));
            menu.SubMenu("misc").AddItem(
                new MenuItem("Flee", "Flee Key").SetValue(new KeyBind("V".ToCharArray()[0], KeyBindType.Press)));

            menu.AddItem(new MenuItem("sep", "----------"));
            menu.AddItem(new MenuItem("creds", "Iridium, DZ191, DETUKS "));

            Game.PrintChat("Zed by Iridium, DZ191 and DETUKS Loaded.");
        }