Пример #1
0
 public static void OnPosibleToInterrupt(Obj_AI_Base unit, InterruptableSpell spell)
 {
     if (Config.Item("autoInter").GetValue <bool>() && (int)spell.DangerLevel > 0)
     {
         Jayce.knockAway(unit);
     }
 }
Пример #2
0
 private static void OnEnemyGapcloser(ActiveGapcloser gapcloser)
 {
     if (Config.Item("gapClose").GetValue <bool>())
     {
         Jayce.knockAway(gapcloser.Sender);
     }
 }
Пример #3
0
 private static void OnPosibleToInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args)
 {
     if (Config.Item("autoInter").GetValue <bool>() && (int)args.DangerLevel > 0)
     {
         Jayce.knockAway(sender);
     }
 }
Пример #4
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Game.PrintChat("Jayce - SharpV2 by DeTuKs");
            Jayce.setSkillShots();
            try
            {
                Config = new Menu("Jayce - Sharp", "Jayce", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                Jayce.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //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", "Use Items")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("hammerKill", "Hammer if killable")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("parlelE", "use pralel gate")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("fullDMG", "Do full damage")).SetValue(new KeyBind('A', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("injTarget", "Tower Injection")).SetValue(new KeyBind('G', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("awsPress", "Press for awsomeee!!")).SetValue(new KeyBind('Z', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("eAway", "Gate distance from side")).SetValue(new Slider(20, 3, 60));

                //Extra
                Config.AddSubMenu(new Menu("Extra Sharp", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("shoot", "Shoot manual Q")).SetValue(new KeyBind('T', KeyBindType.Press));
                Config.SubMenu("extra").AddItem(new MenuItem("gapClose", "Kick Gapclosers")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("autoInter", "Interupt spells")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("useMunions", "Q use Minion colision")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("killSteal", "Killsteal")).SetValue(false);
                Config.SubMenu("extra").AddItem(new MenuItem("packets", "Use Packet cast")).SetValue(false);

                //Debug
                Config.AddSubMenu(new Menu("Drawing", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("drawCir", "Draw circles")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawCD", "Draw CD")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawFull", "Draw full combo dmg")).SetValue(true);

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

                Game.OnGameUpdate += OnGameUpdate;

                Obj_AI_Base.OnProcessSpellCast   += OnProcessSpell;
                AntiGapcloser.OnEnemyGapcloser   += OnEnemyGapcloser;
                Interrupter.OnPosibleToInterrupt += OnPosibleToInterrupt;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Jayce - Sharp");
            }
        }
Пример #5
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Game.PrintChat("Jayce - SharpV2 by DeTuKs");
            Jayce.setSkillShots();
            try
            {
                Config = new Menu("【無為汉化】杰斯", "Jayce", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("走砍", "Orbwalker"));
                Jayce.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //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("hammerKill", "可杀用锤子")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("parlelE", "使用加速之门")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("fullDMG", "打满伤害")).SetValue(new KeyBind('A', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("injTarget", "E进塔")).SetValue(new KeyBind('G', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("awsPress", "这是个煞笔功能")).SetValue(new KeyBind('Z', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("eAway", "门的距离")).SetValue(new Slider(20, 3, 60));

                //Extra
                Config.AddSubMenu(new Menu("其他", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("shoot", "手动Q")).SetValue(new KeyBind('T', KeyBindType.Press));
                Config.SubMenu("extra").AddItem(new MenuItem("gapClose", "E突进")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("autoInter", "打断技能")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("useMunions", "小兵引爆Q")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("killSteal", "抢人头")).SetValue(false);
                Config.SubMenu("extra").AddItem(new MenuItem("packets", "使用封包")).SetValue(false);

                //Debug
                Config.AddSubMenu(new Menu("显示", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("drawCir", "显示线圈")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawCD", "显示CD")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawFull", "显示连招伤害")).SetValue(true);

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

                Game.OnGameUpdate += OnGameUpdate;

                Obj_AI_Base.OnProcessSpellCast    += OnProcessSpell;
                AntiGapcloser.OnEnemyGapcloser    += OnEnemyGapcloser;
                Interrupter.OnPossibleToInterrupt += OnPosibleToInterrupt;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Jayce - Sharp");
            }
        }
Пример #6
0
        private static void onLoad(EventArgs args)
        {
            Game.PrintChat("Jayce - SharpV2 by DeTuKs 鍔犺浇鎴愬姛!姹夊寲by浜岀嫍!QQ缇361630847");
            Jayce.setSkillShots();
            try
            {
                Config = new Menu("JayceV2-浜岀嫍姹夊寲", "Jayce", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("璧扮爫", "Orbwalker"));
                Jayce.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //TS
                Menu targetSelectorMenu = new Menu("鐩爣閫夋嫨", "Target Selector");
                SimpleTs.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("hammerKill", "鍙互鏉€姝诲垏鎹㈤敜瀛恷")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("fullDMG", "鍋氬畬鏁寸殑浼ゅ")).SetValue(new KeyBind('A', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("injTarget", "濉旀敞鍏")).SetValue(new KeyBind('G', KeyBindType.Press));
                Config.SubMenu("combo").AddItem(new MenuItem("awsPress", "鏉版柉瑁哥収!!")).SetValue(new KeyBind('Z', KeyBindType.Press));

                //Extra
                Config.AddSubMenu(new Menu("鏉傞」 鐘€鍒﹟", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("shoot", "鎵嬪姩EQ浜岃繛")).SetValue(new KeyBind('T', KeyBindType.Press));
                Config.SubMenu("extra").AddItem(new MenuItem("gapClose", "鑷姩閿ゅ紑绐佽劯鐨剕")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("autoInter", "Interupt spells")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("useMunions", "鑷姩EQ鏁屾柟")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("killSteal", "鎶汉澶磡")).SetValue(false);
                Config.SubMenu("extra").AddItem(new MenuItem("packets", "浣跨敤灏佸寘")).SetValue(false);

                //Debug
                Config.AddSubMenu(new Menu("鑼冨洿缁樺埗", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("drawCir", "缁樺埗鎶€鑳借寖鍥磡")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawCD", "鎶€鑳藉洖澶嶆枃鏈瑋")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawFull", "缁樺埗瀹屾暣鐨勮繛鍑讳激瀹硘")).SetValue(true);

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

                Game.OnGameUpdate += OnGameUpdate;

                Obj_AI_Base.OnProcessSpellCast   += OnProcessSpell;
                AntiGapcloser.OnEnemyGapcloser   += OnEnemyGapcloser;
                Interrupter.OnPosibleToInterrupt += OnPosibleToInterrupt;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Jayce - Sharp");
            }
        }
Пример #7
0
        private static void OnEndScene(EventArgs args)
        {
            if (Config.Item("awsPress").GetValue <KeyBind>().Active)
            {
                hpi.drawAwsomee();
            }

            if (Config.Item("drawFull").GetValue <bool>())
            {
                foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible))
                {
                    hpi.unit = enemy;
                    hpi.drawDmg(Jayce.getJayceFullComoDmg(enemy), Color.Yellow);
                }
            }
        }
