Exemplo n.º 1
0
        public Katarina()
        {
            Q = SpellManager.Q;
            W = SpellManager.W;
            E = SpellManager.E;
            R = SpellManager.R;

            menu = MainMenu.AddMenu("Staberina", "Staberina");

            qMenu = menu.AddSubMenu("Q", "Q");
            qMenu.Add("QCombo", new CheckBox("Use in Combo"));
            qMenu.Add("QHarass", new CheckBox("Use in Harass"));

            wMenu = menu.AddSubMenu("W", "W");
            wMenu.Add("WCombo", new CheckBox("Use in Combo"));
            wMenu.Add("WHarass", new CheckBox("Use in Harass"));
            wMenu.Add("WAuto", new CheckBox("Auto W", false));

            eMenu = menu.AddSubMenu("E", "E");
            eMenu.Add("ECombo", new CheckBox("Use in Combo"));
            eMenu.Add("EHarass", new CheckBox("Use in Harass"));
            eMenu.Add("ETurret", new CheckBox("Block E Under Turret", false));
            eMenu.Add("EEnemies", new Slider("Max Enemies to E", 5, 1, 5));

            rMenu = menu.AddSubMenu("R", "R");
            rMenu.Add("RInCombo", new CheckBox("Always R in Combo", false));
            rMenu.Add("RCombo", new CheckBox("Smart R"));
            rMenu.Add("RUltTicks", new Slider("Smart R Ticks", 7, 1, 10));
            rMenu.Add("RRangeDecrease", new Slider("Decrease Spell Range", 30, 0, 30));
            R.Range = RRange - rMenu["RRangeDecrease"].Cast <Slider>().CurrentValue;
            rMenu.Add("RMovement", new CheckBox("Disable Movement while casting R"));
            rMenu.Add("RCancelNoEnemies", new CheckBox("Cancel R if no enemies", false));
            rMenu.Add("RCancelUlt", new KeyBind("Cancel R Key", false, KeyBind.BindTypes.HoldActive, 'J'));
            rMenu.Add("RStealth", new CheckBox("R Stealthed Units", false));

            ksMenu = menu.AddSubMenu("Killsteal", "Killsteal");
            ksMenu.Add("KSEnabled", new CheckBox("Use Smart KS"));
            ksMenu.Add("KSQ", new CheckBox("Use Q"));
            ksMenu.Add("KSW", new CheckBox("Use W"));
            ksMenu.Add("KSE", new CheckBox("Use E"));
            ksMenu.Add("KSR", new CheckBox("Use Smart R"));
            ksMenu.Add("KSRCancel", new CheckBox("Cancel R to KS"));
            ksMenu.Add("KSEnemies", new Slider("Max Enemies", 5, 1, 5));
            ksMenu.Add("KSHealth", new Slider("Min Health", 10));
            ksMenu.Add("KSGapclose", new CheckBox("Gapclose with E", false));
            ksMenu.Add("KSWardJump", new CheckBox("Ward Jump", false));
            ksMenu.Add("KSTurret", new CheckBox("Block E Under Turret"));

            farmMenu = menu.AddSubMenu("Farm", "Farm");
            farmMenu.AddGroupLabel("Q");
            farmMenu.Add("QFarm", new CheckBox("Use in Farm"));
            farmMenu.Add("QLastHit", new CheckBox("Only Last Hit (Only Killable)"));
            farmMenu.AddSeparator();
            farmMenu.AddGroupLabel("W");
            farmMenu.Add("WFarm", new CheckBox("Use in Farm"));
            farmMenu.Add("WMinionsHit", new Slider("Min Minions Killed", 2, 1, 4));
            farmMenu.AddSeparator();
            farmMenu.AddGroupLabel("E");
            farmMenu.Add("EFarm", new CheckBox("Use E->W in Farm", false));
            farmMenu.Add("EMinionsHit", new Slider("Min Minions Killed", 3, 1, 4));
            farmMenu.AddSeparator();
            farmMenu.Add("FarmEnabled", new KeyBind("Farm Enabled", true, KeyBind.BindTypes.PressToggle, 'J'));

            fleeMenu = menu.AddSubMenu("Flee", "Flee");
            fleeMenu.Add("FleeEnabled", new KeyBind("Flee Enabled", false, KeyBind.BindTypes.HoldActive, 'T'));
            fleeMenu.Add("FleeE", new CheckBox("Use E"));
            fleeMenu.Add("FleeWard", new CheckBox("Use Wards to Flee"));

            drawMenu = menu.AddSubMenu("Drawing", "Drawing");
            drawMenu.Add("0Draw", new CheckBox("Draw Q"));
            drawMenu.Add("1Draw", new CheckBox("Draw W"));
            drawMenu.Add("2Draw", new CheckBox("Draw E"));
            drawMenu.Add("3Draw", new CheckBox("Draw R"));

            drawMenu.Add("DmgEnabled", new CheckBox("Draw Damage Indicator"));
            drawMenu.Add("HPColor", new CheckBox("Predicted Health Color"));
            drawMenu.Add("FillColor", new CheckBox("Damage Color"));
            drawMenu.Add("Killable", new CheckBox("Killable Text"));

            miscMenu = menu.AddSubMenu("Misc");
            miscMenu.Add("ComboMode", new ComboBox("Combo Mode", 0, "E->Q->W", "Q->E->W"));
            miscMenu.Add("ComboKillable", new KeyBind("Only Combo Killable", false, KeyBind.BindTypes.PressToggle, 'K'));
            SpellManager.Initialize(menu);

            EloBuddy.Player.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }
