Beispiel #1
0
        public override void Draw()
        {
            if (user.IsDead)
            {
                return;
            }

            if (IsCastingR)
            {
                if (RMenu.checkbox("Rnear"))
                {
                    Circle.Draw(SharpDX.Color.Red, RMenu.slider("Mradius"), Game.CursorPos);
                }
            }

            if (MiscMenu.checkbox("Notifications") && R.IsReady())
            {
                var t = TargetSelector.GetTarget(R.Range, DamageType.Physical);

                if (t != null && t.IsKillable())
                {
                    var rDamage = R.GetDamage(t);
                    if (rDamage * 5 > t.Health)
                    {
                        Drawing.DrawText(Drawing.Width * 0.1f, Drawing.Height * 0.5f, Color.Red, (int)(t.Health / rDamage) + " x Ult can kill: " + t.ChampionName + " have: " + t.Health + "hp");
                        DrawingsManager.drawLine(t.Position, user.Position, 10, Color.Yellow);
                    }
                }
            }
        }
Beispiel #2
0
 private static void Player_OnIssueOrder(Obj_AI_Base sender, PlayerIssueOrderEventArgs args)
 {
     if (IsCastingR && RMenu.checkbox("Rblock"))
     {
         args.Process = false;
     }
 }
Beispiel #3
0
        private static void WhileCastingR()
        {
            if (!RMenu.checkbox("R"))
            {
                return;
            }

            var rMode = RMenu.combobox("Rmode");

            var rTarget = RMenu.checkbox("Rnear") ? GetTargetNearMouse(RMenu.slider("Mradius")) : TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (rTarget != null)
            {
                if (rTarget.TotalShieldHealth() - R.GetDamage(rTarget) < 0)
                {
                    if (EloBuddy.SDK.Core.GameTickCount - RCharge.CastT <= 0)
                    {
                        return;
                    }
                }

                if (RCharge.Index != 0 && rTarget.Distance(RCharge.Position) > 1000)
                {
                    if (EloBuddy.SDK.Core.GameTickCount - RCharge.CastT <= Math.Min(2500, rTarget.Distance(RCharge.Position) - 1000))
                    {
                        return;
                    }
                }

                scrybeorbuse();
                switch (rMode)
                {
                case 0:
                    R.Cast(rTarget, R.hitchance(Menuini));
                    break;

                case 1:
                    var delay = RMenu.slider("delay" + (RCharge.Index + 1));
                    if (EloBuddy.SDK.Core.GameTickCount - RCharge.CastT > delay)
                    {
                        R.Cast(rTarget, R.hitchance(Menuini));
                    }

                    break;

                case 2:
                    if (RCharge.TapKeyPressed)
                    {
                        R.Cast(rTarget);
                    }

                    break;
                }
            }
        }
Beispiel #4
0
        public static void scrybeorbuse()
        {
            if (!RMenu.checkbox("scrybR"))
            {
                return;
            }

            var target = TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (target == null)
            {
                return;
            }

            if (Scryb.IsOwned(user) &&
                (target.IsDashing() || target.Distance(R.GetPrediction(target).CastPosition) > 150 || NavMesh.IsWallOfGrass(Prediction.Position.PredictUnitPosition(target, 150).To3D(), 50)))
            {
                Scryb.Cast(R.GetPrediction(target).CastPosition);
            }
        }