Пример #8
0
 public static void OnProcessSpell(Obj_AI_Base obj, GameObjectProcessSpellCastEventArgs arg)
 {
     if (obj.IsMe)
     {
         if (arg.SData.Name == "jayceshockblast")
         {
             //  Jayce.castEonQ = arg;
         }
         else if (arg.SData.Name == "jayceaccelerationgate")
         {
             Jayce.castEonQ = null;
             // Console.WriteLine("Cast dat E on: " + arg.SData.Name);
         }
         Jayce.getCDs(arg);
     }
 }
Пример #9
0
        private static void onDraw(EventArgs args)
        {
            //Draw CD
            if (Config.Item("drawCD").GetValue <bool>())
            {
                Jayce.drawCD();
            }

            if (!Config.Item("drawCir").GetValue <bool>())
            {
                return;
            }
            Utility.DrawCircle(Jayce.Player.Position, !Jayce.isHammer ? 1100 : 600, Color.Red);

            Utility.DrawCircle(Jayce.Player.Position, 1550, Color.Violet);
        }
Пример #10
0
        private static void OnGameUpdate(EventArgs args)
        {
            Jayce.checkForm();
            Jayce.processCDs();
            if (Config.Item("shoot").GetValue <KeyBind>().Active)
            {
                Jayce.shootQE(Game.CursorPos);
            }

            if (!Jayce.E1.IsReady())
            {
                Jayce.castQon = new Vector3(0, 0, 0);
            }

            else if (Jayce.castQon.X != 0)
            {
                Jayce.shootQE(Jayce.castQon);
            }

            if (Config.Item("fullDMG").GetValue <KeyBind>().Active)//fullDMG
            {
                Jayce.activateMura();
                Obj_AI_Hero target = SimpleTs.GetTarget(Jayce.getBestRange(), SimpleTs.DamageType.Physical);
                if (Jayce.lockedTarg == null)
                {
                    Jayce.lockedTarg = target;
                }
                Jayce.doFullDmg(Jayce.lockedTarg);
            }
            else
            {
                Jayce.lockedTarg = null;
            }

            if (Config.Item("injTarget").GetValue <KeyBind>().Active)//fullDMG
            {
                Jayce.activateMura();
                Obj_AI_Hero target = SimpleTs.GetTarget(Jayce.getBestRange(), SimpleTs.DamageType.Physical);
                if (Jayce.lockedTarg == null)
                {
                    Jayce.lockedTarg = target;
                }
                Jayce.doJayceInj(Jayce.lockedTarg);
            }
            else
            {
                Jayce.lockedTarg = null;
            }

            if (Jayce.castEonQ != null && (Jayce.castEonQ.TimeSpellEnd - 2) > Game.Time)
            {
                Jayce.castEonQ = null;
            }

            if (Jayce.orbwalker.ActiveMode.ToString() == "Combo")
            {
                Jayce.activateMura();
                Obj_AI_Hero target = SimpleTs.GetTarget(Jayce.getBestRange(), SimpleTs.DamageType.Physical);
                Jayce.doCombo(target);
            }

            if (Config.Item("killSteal").GetValue <bool>())
            {
                Jayce.doKillSteal();
            }

            if (Jayce.orbwalker.ActiveMode.ToString() == "Mixed")
            {
                Jayce.deActivateMura();
            }

            if (Jayce.orbwalker.ActiveMode.ToString() == "LaneClear")
            {
                Jayce.deActivateMura();
            }
        }
