Exemplo n.º 1
0
        public static void SemiAutomaticR(GameWndProcEventArgs args)
        {
            if (!BaseMenu.Root["combo"]["bool"].Enabled ||
                args.WParam != BaseMenu.Root["combo"]["key"].As <MenuKeyBind>().Key)
            {
                return;
            }

            switch (args.Message)
            {
            case WindowMessage.KEYDOWN when !Definitions.IsCulling():
                if (LocalPlayer.Instance.IsDead || Orbwalker.IsWindingUp)
                {
                    return;
                }

                if (Champion.R.Ready)
                {
                    ExecuteSemiAutomaticR();
                }
                break;

            case WindowMessage.KEYUP when Definitions.IsCulling():
                Champion.R.Cast();

                break;
            }
        }
 private static void GameOnOnWndProc(GameWndProcEventArgs args)
 {
     if (args.Msg != 0x20a || !MouseScrollEnabled)
     {
         return;
     }
     ChangeEnabledStatus();
 }
Exemplo n.º 3
0
        private static void Game_OnWndProc(GameWndProcEventArgs args)
        {
            if (args.Msg != 520)
            {
                return;
            }

            Config["Farm"].GetValue <MenuBool>("EnabledFarm").Enabled = !Config["Farm"].GetValue <MenuBool>("EnabledFarm").Enabled;
        }
Exemplo n.º 4
0
        private static void Game_OnWndProc(GameWndProcEventArgs args)
        {
            if (args.Msg != (uint)WindowsMessages.MBUTTONDOWN)
            {
                return;
            }

            RFlash.Enabled = !RFlash.Enabled;
        }
Exemplo n.º 5
0
        public static void OnWndProc(GameWndProcEventArgs args)
        {
            if (args.WParam != ComboMenu.RSemiAutoKeyBind.Key)
            {
                return;
            }

            Automatic.SemiAutomaticR(args);
        }
Exemplo n.º 6
0
        private static void Game_OnWndProc(GameWndProcEventArgs args)
        {
            if (Program.TargetSelectorMenu["AssassinReset"].GetValue <MenuKeyBind>().Active)
            {
                ClearAssassinList();
                Game.Print(
                    "<font color='#FFFFFF'>Reset Assassin List is Complete! Click on the enemy for Add/Remove.</font>");
            }

            if (args.Msg != 0x201)
            {
                return;
            }

            if (Program.TargetSelectorMenu["AssassinSetClick"].GetValue <MenuBool>())
            {
                foreach (var objAiHero in from hero in ObjectManager.Get <AIHeroClient>()
                         where hero.IsValidTarget()
                         select hero
                         into h
                         orderby h.Distance(Game.CursorPos) descending
                         select h
                         into enemy
                         where enemy.Distance(Game.CursorPos) < 150f
                         select enemy)
                {
                    if (objAiHero != null && objAiHero.IsVisible && !objAiHero.IsDead)
                    {
                        var xSelect =
                            Program.TargetSelectorMenu["AssassinSelectOption"].GetValue <MenuList>().Index;

                        switch (xSelect)
                        {
                        case 0:
                            ClearAssassinList();
                            Program.TargetSelectorMenu["Assassin" + objAiHero.CharacterName].GetValue <MenuBool>().SetValue(true);
                            Game.Print(
                                string.Format(
                                    "<font color='FFFFFF'>Added to Assassin List</font> <font color='#09F000'>{0} ({1})</font>",
                                    objAiHero.Name, objAiHero.CharacterName));
                            break;

                        case 1:
                            var menuStatus = Program.TargetSelectorMenu["Assassin" + objAiHero.CharacterName].GetValue <MenuBool>().Enabled;
                            Program.TargetSelectorMenu["Assassin" + objAiHero.CharacterName].GetValue <MenuBool>().SetValue(!menuStatus);
                            Game.Print(
                                string.Format("<font color='{0}'>{1}</font> <font color='#09F000'>{2} ({3})</font>",
                                              !menuStatus ? "#FFFFFF" : "#FF8877",
                                              !menuStatus ? "Added to Assassin List:" : "Removed from Assassin List:",
                                              objAiHero.Name, objAiHero.CharacterName));
                            break;
                        }
                    }
                }
            }
        }
 private static void Game_OnWndProc(GameWndProcEventArgs args)
 {
     if (args.Msg == 123 && blockMove)
     {
         blockMove         = false;
         blockAttack       = false;
         Orbwalking.Attack = true;
         Orbwalking.Move   = true;
         Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
     }
 }
Exemplo n.º 8
0
 private static void Game_OnWndProc(GameWndProcEventArgs args)
 {
     if (args.Msg == (uint)WindowsMessages.MBUTTONDOWN)
     {
         Config["Farm"].GetValue <MenuBool>("EnabledFarm").Enabled = !Config["Farm"].GetValue <MenuBool>("EnabledFarm").Enabled;
     }
     if (args.Msg == (uint)WindowsMessages.LBUTTONDOWN)
     {
         Config["Combo"].GetValue <MenuBool>("AACombo").Enabled = !Config["Combo"].GetValue <MenuBool>("AACombo").Enabled;
     }
 }
