Ejemplo n.º 1
0
        public static void Game_OnGameLoad()
        {
            //Verify Champion
            if (Player.ChampionName != "Azir")
            {
                return;
            }
            SoldierMgr.InitializeA();
            //Spells
            _q  = new LeagueSharp.Common.Spell(SpellSlot.Q, 1175);
            _q2 = new LeagueSharp.Common.Spell(SpellSlot.Q);
            _w  = new LeagueSharp.Common.Spell(SpellSlot.W, 450);
            _e  = new LeagueSharp.Common.Spell(SpellSlot.E, 1100);
            _r  = new LeagueSharp.Common.Spell(SpellSlot.R, 250);
            _r2 = new LeagueSharp.Common.Spell(SpellSlot.R);
            _q.SetSkillshot(0.0f, 65, 1500, false, SkillshotType.SkillshotLine);
            _q.MinHitChance = LeagueSharp.Common.HitChance.Medium;

            //Menu instance
            _menu = MainMenu.AddMenu(Player.ChampionName, Player.ChampionName);

            //spell menu
            spellMenu = _menu.AddSubMenu("技能", "Spells");
            spellMenu.Add("EQdelay", new Slider("EQ 延迟(人性化)", 100, 0, 300));
            spellMenu.Add("EQmouse", new KeyBind("E Q 至鼠标", false, KeyBind.BindTypes.HoldActive, 'G'));
            spellMenu.Add("insec", new KeyBind("神推(选择的目标)", false, KeyBind.BindTypes.HoldActive, 'Y'));
            spellMenu.Add("insecmode", new ComboBox("神推模式", 0, "最近的友军", "最近的塔", "鼠标", "最后记录位置"));
            spellMenu.Add("insecpolar", new KeyBind("神推坐标记录", false, KeyBind.BindTypes.HoldActive, 'T'));

            //combo
            Combo = _menu.AddSubMenu("连招", "Combo");
            Combo.Add("QC", new CheckBox("Q"));
            Combo.Add("WC", new CheckBox("W"));
            Combo.Add("donotqC", new CheckBox("保留 Q 如果目标在士兵范围内", false));

            //Harass
            Harass = _menu.AddSubMenu("骚扰", "Harass");
            Harass.Add("QH", new CheckBox("Q"));
            Harass.Add("WH", new CheckBox("W"));
            Harass.Add("donotqH", new CheckBox("保留 Q 如果目标在士兵范围内", false));

            // AUTO
            _Auto = _menu.AddSubMenu("自动", "Auto");
            _Auto.Add("RKS", new CheckBox("使用 R 其他"));
            _Auto.Add("RTOWER", new CheckBox("R 目标至塔"));
            _Auto.Add("RGAP", new CheckBox("R 防突击", false));

            //Drawing
            Draw = _menu.AddSubMenu("线圈", "Drawing");
            Draw.Add("drawQ", new CheckBox(drawQ));
            Draw.Add("drawW", new CheckBox(drawW));
            Draw.Add("drawInsec", new CheckBox(drawInsec));

            GameObjects.Initialize();
            Soldiers.AzirSoldier();
            AzirCombo.Initialize();
            AzirHarass.Initialize();
            AzirFarm.Initialize();
            JumpToMouse.Initialize();
            Insec.Initialize();

            //Listen to events
            Drawing.OnDraw                 += Drawing_OnDraw;
            Game.OnUpdate                  += Game_OnGameUpdate;
            Obj_AI_Base.OnSpellCast        += Obj_AI_Base_OnDoCast;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
        }
