示例#1
0
        public static void OnLoad()
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            MasterYi.setSkillShots();
            try
            {
                TargetedSkills.setUpSkills();

                Config = MainMenu.AddMenu("MasterYi - Sharp", "MasterYi");

                //Combo
                comboMenu = Config.AddSubMenu("Combo Sharp", "combo");
                comboMenu.Add("comboWreset", new CheckBox("AA reset W"));
                comboMenu.Add("wSmart", new CheckBox("Smart W AA Reset"));
                comboMenu.Add("useQ", new CheckBox("Use Q to gap"));
                comboMenu.Add("useE", new CheckBox("Use E"));
                comboMenu.Add("useR", new CheckBox("Use R"));
                comboMenu.Add("useSmite", new CheckBox("Use Smite"));

                //Extra
                extraMenu = Config.AddSubMenu("Extra Sharp", "extra");
                extraMenu.Add("packets", new CheckBox("Use Packet cast", false));
                extraMenu.AddGroupLabel("Killsteal Q :");
                foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(enemy => enemy.IsEnemy))
                {
                    extraMenu.Add("ks" + enemy.NetworkId, new CheckBox("KS Q : " + enemy.ChampionName, true));
                }

                //SmartW
                evadeMenu = Config.AddSubMenu("Q & W Dodger");
                evadeMenu.Add("smartW", new CheckBox("Smart/Dodge W if cantQ"));
                evadeMenu.Add("smartQDogue", new CheckBox("Q use dodge"));
                evadeMenu.Add("useWatHP", new Slider("use W below HP", 100));
                evadeMenu.Add("wqOnDead", new CheckBox("W or Q if will kill", false));
                getSkilshotMenuQ();
                getSkilshotMenuW();

                //Debug
                debugMenu = Config.AddSubMenu("Drawing");
                debugMenu.Add("drawCir", new CheckBox("Draw circles"));
                debugMenu.Add("debugOn", new KeyBind("Debug stuff", false, KeyBind.BindTypes.HoldActive, 'A'));

                Drawing.OnDraw += onDraw;
                Game.OnUpdate  += OnGameUpdate;
                Obj_AI_Base.OnProcessSpellCast      += OnProcessSpell;
                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
                CustomEvents.Unit.OnDash            += onDash;
                Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;
            }
            catch
            {
                Chat.Print("Oops. Something went wrong - Sharp");
            }
        }
示例#2
0
        public static void OnLoad()
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            MasterYi.setSkillShots();
            try
            {
                TargetedSkills.setUpSkills();

                Config = MainMenu.AddMenu("MasterYi - Sharp", "MasterYi");

                //Combo
                comboMenu = Config.AddSubMenu("连招", "combo");
                comboMenu.Add("comboWreset", new CheckBox("普攻 W 重置"));
                comboMenu.Add("useQ", new CheckBox("使用 Q 接近"));
                comboMenu.Add("useE", new CheckBox("使用 E"));
                comboMenu.Add("useR", new CheckBox("使用 R"));
                comboMenu.Add("useSmite", new CheckBox("使用 惩戒"));

                //Extra
                extraMenu = Config.AddSubMenu("额外", "extra");
                extraMenu.Add("packets", new CheckBox("使用 封包", false));

                //SmartW
                evadeMenu = Config.AddSubMenu("Q & W 躲避器");
                evadeMenu.Add("smartW", new CheckBox("Q冷却时,智能 W 躲避"));
                evadeMenu.Add("smartQDogue", new CheckBox("Q 躲避"));
                evadeMenu.Add("useWatHP", new Slider("低血量 X 时使用 W", 100));
                evadeMenu.Add("wqOnDead", new CheckBox("W 或 Q 如果可击杀", false));
                getSkilshotMenuQ();
                getSkilshotMenuW();

                //Debug
                debugMenu = Config.AddSubMenu("线圈");
                debugMenu.Add("drawCir", new CheckBox("显示圆圈"));
                debugMenu.Add("debugOn", new KeyBind("调试", false, KeyBind.BindTypes.HoldActive, 'A'));

                Drawing.OnDraw += onDraw;
                Game.OnUpdate  += OnGameUpdate;
                Obj_AI_Base.OnProcessSpellCast      += OnProcessSpell;
                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
                CustomEvents.Unit.OnDash            += onDash;
                Orbwalker.OnPostAttack += Orbwalker_OnPostAttack;
            }
            catch
            {
                Chat.Print("Oops. Something went wrong - Sharp");
            }
        }
示例#3
0
 public static void evadeBuff(BuffInstance buf, TargetedSkills.TargSkill skill)
 {
     if (Q.IsReady() && jumpEnesAround() != 0 && buf.EndTime - Game.Time < skill.delay / 1000)
     {
         useQonBest();
     }
     else if (W.IsReady() && (!Q.IsReady() || jumpEnesAround() != 0) && buf.EndTime - Game.Time < 0.4f)
     {
         var dontMove = 400;
         PortAIO.OrbwalkerManager.SetMovement(false);
         W.Cast();
         Utility.DelayAction.Add(dontMove, () => PortAIO.OrbwalkerManager.SetMovement(true));
     }
 }