Exemplo n.º 2
0
        public Katarina()
        {
            Q = SpellManager.Q;
            W = SpellManager.W;
            E = SpellManager.E;
            R = SpellManager.R;

            Menu = new Menu("Staberina", "Staberina", true);
            Menu.SetFontStyle(FontStyle.Regular, ScriptColor);

            Orbwalker = Menu.AddOrbwalker();

            var spells = Menu.AddMenu("Spells", "Spells");

            var qMenu = spells.AddMenu("Q", "Q");

            qMenu.AddBool("QCombo", "Use in Combo");
            qMenu.AddBool("QHarass", "Use in Harass");

            var wMenu = spells.AddMenu("W", "W");

            wMenu.AddBool("WCombo", "Use in Combo");
            wMenu.AddBool("WHarass", "Use in Harass");
            wMenu.AddBool("WAuto", "Auto W", false);

            var eMenu = spells.AddMenu("E", "E");

            eMenu.AddBool("ECombo", "Use in Combo");
            eMenu.AddBool("EHarass", "Use in Harass");
            eMenu.AddBool("ETurret", "Block E Under Turret", false);
            eMenu.AddSlider("EEnemies", "Max Enemies", 5, 1, 5);
            eMenu.Item("EEnemies").SetTooltip("Maximum enemies to E into in Combo.");

            var rMenu = spells.AddMenu("R", "R");

            rMenu.AddBool("RInCombo", "Always R in Combo", false);
            rMenu.Item("RInCombo").SetTooltip("Overrides Smart R");
            rMenu.AddBool("RCombo", "Smart R");
            rMenu.Item("RCombo").SetTooltip("Use R in Combo when killable enemy is around");
            rMenu.AddSlider("RUltTicks", "Smart R Ticks", 7, 1, 10);
            rMenu.Item("RUltTicks").SetTooltip("For damage calculation. One tick is 250 ms of channeling.");

            rMenu.AddSlider("RRangeDecrease", "Decrease Spell Range", 30);
            rMenu.Item("RRangeDecrease").ValueChanged += (sender, args) =>
            {
                R.Range = RRange - args.GetNewValue <Slider>().Value;
                var rDraw = Menu.Item("3Draw");
                if (rDraw == null)
                {
                    return;
                }
                var rCircle = rDraw.GetValue <Circle>();
                rDraw.SetValue(new Circle(rCircle.Active, rCircle.Color, R.Range));
            };
            R.Range = RRange - rMenu.Item("RRangeDecrease").GetValue <Slider>().Value;

            rMenu.AddBool("RMovement", "Disable Movement while casting R");
            rMenu.AddBool("REvade", "Disable Evade while casting R");
            rMenu.AddBool("RCancelNoEnemies", "Cancel R if no enemies", false);
            rMenu.AddKeyBind("RCancelUlt", "Cancel R Key", 'J');
            rMenu.AddBool("RStealth", "R Stealthed Units", false);

            var ks = Menu.AddMenu("Killsteal", "Killsteal");

            ks.AddBool("KSEnabled", "Use Smart KS");

            ks.AddInfo("KSInfo", "-- Spells --", ScriptColor);
            ks.AddBool("KSQ", "Use Q");
            ks.AddBool("KSW", "Use W");
            ks.AddBool("KSE", "Use E");
            ks.AddBool("KSR", "Use Smart R");
            ks.Item("KSR").SetTooltip("Uses ultimate tick amount from Spells > R.");

            ks.AddInfo("KSInfo2", "-- Misc --", ScriptColor);
            ks.AddBool("KSRCancel", "Cancel R to KS");
            ks.Item("KSRCancel").SetTooltip("Cancel ultimate channel to KS with other spells.");
            ks.AddSlider("KSEnemies", "Max Enemies", 5, 1, 5);
            ks.Item("KSEnemies").SetTooltip("Maximum enemies to E in to KS.");
            ks.AddSlider("KSHealth", "Min Health", 10);
            ks.Item("KSHealth").SetTooltip("Minimum health to E in to KS.");
            ks.AddBool("KSGapclose", "Gapclose with E", false);
            ks.Item("KSGapclose").SetTooltip("Cast E to units in range of killable target.");
            ks.AddBool("KSWardJump", "Ward Jump", false);
            ks.Item("KSWardJump").SetTooltip("Ward jump with e to killable target.");
            ks.AddBool("KSTurret", "Block E Under Turret");
            ks.Item("KSTurret").SetTooltip("Don't attempt to KS units (with E) under turret.");

            var farm = Menu.AddMenu("Farm", "Farm");

            var qFarm = farm.AddMenu("FarmQ", "Q");

            qFarm.AddBool("QFarm", "Use in Farm");
            qFarm.AddBool("QLastHit", "Only Last Hit (Only Killable)");

            var wFarm = farm.AddMenu("FarmW", "W");

            wFarm.AddBool("WFarm", "Use in Farm");
            wFarm.AddSlider("WMinionsHit", "Min Minions Killed", 2, 1, 4);

            var eFarm = farm.AddMenu("FarmE", "E");

            eFarm.AddBool("EFarm", "Use E->W in Farm", false);
            eFarm.AddSlider("EMinionsHit", "Min Minions Killed", 3, 1, 4);

            farm.AddKeyBind("FarmEnabled", "Farm Enabled", 'J', KeyBindType.Toggle, true);
            farm.Item("FarmEnabled").SetTooltip("Enabled in LastHit and LaneClear mode.", ScriptColor);

            var flee = Menu.AddMenu("Flee", "Flee");

            flee.AddKeyBind("FleeEnabled", "Flee Enabled", 'T');
            flee.AddBool("FleeE", "Use E");
            flee.AddBool("FleeWard", "Use Wards to Flee");

            var draw = Menu.AddMenu("Drawing", "Drawing");

            draw.AddCircle("0Draw", "Draw Q", Color.Purple, Q.Range);
            draw.AddCircle("1Draw", "Draw W", Color.DeepPink, W.Range);
            draw.AddCircle("2Draw", "Draw E", Color.DeepPink, E.Range);
            draw.AddCircle("3Draw", "Draw R", Color.White, R.Range);
            draw.AddBool("ComboKillablePermashow", "Permashow Combo Killable");
            draw.AddBool("FarmPermashow", "Permashow Farm Enabled");

            draw.Item("FarmPermashow").ValueChanged +=
                (sender, eventArgs) =>
            {
                farm.Item("FarmEnabled").Permashow(eventArgs.GetNewValue <bool>(), null, ScriptColor);
            };

            if (draw.Item("FarmPermashow").IsActive())
            {
                farm.Item("FarmEnabled").Permashow(true, null, ScriptColor);
            }

            var dmg = draw.AddMenu("DamageIndicator", "Damage Indicator");

            dmg.AddBool("DmgEnabled", "Draw Damage Indicator");
            dmg.AddCircle("HPColor", "Predicted Health Color", Color.White);
            dmg.AddCircle("FillColor", "Damage Color", Color.HotPink);
            dmg.AddBool("Killable", "Killable Text");
            //DamageIndicator.Initialize(dmg, Utility.GetComboDamage);

            Menu.AddInfo("MenuInfo", "-- Misc --", ScriptColor);
            Menu.AddList("ComboMode", "Combo Mode", new[] { "E->Q->W", "Q->E->W" });

            Menu.AddKeyBind("ComboKillable", "Only Combo Killable", 'K', KeyBindType.Toggle);

            draw.Item("ComboKillablePermashow").ValueChanged +=
                (sender, eventArgs) =>
            {
                Menu.Item("ComboKillable").Permashow(eventArgs.GetNewValue <bool>(), null, ScriptColor);
            };

            if (draw.Item("ComboKillablePermashow").IsActive())
            {
                Menu.Item("ComboKillable").Permashow(true, null, ScriptColor);
            }

            Menu.AddInfo("Info", "By Trees and Lilith", ScriptColor);

            SpellManager.Initialize(Menu, Orbwalker);

            EloBuddy.Player.OnIssueOrder += Obj_AI_Base_OnIssueOrder;

            Menu.AddToMainMenu();
        }
