Exemplo n.º 1
0
        private static void onDraw(EventArgs args)
        {
            if (Config.Item("noDraw").GetValue <bool>())
            {
                return;
            }
            if (Config.Item("drawQmax").GetValue <bool>())
            {
                Render.Circle.DrawCircle(Azir.Player.Position, 1150, (DeathWalker.canAttack()) ? Color.Red : Color.Blue);
            }

            if (Config.Item("drawSoliAA").GetValue <bool>() || Config.Item("drawSoliCtrl").GetValue <bool>())
            {
                foreach (var solid in Azir.MySoldiers)
                {
                    if (solid.IsValid && !solid.IsDead)
                    {
                        if (Config.Item("drawSoliAA").GetValue <bool>())
                        {
                            Render.Circle.DrawCircle(solid.Position, 325, Color.Yellow);
                        }
                        if (Config.Item("drawSoliCtrl").GetValue <bool>())
                        {
                            Render.Circle.DrawCircle(solid.Position, 900, Color.GreenYellow);
                        }
                    }
                }
            }

            if (Config.Item("drawW").GetValue <bool>())
            {
                Render.Circle.DrawCircle(Azir.Player.Position, Azir.W.Range, Color.Yellow);
            }

            if (Config.Item("drawR").GetValue <bool>())
            {
                Obj_AI_Base tower =
                    ObjectManager.Get <Obj_AI_Turret>()
                    .Where(tur => tur.IsAlly && tur.Health > 0)
                    .OrderBy(tur => Azir.Player.Distance(tur))
                    .First();
                if (tower != null)
                {
                    var pol = DeathMath.getPolygonOn(Azir.Player.Position.Extend(tower.Position, -125).To2D(),
                                                     tower.Position.To2D(), 300 + Azir.R.Level * 100, 270);
                    pol.Draw(Color.Yellow);
                }
            }
        }
Exemplo n.º 2
0
 public static void doAttack()
 {
     List<Obj_AI_Hero> enes = getEnemiesInSolRange();
     if (enes != null)
     {
          foreach (var ene in enes)
          {
              if (DeathWalker.canAttack() && solisAreStill())
              {
                  Console.WriteLine("Attack");
                  DeathWalker.doAttack(ene);
              }
          }
     }
 }
Exemplo n.º 3
0
        public static void doCombo(Obj_AI_Hero targ)
        {
            if (Player.IsDead)
                return;
            if (AzirSharp.Config.Item("useW").GetValue<bool>())
            {
                castWTarget(targ);
            }
            // if (getEnemiesInSolRange().Count == 0)
            if (!enemyInAzirRange(targ) || (targ.Health <= Q.GetDamage(targ) + DeathWalker.getRealAADmg(targ))) && AzirSharp.Config.Item("useQ").GetValue<bool>())
                castQTarget(targ);

            if (AzirSharp.Config.Item("useE").GetValue<bool>() )
                castETarget(targ);

            if (AzirSharp.Config.Item("useR").GetValue<bool>())
            {
                if (targ.Health < R.GetDamage(targ))
                    R.Cast(targ);
            }
        }