Пример #11
0
        private static void OnGameUpdate(EventArgs args)
        {
            Jayce.checkForm();
            Jayce.processCDs();
            if (Config.Item("shoot").GetValue <KeyBind>().Active)
            {
                Jayce.shootQE(Game.CursorPos, true);
            }
            if (Jayce.myCastedQ != null && (Config.Item("fullDMG").GetValue <KeyBind>().Active || Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo))
            {
                Jayce.castEonSpell(Jayce.myCastedQ);
            }

            /* if (Jayce.castedQon != null && !Jayce.isHammer)
             * {
             *  if((Jayce.getJayceEQDmg(Jayce.castedQon) > Jayce.castedQon.Health ||
             *   Jayce.castedQon.Distance(Jayce.Player) > Jayce.E1.Range || !Config.Item("useExploit").GetValue<bool>()))
             *  {
             *
             *      if (Jayce.castQon.X != 0)
             *          Jayce.shootQE(Jayce.castQon);
             *  }
             *  else
             *  {
             *      Jayce.doExploit(Jayce.castedQon);
             *  }
             * }*/
            //}



            if (Config.Item("fullDMG").GetValue <KeyBind>().Active)//fullDMG
            {
                Jayce.activateMura();
                AIHeroClient target = TargetSelector.GetTarget(Jayce.getBestRange(), TargetSelector.DamageType.Physical);
                if (Jayce.lockedTarg == null)
                {
                    Jayce.lockedTarg = target;
                }
                Jayce.doFullDmg(Jayce.lockedTarg);
            }
            else
            {
                Jayce.lockedTarg = null;
            }

            if (Config.Item("injTarget").GetValue <KeyBind>().Active)//fullDMG
            {
                Jayce.activateMura();
                AIHeroClient target = TargetSelector.GetTarget(Jayce.getBestRange(), TargetSelector.DamageType.Physical);
                if (Jayce.lockedTarg == null)
                {
                    Jayce.lockedTarg = target;
                }
                Jayce.doJayceInj(Jayce.lockedTarg);
            }
            else
            {
                Jayce.lockedTarg = null;
            }

            // if (Jayce.castEonQ != null && (Jayce.castEonQ. - 2) > Game.Time)
            //    Jayce.castEonQ = null;

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)
            {
                Jayce.activateMura();
                AIHeroClient target = TargetSelector.GetTarget(Jayce.getBestRange(), TargetSelector.DamageType.Physical);
                Jayce.doCombo(target);
            }

            if (Config.Item("killSteal").GetValue <bool>())
            {
                Jayce.doKillSteal();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed)
            {
                Jayce.deActivateMura();
            }

            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                Jayce.deActivateMura();
            }
        }