コード例 #1
0
ファイル: MasterSharp.cs プロジェクト: geramz/PortAIO
        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
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Game.PrintChat("MasterYi -  by DeTuKs");
            MasterYi.setSkillShots();
            try
            {
                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");
                SimpleTs.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);

                //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.AddToMainMenu();
                Drawing.OnDraw += onDraw;

                Game.OnGameUpdate += OnGameUpdate;

                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;

                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
                Game.OnGameProcessPacket            += OnGameProcessPacket;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Jayce - Sharp");
            }
        }
コード例 #3
0
ファイル: MasterSharp.cs プロジェクト: geramz/PortAIO
        private static void OnGameUpdate(EventArgs args)
        {
            if (getKeyBindItem(debugMenu, "debugOn")) //fullDMG
            {
                foreach (var buf in MasterYi.player.Buffs)
                {
                    //Console.WriteLine(buf.Name);
                }
            }

            foreach (var enemy in ObjectManager.Get <AIHeroClient>().Where(enemy => enemy.IsEnemy && enemy.Health < MasterYi.Q.GetDamage(enemy) && MasterYi.Q.IsInRange(enemy) && enemy.IsVisible && enemy.IsHPBarRendered))
            {
                if (getCheckBoxItem(extraMenu, "ks" + enemy.NetworkId))
                {
                    ObjectManager.Player.Spellbook.CastSpell(SpellSlot.Q, enemy);
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                var target = TargetSelector.GetTarget(800, DamageType.Physical);
                if (target != null)
                {
                    //Orbwalker.ForcedTarget = target;
                    MasterYi.slayMaderDuker(target);
                }
            }
            else
            {
                //Orbwalker.ForcedTarget = null;
            }

            DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive());
            foreach (var skillShot in DetectedSkillshots)
            {
                if (skillShot.IsAboutToHit(250, MasterYi.player))
                {
                    MasterYi.evadeSkillShot(skillShot);
                }
            }

            //anti buferino
            foreach (var buf in MasterYi.player.Buffs)
            {
                var skill = TargetedSkills.dagerousBuffs.FirstOrDefault(ob => ob.sName.ToLower() == buf.Name.ToLower());
                if (skill != null)
                {
                    // Console.WriteLine("Evade: " + buf.Name);
                    MasterYi.evadeBuff(buf, skill);
                }
                // if(buf.EndTime-Game.Time<0.2f)
            }
        }
コード例 #4
0
ファイル: MasterSharp.cs プロジェクト: sadnecc/CHportcn
        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");
            }
        }
コード例 #5
0
 public static void OnProcessSpell(Obj_AI_Base obj, GameObjectProcessSpellCastEventArgs arg)
 {
     if (arg.Target != null && arg.Target.NetworkId == MasterYi.player.NetworkId)
     {
         //Console.WriteLine(arg.SData.Name);
         if (obj is AIHeroClient)
         {
             var hero  = (AIHeroClient)obj;
             var skill = TargetedSkills.targetedSkillsAll.FirstOrDefault(ob => ob.sName == arg.SData.Name);
             if (skill != null)
             {
                 //Console.WriteLine("Evade: " + arg.SData.Name);
                 MasterYi.evadeDamage(skill.useQ, skill.useW, arg, skill.delay);
             }
         }
     }
 }