Exemplo n.º 4
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Game.PrintChat("Azir - Sharp by DeTuKs");

            try
            {
                Config = new Menu("Azir - Sharp", "Azir", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                DeathWalker.AddToMenu(Config.SubMenu("Orbwalker"));
                //TS
                var TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                TargetSelector.AddToMenu(TargetSelectorMenu);
                Config.AddSubMenu(TargetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("Combo Sharp", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("fullin", "full in combo")).SetValue(new KeyBind('A', KeyBindType.Press, false));
                Config.SubMenu("combo").AddItem(new MenuItem("useQ", "use Q")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useW", "use W")).SetValue(false);
                Config.SubMenu("combo").AddItem(new MenuItem("useE", "use E")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useR", "use R")).SetValue(false);
                Config.SubMenu("combo").AddItem(new MenuItem("fly", "fly to mouse")).SetValue(new KeyBind('T', KeyBindType.Press, false));
                Config.SubMenu("combo").AddItem(new MenuItem("glide", "Inject closest")).SetValue(new KeyBind('Y', KeyBindType.Press, false));

                //LastHit
                // Config.AddSubMenu(new Menu("LastHit Sharp", "lHit"));

                //LaneClear
                // Config.AddSubMenu(new Menu("LaneClear Sharp", "lClear"));

                //Extra
                Config.AddSubMenu(new Menu("Extra Sharp", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("wasteR", "dont Waste R")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("autoTower", "auto R undet turr")).SetValue(true);

                //Drawings
                Config.AddSubMenu(new Menu("Drawings Sharp", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("noDraw", "No Drawings")).SetValue(false);
                Config.SubMenu("draw").AddItem(new MenuItem("drawQmax", "draw Q max")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawW", "draw W")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawR", "draw R")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawFullDmg", "draw damage")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawSoliAA", "draw Solider AA")).SetValue(true);
                Config.SubMenu("draw").AddItem(new MenuItem("drawSoliCtrl", "draw Solider Control")).SetValue(true);

                //Debug
                Config.AddSubMenu(new Menu("Debug", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("db_targ", "Debug Target")).SetValue(new KeyBind('U', KeyBindType.Press, false));


                Config.AddToMainMenu();
                Drawing.OnDraw += onDraw;
                Game.OnUpdate  += OnGameUpdate;

                GameObject.OnCreate            += OnCreateObject;
                GameObject.OnDelete            += OnDeleteObject;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;


                Spellbook.OnCastSpell += onCastSpell;

                Drawing.OnEndScene += OnEndScene;

                //  Game.OnGameSendPacket += OnGameSendPacket;
                // Game.OnGameProcessPacket += OnGameProcessPacket;
                DeathWalker.azir = true;
                Azir.setSkillShots();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                Game.PrintChat("Oops. Something went wrong with Azir Sharp");
            }
        }
Exemplo n.º 5
0
        private static void OnGameUpdate(EventArgs args)
        {
            try
            {
                /* if (Azir.getUsableSoliders().Count != 0)
                 * {
                 *
                 *   Obj_AI_Minion fir = Azir.getUsableSoliders().First();
                 *   if (fir.IsMoving)
                 *   {
                 *       if (first)
                 *       {
                 *           startTime = Game.Time;
                 *           startPos = fir.ServerPosition;
                 *           first = false;
                 *       }
                 *
                 *   }
                 *   else
                 *   {
                 *       if (!first)
                 *       {
                 *           endTime = Game.Time;
                 *           endPos = fir.ServerPosition;
                 *           float dist = endPos.Distance(startPos);
                 *           Console.WriteLine(dist/(endTime-startTime));
                 *           Console.WriteLine(Azir.Player.BoundingRadius);
                 *           first = true;
                 *       }
                 *   }
                 * }*/

                if (DeathWalker.CurrentMode == DeathWalker.Mode.Combo)
                {
                    Obj_AI_Hero target = TargetSelector.GetTarget(1200, TargetSelector.DamageType.Magical);
                    if (target != null)
                    {
                        Azir.doCombo(target);
                    }
                }

                if (DeathWalker.CurrentMode == DeathWalker.Mode.Harass)
                {
                    //Azir.doAttack();
                }

                if (DeathWalker.CurrentMode == DeathWalker.Mode.LaneClear)
                {
                    //Azir.doAttack();
                }

                if (Config.Item("fly").GetValue <KeyBind>().Active)
                {
                    Azir.doFlyToMouse(Game.CursorPos);
                }

                if (Config.Item("db_targ").GetValue <KeyBind>().Active)
                {
                    tempTestPos = Game.CursorPos;
                }

                if (Config.Item("glide").GetValue <KeyBind>().Active)
                {
                    Obj_AI_Hero target = TargetSelector.GetTarget(1200, TargetSelector.DamageType.Magical);
                    if (target != null)
                    {
                        Azir.doGlideToMouse(target.Position);
                    }
                }

                if (Config.Item("autoTower").GetValue <bool>())
                {
                    Azir.autoRunderTower();
                }

                if (Config.Item("fullin").GetValue <KeyBind>().Active)
                {
                    DeathWalker.deathWalk(Game.CursorPos);
                    Obj_AI_Hero target = TargetSelector.GetTarget(1500, TargetSelector.DamageType.Magical);
                    if (target != null)
                    {
                        Azir.goFullIn(target);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
                throw;
            }
        }