示例#4
0
 public static void EvadeBuff(BuffInstance buf, TargetedSkills.TargSkill skill)
 {
     if (Q.IsReady() && JumpEnesAround() != 0 && buf.EndTime - Game.Time < skill.Delay/1000)
     {
         // Console.WriteLine("evade buuf");
         UseQonBest();
     }
     else if (W.IsReady() && (!Q.IsReady() || JumpEnesAround() != 0) && buf.EndTime - Game.Time < 0.4f)
     {
         const int dontMove = 400;
         LxOrbwalker.CantMoveTill = Environment.TickCount + dontMove;
         W.Cast();
     }
 }
示例#5
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Game.PrintChat("MasterYi -  by DeTuKs");
            MasterYi.setSkillShots();
            try
            {
                TargetedSkills.setUpSkills();

                Config = new Menu("MasterYi - Sharp", "MasterYi", true);
                var orbwalkerMenu = new Menu("LX Orbwalker", "my_Orbwalker");
                LXOrbwalker.AddToMenu(orbwalkerMenu);
                Config.AddSubMenu(orbwalkerMenu);

                //TS
                Menu 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("comboItems", "Meh everything is fine here")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("comboWreset", "AA reset W")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useQ", "Use Q to gap")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useE", "Use E")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useR", "Use R")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useSmite", "Use Smite")).SetValue(true);

                //Extra
                Config.AddSubMenu(new Menu("Extra Sharp", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("packets", "Use Packet cast")).SetValue(false);

                Config.AddSubMenu(new Menu("Anti Skillshots", "aShots"));
                //SmartW
                Config.SubMenu("aShots").AddItem(new MenuItem("smartW", "Smart W if cantQ")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("smartQDogue", "Q use dogue")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("wqOnDead", "W or Q if will kill")).SetValue(false);
                skillShotMenuq = getSkilshotMenuQ();
                Config.SubMenu("aShots").AddSubMenu(skillShotMenuq);
                skillShotMenuw = getSkilshotMenuW();
                Config.SubMenu("aShots").AddSubMenu(skillShotMenuw);

                //Debug
                Config.AddSubMenu(new Menu("Drawing", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("drawCir", "Draw circles")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("debugOn", "Debug stuff")).SetValue(new KeyBind('A', KeyBindType.Press));

                Config.AddToMainMenu();
                Drawing.OnDraw += onDraw;

                Game.OnUpdate += OnGameUpdate;

                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;

                AttackableUnit.OnDamage += onDamage;

                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
                //Game.OnProcessPacket += OnGameProcessPacket;
                CustomEvents.Unit.OnDash += onDash;
                LXOrbwalker.AfterAttack  += afterAttack;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Jayce - Sharp");
            }
        }
示例#6
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Game.PrintChat("MasterYi -  by DeTuKs");
            MasterYi.setSkillShots();
            try
            {
                TargetedSkills.setUpSkills();

                Config = new Menu("【超神汉化】剑圣", "MasterYi", true);
                var orbwalkerMenu = new Menu("LX走砍", "my_Orbwalker");
                LXOrbwalker.AddToMenu(orbwalkerMenu);
                Config.AddSubMenu(orbwalkerMenu);

                //TS
                Menu targetSelectorMenu = new Menu("目标选择", "Target Selector");
                TargetSelector.AddToMenu(targetSelectorMenu);
                Config.AddSubMenu(targetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("连招", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("comboItems", "使用物品")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("comboWreset", "W时不平A")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useQ", "使用Q突进")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useE", "使用E")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useR", "使用R")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useSmite", "使用惩戒")).SetValue(true);

                //Extra
                Config.AddSubMenu(new Menu("其他", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("packets", "使用封包")).SetValue(false);

                Config.AddSubMenu(new Menu("技能", "aShots"));
                //SmartW
                Config.SubMenu("aShots").AddItem(new MenuItem("smartW", "不能Q智能W")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("smartQDogue", "疯狗模式")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("wqOnDead", "危险时用Q或W")).SetValue(false);
                skillShotMenuq = getSkilshotMenuQ();
                Config.SubMenu("aShots").AddSubMenu(skillShotMenuq);
                skillShotMenuw = getSkilshotMenuW();
                Config.SubMenu("aShots").AddSubMenu(skillShotMenuw);

                //Debug
                Config.AddSubMenu(new Menu("显示", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("drawCir", "显示线圈")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("debugOn", "调试")).SetValue(new KeyBind('A', KeyBindType.Press));

                Config.AddToMainMenu();
                Drawing.OnDraw += onDraw;

                Game.OnGameUpdate += OnGameUpdate;

                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;

                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
                Game.OnGameProcessPacket            += OnGameProcessPacket;
                CustomEvents.Unit.OnDash            += onDash;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Jayce - Sharp");
            }
        }