Esempio n. 1
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();
            }
        }
Esempio n. 2
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();
            }
        }