Ejemplo n.º 2
0
        private static void Game_OnGameLoad(EventArgs args)
        {
            //Verify Champion
            if (Player.ChampionName != "Azir")
            {
                return;
            }


            //Spells
            _q  = new Spell(SpellSlot.Q, 1175);
            _q2 = new Spell(SpellSlot.Q);
            _w  = new Spell(SpellSlot.W, 450);
            _e  = new Spell(SpellSlot.E, 1100);
            _r  = new Spell(SpellSlot.R, 250);
            _r2 = new Spell(SpellSlot.R);
            // from detuks :D
            _q.SetSkillshot(0.0f, 65, 1500, false, SkillshotType.SkillshotLine);
            _q.MinHitChance = HitChance.Medium;
            //Menu instance
            _menu = new Menu(Player.ChampionName, Player.ChampionName, true);
            //Orbwalker
            Menu orbwalkerMenu = new Menu("Orbwalker", "Orbwalker");

            _orbwalker = new Orbwalking.Orbwalker(orbwalkerMenu);
            //Targetsleector
            _menu.AddSubMenu(orbwalkerMenu);
            Menu ts = _menu.AddSubMenu(new Menu("Target Selector", "Target Selector"));;

            TargetSelector.AddToMenu(ts);
            //spell menu
            Menu spellMenu = _menu.AddSubMenu(new Menu("Spells", "Spells"));

            spellMenu.AddItem(new MenuItem("EQdelay", "EQ lower delay").SetValue(new Slider(100, 0, 300)));
            spellMenu.AddItem(new MenuItem("EQmouse", "E Q to mouse").SetValue(new KeyBind('G', KeyBindType.Press)));
            spellMenu.AddItem(new MenuItem("insec", "Insec Selected").SetValue(new KeyBind('Y', KeyBindType.Press)));
            spellMenu.AddItem(new MenuItem("insecmode", "Insec Mode").SetValue(new StringList(new [] { "nearest ally", "nearest turret", "mouse", "last key press" }, 0)));
            spellMenu.AddItem(new MenuItem("insecpolar", "Insec point key").SetValue(new KeyBind('T', KeyBindType.Press)));
            //combo
            Menu Combo = spellMenu.AddSubMenu(new Menu("Combo", "Combo"));

            Combo.AddItem(new MenuItem("QC", "Q").SetValue(true));
            Combo.AddItem(new MenuItem("WC", "W").SetValue(true));
            Combo.AddItem(new MenuItem("donotqC", "Save Q if target in soldier's range").SetValue(false));
            //Harass
            Menu Harass = spellMenu.AddSubMenu(new Menu("Harass", "Harass"));

            Harass.AddItem(new MenuItem("QH", "Q").SetValue(true));
            Harass.AddItem(new MenuItem("WH", "W").SetValue(true));
            Harass.AddItem(new MenuItem("donotqH", "Save Q if target in soldier's range").SetValue(false));

            Menu Auto = spellMenu.AddSubMenu(new Menu("Auto", "Auto"));

            Auto.AddItem(new MenuItem("RKS", "use R KS").SetValue(true));
            Auto.AddItem(new MenuItem("RTOWER", "R target to Tower").SetValue(true));
            Auto.AddItem(new MenuItem("RGAP", "R anti GAP").SetValue(false));

            //Drawing
            Menu Draw = _menu.AddSubMenu(new Menu("Drawing", "Drawing"));

            Draw.AddItem(new MenuItem(drawQ, drawQ).SetValue(true));
            Draw.AddItem(new MenuItem(drawW, drawW).SetValue(true));
            Draw.AddItem(new MenuItem(drawSoldierAA, drawSoldierAA).SetValue(true));
            Draw.AddItem(new MenuItem(drawFly, drawFly).SetValue(true));
            Draw.AddItem(new MenuItem(drawInsec, drawInsec).SetValue(true));
            //Attach to root
            _menu.AddToMainMenu();

            GameObjects.Initialize();
            Soldiers.AzirSoldier();
            OrbwalkCommands.Initialize();
            AzirCombo.Initialize();
            AzirHarass.Initialize();
            AzirFarm.Initialize();
            JumpToMouse.Initialize();
            Insec.Initialize();

            //Listen to events
            Drawing.OnDraw       += Drawing_OnDraw;
            Game.OnUpdate        += Game_OnGameUpdate;
            Obj_AI_Base.OnDoCast += Obj_AI_Base_OnDoCast;
            //Orbwalking.AfterAttack += Orbwalking_AfterAttack;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
        }
Ejemplo n.º 3
0
        public static void Game_OnGameLoad()
        {
            //Verify Champion
            if (Player.ChampionName != "Azir")
            {
                return;
            }
            SoldierMgr.InitializeA();
            //Spells
            _q  = new LeagueSharp.Common.Spell(SpellSlot.Q, 1175);
            _q2 = new LeagueSharp.Common.Spell(SpellSlot.Q);
            _w  = new LeagueSharp.Common.Spell(SpellSlot.W, 450);
            _e  = new LeagueSharp.Common.Spell(SpellSlot.E, 1100);
            _r  = new LeagueSharp.Common.Spell(SpellSlot.R, 250);
            _r2 = new LeagueSharp.Common.Spell(SpellSlot.R);
            _q.SetSkillshot(0.0f, 65, 1500, false, SkillshotType.SkillshotLine);
            _q.MinHitChance = LeagueSharp.Common.HitChance.Medium;

            //Menu instance
            _menu = MainMenu.AddMenu(Player.ChampionName, Player.ChampionName);

            //spell menu
            spellMenu = _menu.AddSubMenu("Spells", "Spells");
            spellMenu.Add("EQdelay", new Slider("EQ lower delay", 100, 0, 300));
            spellMenu.Add("EQmouse", new KeyBind("E Q to mouse", false, KeyBind.BindTypes.HoldActive, 'G'));
            spellMenu.Add("insec", new KeyBind("Insec Selected", false, KeyBind.BindTypes.HoldActive, 'Y'));
            spellMenu.Add("insecmode", new ComboBox("Insec Mode", 0, "nearest ally", "nearest turret", "mouse", "last key press"));
            spellMenu.Add("insecpolar", new KeyBind("Insec point key", false, KeyBind.BindTypes.HoldActive, 'T'));

            //combo
            Combo = _menu.AddSubMenu("Combo", "Combo");
            Combo.Add("QC", new CheckBox("Q"));
            Combo.Add("WC", new CheckBox("W"));
            Combo.Add("donotqC", new CheckBox("Save Q if target in soldier's range", false));

            //Harass
            Harass = _menu.AddSubMenu("Harass", "Harass");
            Harass.Add("QH", new CheckBox("Q"));
            Harass.Add("WH", new CheckBox("W"));
            Harass.Add("donotqH", new CheckBox("Save Q if target in soldier's range", false));

            // AUTO
            _Auto = _menu.AddSubMenu("Auto", "Auto");
            _Auto.Add("RKS", new CheckBox("use R KS"));
            _Auto.Add("RTOWER", new CheckBox("R target to Tower"));
            _Auto.Add("RGAP", new CheckBox("R anti GAP", false));

            //Drawing
            Draw = _menu.AddSubMenu("Drawing", "Drawing");
            Draw.Add("drawQ", new CheckBox(drawQ));
            Draw.Add("drawW", new CheckBox(drawW));
            Draw.Add("drawInsec", new CheckBox(drawInsec));

            GameObjects.Initialize();
            Soldiers.AzirSoldier();
            AzirCombo.Initialize();
            AzirHarass.Initialize();
            AzirFarm.Initialize();
            JumpToMouse.Initialize();
            Insec.Initialize();

            //Listen to events
            Drawing.OnDraw                 += Drawing_OnDraw;
            Game.OnUpdate                  += Game_OnGameUpdate;
            Obj_AI_Base.OnSpellCast        += Obj_AI_Base_OnDoCast;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
        }