コード例 #6
0
ファイル: MasterSharp.cs プロジェクト: sadnecc/CHportcn
        private static void OnGameUpdate(EventArgs args)
        {
            if (getKeyBindItem(debugMenu, "debugOn")) //fullDMG
            {
                foreach (var buf in MasterYi.player.Buffs)
                {
                    //Console.WriteLine(buf.Name);
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
            {
                var target = TargetSelector.GetTarget(800, DamageType.Physical);
                Orbwalker.ForcedTarget = target;
                if (target != null)
                {
                    MasterYi.selectedTarget = target;
                }
                MasterYi.slayMaderDuker(target);
            }
            else
            {
                Orbwalker.ForcedTarget = null;
            }

            DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive());
            foreach (var skillShot in DetectedSkillshots)
            {
                if (skillShot.IsAboutToHit(250, MasterYi.player))
                {
                    MasterYi.evadeSkillShot(skillShot);
                }
            }

            //anti buferino
            foreach (var buf in MasterYi.player.Buffs)
            {
                var skill = TargetedSkills.dagerousBuffs.FirstOrDefault(ob => ob.sName.ToLower() == buf.Name.ToLower());
                if (skill != null)
                {
                    // Console.WriteLine("Evade: " + buf.Name);
                    MasterYi.evadeBuff(buf, skill);
                }
                // if(buf.EndTime-Game.Time<0.2f)
            }
        }
コード例 #7
0
        private static void OnGameUpdate(EventArgs args)
        {
            if (Config.Item("debugOn").GetValue <KeyBind>().Active) //fullDMG
            {
                foreach (var buf in MasterYi.player.Buffs)
                {
                    Console.WriteLine(buf.Name);
                }
            }
            if (LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo)
            {
                Obj_AI_Hero target = TargetSelector.GetTarget(800, TargetSelector.DamageType.Physical);
                LXOrbwalker.ForcedTarget = target;
                if (target != null)
                {
                    MasterYi.selectedTarget = target;
                }
                MasterYi.slayMaderDuker(target);
            }

            DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive());
            foreach (var skillShot in DetectedSkillshots)
            {
                if (skillShot.IsAboutToHit(250, MasterYi.player))
                {
                    MasterYi.evadeSkillShot(skillShot);
                }
            }

            //anti buferino
            foreach (var buf in MasterYi.player.Buffs)
            {
                TargetedSkills.TargSkill skill = TargetedSkills.dagerousBuffs.FirstOrDefault(ob => ob.sName == buf.Name);
                if (skill != null)
                {
                    // Console.WriteLine("Evade: " + buf.Name);
                    MasterYi.evadeBuff(buf, skill);
                }
                // if(buf.EndTime-Game.Time<0.2f)
            }
        }
コード例 #8
0
        private static void OnGameUpdate(EventArgs args)
        {
            if (Config.Item("debugOn").GetValue <KeyBind>().Active) //fullDMG
            {
                foreach (var buf in MasterYi.player.Buffs)
                {
                    Console.WriteLine(buf.Name);
                }
            }
            if (LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo)
            {
                Obj_AI_Hero target = SimpleTs.GetTarget(MasterYi.Q.IsReady(500)?800:300, SimpleTs.DamageType.Physical);
                LXOrbwalker.ForcedTarget = target;
                if (target != null)
                {
                    MasterYi.selectedTarget = target;
                }
                MasterYi.slayMaderDuker(target);
            }

            DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive());
            foreach (var skillShot in DetectedSkillshots)
            {
                if (skillShot.IsAboutToHit(250, MasterYi.player))
                {
                    MasterYi.evadeSkillShot(skillShot);
                }
            }

            //anti buferino
            foreach (var buf in MasterYi.player.Buffs)
            {
                if (TargetedSkills.dagerousBuffs.Contains(buf.Name))
                {
                    Console.WriteLine("evade buuf");
                    // if(buf.EndTime-Game.Time<0.2f)
                    MasterYi.evadeBuff(buf);
                }
            }
        }
コード例 #9
0
        private static void OnGameUpdate(EventArgs args)
        {
            if (LXOrbwalker.CurrentMode == LXOrbwalker.Mode.Combo)
            {
                Obj_AI_Hero target = SimpleTs.GetTarget(MasterYi.Q.IsReady(500)?800:300, SimpleTs.DamageType.Physical);
                LXOrbwalker.ForcedTarget = target;
                if (target != null)
                {
                    MasterYi.selectedTarget = target;
                }
                MasterYi.slayMaderDuker(target);
            }

            DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive());
            foreach (var skillShot in DetectedSkillshots)
            {
                if (skillShot.IsAboutToHit(250, MasterYi.player))
                {
                    MasterYi.evadeSkillShot(skillShot);
                }
            }
        }
コード例 #10
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Chat.Print("MasterYi -  by DeTuKs");
            MasterYi.setSkillShots();
            try
            {
                TargetedSkills.setUpSkills();

                Config = new Menu("MasterYi - Sharp", "MasterYi", true);
                Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));

                //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("useWatHP", "use W below HP")).SetValue(new Slider(100, 0, 100));
                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;
                CustomEvents.Unit.OnDash            += onDash;
                Orbwalking.AfterAttack += afterAttack;
            }
            catch
            {
                Chat.Print("Oops. Something went wrong with Jayce - Sharp");
            }
        }
コード例 #11
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");
            }
        }