Example #1
0
 private static void OnEndScene(EventArgs args)
 {
     if (Config.Item("drawFullDmg").GetValue <bool>())
     {
         foreach (var enemy in DeathWalker.AllEnemys.Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible))
         {
             hpi.unit = enemy;
             hpi.drawDmg(Azir.getFullDmgOn(enemy), Color.Yellow);
         }
     }
 }
Example #2
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");
            }
        }
Example #3
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;
            }
        }