Exemplo n.º 9
0
 private static void Game_OnWndProc(GameWndProcEventArgs args)
 {
     if (args.Msg == (uint)WindowsMessages.CONTEXTMENU && blockMove)
     {
         blockMove               = false;
         blockAttack             = false;
         Orbwalker.AttackState   = true;
         Orbwalker.MovementState = true;
         Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
     }
 }
Exemplo n.º 10
0
        public static void OnWndProc(GameWndProcEventArgs args)
        {
            if (E.Ready && args.WParam == ComboMenu.ESemiAutoKeyBind.Key)
            {
                Automatic.SemiAutomaticE();
            }

            if (R.Ready && args.WParam == RSettings.RSemiAutoKeyBind.Key)
            {
                Automatic.SemiAutomaticR();
            }
        }
Exemplo n.º 11
0
        public static void SemiAutomaticR(GameWndProcEventArgs args)
        {
            switch (args.Message)
            {
            case WindowMessage.KEYFIRST:
                if (R.Ready)
                {
                    ExecuteSemiAutomaticR();
                }

                break;
            }
        }
Exemplo n.º 12
0
        private static void Game_OnWndProc(GameWndProcEventArgs args)
        {
            if (args.Msg != 520)
            {
                return;
            }

            if (ObjectManager.Player.InShop() || ObjectManager.Player.InFountain())
            {
                return;
            }

            Config["Farm"].GetValue <MenuBool>("EnabledFarm").SetValue(!Config["Farm"].GetValue <MenuBool>("EnabledFarm"));
        }
Exemplo n.º 13
0
        private static void Game_OnWndProc(GameWndProcEventArgs args)
        {
            if (args.Msg != (ulong)WindowsMessages.LBUTTONDOWN)
            {
                return;
            }

            selectedobj = ObjectManager.Get <AIBaseClient>().Where(i => i.IsValid() &&
                                                                   (i.Type == GameObjectType.AIHeroClient || i.Type == GameObjectType.AIMinionClient) && i.Distance(Game.CursorPos) <= i.BoundingRadius + 100f).FirstOrDefault();

            if (selectedobj != null)
            {
                new Spell(SpellSlot.W).Cast(selectedobj);
            }
        }
Exemplo n.º 14
0
        private static void Game_OnWndProc(GameWndProcEventArgs args)
        {
            var idx = Config["farm"]["spellfarm"].GetValue <MenuList>("spellFarmMode").Index;

            if (idx == 3)
            {
                return;
            }

            if ((idx == 0 && args.Msg == (uint)WindowsMessages.MOUSEWHEEL) ||
                idx == 1 && args.Msg == (uint)WindowsMessages.MBUTTONUP)
            {
                var spellFarm = Config["farm"]["spellfarm"].GetValue <MenuBool>("spellFarm");
                var wrapper   = Config[Player.CharacterName] as Menu;

                if (wrapper != null)
                {
                    var farm = wrapper["farm"] as Menu;
                    if (farm != null)
                    {
                        var q = farm["farmQ"] as MenuBool;
                        var w = farm["farmW"] as MenuBool;
                        var e = farm["farmE"] as MenuBool;
                        var r = farm["farmR"] as MenuBool;

                        if (q != null)
                        {
                            q.Enabled = !q.Enabled;
                        }
                        if (w != null)
                        {
                            w.Enabled = !w.Enabled;
                        }
                        if (e != null)
                        {
                            e.Enabled = !e.Enabled;
                        }
                        if (r != null)
                        {
                            r.Enabled = !r.Enabled;
                        }
                    }
                }

                spellFarm.Enabled = !spellFarm.Enabled;
                spellFarmTimer    = Game.Time;
            }
        }
Exemplo n.º 15
0
        private static void OnWndProc(GameWndProcEventArgs Args)
        {
            if (AxeOption.GetBool("CancelCatch").Enabled)
            {
                if (AxeOption.GetBool("CancelKey2").Enabled&& (Args.Msg == 516 || Args.Msg == 517))
                {
                    if (Variables.GameTimeTickCount - lastCatchTime > 1800)
                    {
                        lastCatchTime = Variables.GameTimeTickCount;
                    }
                }

                if (AxeOption.GetBool("CancelKey3").Enabled&& Args.Msg == 519)
                {
                    if (Variables.GameTimeTickCount - lastCatchTime > 1800)
                    {
                        lastCatchTime = Variables.GameTimeTickCount;
                    }
                }
            }
        }
Exemplo n.º 16
0
 private static void OnWndProc(GameWndProcEventArgs args)
 {
     if (args.Msg == 515 || args.Msg == 513)
     {
         if (args.Msg == 515)
         {
             insdirec     = Game.CursorPos;
             instypecheck = 1;
         }
         var boohoo = ObjectManager.Get <AIBaseClient>()
                      .OrderBy(obj => obj.Distance(_player.Position))
                      .FirstOrDefault(
             obj =>
             obj.IsAlly && !obj.IsMe && !obj.IsMinion &&
             Game.CursorPos.Distance(obj.Position) <= 150);
         if (args.Msg == 513 && boohoo != null)
         {
             insobj       = boohoo;
             instypecheck = 2;
         }
     }
 }
Exemplo n.º 17
0
 public static void OnWndProc(GameWndProcEventArgs args)
 {
     Automatic.SemiAutomaticR(args);
 }