Example #1
0
        public static void Drawing_OnDraw(EventArgs args)
        {
            if (!player.IsDead)
            {
                if (EventManager.riventarget().IsValidTarget(int.MaxValue))
                {
                    var tpos = Drawing.WorldToScreen(EventManager.riventarget().Position);

                    if (getCheckBoxItem(drawMenu, "drawf"))
                    {
                        Circle.Draw(Color.GreenYellow, 120, EventManager.riventarget().Position);
                    }

                    if (EventManager.riventarget().HasBuff("Stun"))
                    {
                        var b = EventManager.riventarget().GetBuff("Stun");
                        if (b.Caster.IsMe && b.EndTime - Game.Time > 0)
                        {
                            Drawing.DrawText(tpos[0], tpos[1], System.Drawing.Color.Lime, "STUNNED " + (b.EndTime - Game.Time).ToString("F"));
                        }
                    }
                }

                if (EventManager._sh.IsValidTarget())
                {
                    if (getCheckBoxItem(drawMenu, "drawf"))
                    {
                        Circle.Draw(Color.GreenYellow, 90, EventManager._sh.Position);
                    }
                }

                if (getCheckBoxItem(drawMenu, "drawengage"))
                {
                    Circle.Draw(Color.White, player.AttackRange + SpellManager.E.Range, player.Position);
                }

                if (getCheckBoxItem(drawMenu, "drawr2"))
                {
                    Circle.Draw(Color.White, SpellManager.R2.Range, player.Position);
                }

                if (getCheckBoxItem(drawMenu, "drawburst") && (ComboManager.canburst() || ComboManager.shy()) && EventManager.riventarget().IsValidTarget())
                {
                    var xrange = getCheckBoxItem(comboMenu, "flashb") && SpellManager.Flash.IsReady() ? 255 : 0;
                    Circle.Draw(Color.LawnGreen, SpellManager.E.Range + SpellManager.W.Range - 25 + xrange, EventManager.riventarget().Position);
                }

                var heropos = Drawing.WorldToScreen(ObjectManager.Player.Position);


                if (Qcount != 0 && getCheckBoxItem(drawMenu, "drawTimer1"))
                {
                    Drawing.DrawText((int)Drawing.WorldToScreen(player.Position).X - 60, (int)Drawing.WorldToScreen(player.Position).Y + 43, System.Drawing.Color.Red, "Q Expiry =>  " + ((double)(lastq - Core.GameTickCount + 3800) / 1000).ToString("0.0") + "S");
                }

                if (Player.HasBuff("RivenFengShuiEngine") && getCheckBoxItem(drawMenu, "drawTimer2"))
                {
                    Drawing.DrawText((int)Drawing.WorldToScreen(player.Position).X - 60, (int)Drawing.WorldToScreen(player.Position).Y + 65, System.Drawing.Color.Yellow, "R Expiry =>  " + (((double)lastr - Core.GameTickCount + 15000) / 1000).ToString("0.0") + "S");
                }
                if (getCheckBoxItem(drawMenu, "drawAlwaysR"))
                {
                    Drawing.DrawText(heropos.X - 35, heropos.Y + 20, System.Drawing.Color.DodgerBlue, "Always R (H) (     )");
                    Drawing.DrawText(heropos.X + 60, heropos.Y + 20, getKeyBindItem(comboMenu, "user") ? System.Drawing.Color.LimeGreen : System.Drawing.Color.Red, getKeyBindItem(comboMenu, "user") ? "On" : "Off");
                }
            }
        }
Example #2
0
        public static void Game_OnUpdate(EventArgs args)
        {
            if (SpellManager.W.Level > 0)
            {
                if (Me.HasBuff("RivenFengShuiEngine"))
                {
                    SpellManager.W.Range = 330;
                }
                else
                {
                    SpellManager.W.Range = 260;
                }
            }

            // my radius
            truerange = player.AttackRange + player.Distance(player.BBox.Minimum) + 1;

            // if no valid target cancel to cursor pos
            if (!ComboManager.qtarg.IsValidTarget(truerange + 100))
            {
                ComboManager.qtarg = player;
            }

            if (!riventarget().IsValidTarget())
            {
                _sh = null;
            }

            // move target position
            if (ComboManager.qtarg != player && ComboManager.qtarg.Distance(player.ServerPosition) < SpellManager.R2.Range)
            {
                movepos = player.Position.Extend(Game.CursorPos, player.Distance(Game.CursorPos) + 500).To3DWorld();
            }

            // move to game cursor pos
            if (ComboManager.qtarg == player)
            {
                movepos = player.ServerPosition + (Game.CursorPos - player.ServerPosition).Normalized() * 125;
            }

            ComboManager.CastSkillOnupdate();
            ComboManager.CombatDelay();

            if (getCheckBoxItem(miscMenu, "skinHack"))
            {
                player.SetSkinId(getSliderItem(miscMenu, "SkinID"));
            }

            if (riventarget().IsValidTarget())
            {
                if (getKeyBindItem(comboMenu, "combokey"))
                {
                    ComboManager.ComboTarget(riventarget());
                }
            }

            if (getKeyBindItem(miscMenu, "shycombo"))
            {
                if (riventarget().IsValidTarget())
                {
                    ComboManager.SomeDash(riventarget());

                    if (SpellManager.W.IsReady() && riventarget().Distance(player.ServerPosition) <= SpellManager.W.Range + 50)
                    {
                        checkr();
                        SpellManager.W.Cast();
                    }

                    else if (SpellManager.Q.IsReady() && riventarget().Distance(player.ServerPosition) <= truerange + 100)
                    {
                        checkr();

                        if (!didaa && Core.GameTickCount - lasthd >= 300)
                        {
                            if (Core.GameTickCount - lastw >= 300 + Game.Ping)
                            {
                                Player.CastSpell(SpellSlot.Q, riventarget().ServerPosition);
                            }
                        }
                    }
                }
            }

            if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass) && riventarget().IsValidTarget())
            {
                HarassManager.HarassTarget(riventarget());
            }

            if (player.IsValid && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear))
            {
                ClearManager.LaneClear();
            }
            if (player.IsValid && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
            {
                ClearManager.JungClear();
            }

            if (player.IsValid && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
            {
                FleeManager.Flee();
            }

            r2Kill();
            r2Maxdamage();

            fightingLogic = player.CountAlliesInRange(1500) > 1 && player.CountEnemiesInRange(1350) > 2 || player.CountEnemiesInRange(1200) > 2;
        }