Пример #1
0
        public static void OnLoad(EventArgs args)
        {
            if (Player.ChampionName != "Jayce")
            {
                return;
            }
            MenuConfig.OnLoad();
            //ranged
            Q  = new Spell(SpellSlot.Q, 1050);
            Qe = new Spell(SpellSlot.Q, 1470);
            W  = new Spell(SpellSlot.W, int.MaxValue);
            E  = new Spell(SpellSlot.E, 650);

            //   melee
            Qm    = new Spell(SpellSlot.Q, 600);
            Wm    = new Spell(SpellSlot.W, int.MaxValue);
            Em    = new Spell(SpellSlot.E, 240);
            R     = new Spell(SpellSlot.R, int.MaxValue);
            qpred = new PredictionInput
            {
                Aoe       = false,
                Collision = false,
                Speed     = Qe.Speed,
                Delay     = Qe.Delay,
                Range     = Qe.Range,
                Radius    = Qe.Width,
                Type      = SkillshotType.SkillshotLine
            };

            qpred1 = new PredictionInput
            {
                Aoe       = false,
                Collision = false,
                Speed     = Q.Speed,
                Delay     = Q.Delay,
                Range     = Q.Range,
                Radius    = Q.Width,
                Type      = SkillshotType.SkillshotLine
            };

            Q.SetSkillshot(0.3f, 70f, 1500, true, LeagueSharp.Common.SkillshotType.SkillshotLine);
            Qe.SetSkillshot(0.3f, 70f, 2180, true, LeagueSharp.Common.SkillshotType.SkillshotLine);
            Qm.SetTargetted(0f, float.MaxValue);
            Em.SetTargetted(0f, float.MaxValue);
            Game.OnUpdate            += OnUpdate;
            Spellbook.OnCastSpell    += OnCastSpell;
            Drawing.OnDraw           += OnDraw;
            Game.OnUpdate            += GeneralOnUpdate;
            Obj_AI_Base.OnDoCast     += OnDoCastRange;
            Obj_AI_Base.OnDoCast     += OnDoCastMelee;
            Obj_AI_Base.OnDoCast     += LaneClear;
            CustomEvents.Unit.OnDash += OnDash;
            // Obj_AI_Base.OnProcessSpellCast += OnProcessCast;
            AntiGapcloser.OnEnemyGapcloser     += OnGapClose;
            Interrupter2.OnInterruptableTarget += OnInterrupt;
            Obj_AI_Base.OnIssueOrder           += OnOrder;
            // GameObject.OnCreate += OnCreate;
        }
Пример #2
0
        public static void OnLoad(EventArgs args)
        {
            if (Player.ChampionName != "Jayce")
            {
                return;
            }
            MenuConfig.OnLoad();
            //ranged
            Q  = new Spell(SpellSlot.Q, 1050);
            Qe = new Spell(SpellSlot.Q, 1470);
            W  = new Spell(SpellSlot.W, int.MaxValue);
            E  = new Spell(SpellSlot.E, 650);

            //   melee
            Qm = new Spell(SpellSlot.Q, 600);
            Wm = new Spell(SpellSlot.W, int.MaxValue);
            Em = new Spell(SpellSlot.E, 240);
            R  = new Spell(SpellSlot.R, int.MaxValue);


            Q.SetSkillshot(0f, 70f, 1200, true, SkillshotType.SkillshotLine);
            Qe.SetSkillshot(0f, 70f, 2350, true, SkillshotType.SkillshotLine);
            Qm.SetTargetted(0.25f, float.MaxValue);
            Em.SetTargetted(0.25f, float.MaxValue);
            Game.OnUpdate            += OnUpdate;
            Spellbook.OnCastSpell    += OnCastSpell;
            Drawing.OnDraw           += OnDraw;
            Game.OnUpdate            += GeneralOnUpdate;
            Obj_AI_Base.OnDoCast     += OnDoCastRange;
            Obj_AI_Base.OnDoCast     += OnDoCastMelee;
            Obj_AI_Base.OnDoCast     += LaneClear;
            CustomEvents.Unit.OnDash += OnDash;
            // Obj_AI_Base.OnProcessSpellCast += OnProcessCast;
            AntiGapcloser.OnEnemyGapcloser     += OnGapClose;
            Interrupter2.OnInterruptableTarget += OnInterrupt;
            // GameObject.OnCreate += OnCreate;
        }