Exemplo n.º 3
0
        public Katarina()
        {
            Q = SpellManager.Q;
            W = SpellManager.W;
            E = SpellManager.E;
            R = SpellManager.R;

            menu = MainMenu.AddMenu("卡特", "Staberina");

            qMenu = menu.AddSubMenu("Q", "Q");
            qMenu.Add("QCombo", new CheckBox("连招 Q"));
            qMenu.Add("QHarass", new CheckBox("骚扰 Q"));

            wMenu = menu.AddSubMenu("W", "W");
            wMenu.Add("WCombo", new CheckBox("连招 W"));
            wMenu.Add("WHarass", new CheckBox("骚扰 W"));
            wMenu.Add("WAuto", new CheckBox("自动 W", false));

            eMenu = menu.AddSubMenu("E", "E");
            eMenu.Add("ECombo", new CheckBox("连招 E"));
            eMenu.Add("EHarass", new CheckBox("骚扰 E"));
            eMenu.Add("ETurret", new CheckBox("B塔下屏蔽", false));
            eMenu.Add("EEnemies", new Slider("附近最大敌人数量 E", 5, 1, 5));

            rMenu = menu.AddSubMenu("R", "R");
            rMenu.Add("RInCombo", new CheckBox("连招 R", false));
            rMenu.Add("RCombo", new CheckBox("智能 R"));
            rMenu.Add("RUltTicks", new Slider("智能 R 数量", 7, 1, 10));
            rMenu.Add("RRangeDecrease", new Slider("减少技能范围", 30, 0, 30));
            R.Range = RRange - rMenu["RRangeDecrease"].Cast <Slider>().CurrentValue;
            rMenu.Add("RMovement", new CheckBox("R 时屏蔽移动"));
            rMenu.Add("RCancelNoEnemies", new CheckBox("附近无敌人 停止R", false));
            rMenu.Add("RCancelUlt", new KeyBind("停止 R 按键", false, KeyBind.BindTypes.HoldActive, 'J'));
            rMenu.Add("RStealth", new CheckBox("R 隐身物体", false));

            ksMenu = menu.AddSubMenu("抢头", "Killsteal");
            ksMenu.Add("KSEnabled", new CheckBox("智能抢头"));
            ksMenu.Add("KSQ", new CheckBox("使用 Q"));
            ksMenu.Add("KSW", new CheckBox("使用 W"));
            ksMenu.Add("KSE", new CheckBox("使用 E"));
            ksMenu.Add("KSR", new CheckBox("使用智能 R"));
            ksMenu.Add("KSRCancel", new CheckBox("停止R进行抢头"));
            ksMenu.Add("KSEnemies", new Slider("最大敌方数量", 5, 1, 5));
            ksMenu.Add("KSHealth", new Slider("最低血量", 10));
            ksMenu.Add("KSGapclose", new CheckBox("防突进/接近 E", false));
            ksMenu.Add("KSWardJump", new CheckBox("跳眼", false));
            ksMenu.Add("KSTurret", new CheckBox("塔下屏蔽 E"));

            farmMenu = menu.AddSubMenu("农兵", "Farm");
            farmMenu.AddGroupLabel("Q");
            farmMenu.Add("QFarm", new CheckBox("使用 Q"));
            farmMenu.Add("QLastHit", new CheckBox("只用来尾兵 (可击杀的)"));
            farmMenu.AddSeparator();
            farmMenu.AddGroupLabel("W");
            farmMenu.Add("WFarm", new CheckBox("使用 W"));
            farmMenu.Add("WMinionsHit", new Slider("最少小兵击杀", 2, 1, 4));
            farmMenu.AddSeparator();
            farmMenu.AddGroupLabel("E");
            farmMenu.Add("EFarm", new CheckBox("使用 E->W", false));
            farmMenu.Add("EMinionsHit", new Slider("最少小兵击杀", 3, 1, 4));
            farmMenu.AddSeparator();
            farmMenu.Add("FarmEnabled", new KeyBind("开启农兵", true, KeyBind.BindTypes.PressToggle, 'J'));

            fleeMenu = menu.AddSubMenu("逃跑", "Flee");
            fleeMenu.Add("FleeEnabled", new KeyBind("开启逃跑", false, KeyBind.BindTypes.HoldActive, 'T'));
            fleeMenu.Add("FleeE", new CheckBox("使用 E"));
            fleeMenu.Add("FleeWard", new CheckBox("逃跑时跳眼"));

            drawMenu = menu.AddSubMenu("线圈", "Drawing");
            drawMenu.Add("0Draw", new CheckBox("显示 Q"));
            drawMenu.Add("1Draw", new CheckBox("显示 W"));
            drawMenu.Add("2Draw", new CheckBox("显示 E"));
            drawMenu.Add("3Draw", new CheckBox("显示 R"));

            drawMenu.Add("DmgEnabled", new CheckBox("显示伤害指示器"));
            drawMenu.Add("HPColor", new CheckBox("预测血量"));
            drawMenu.Add("FillColor", new CheckBox("显示伤害"));
            drawMenu.Add("Killable", new CheckBox("可击杀文字"));

            miscMenu = menu.AddSubMenu("杂项");
            miscMenu.Add("ComboMode", new ComboBox("连招模式", 0, "E->Q->W", "Q->E->W"));
            miscMenu.Add("ComboKillable", new KeyBind("只对可击杀的使用连招", false, KeyBind.BindTypes.PressToggle, 'K'));
            SpellManager.Initialize(menu);

            EloBuddy.Player.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
        }