Exemplo n.º 1
0
 private static void SetezEvade(ezEvadeSettings sets)
 {
     ezEvadeMenu.Item("EvadeMode").SetValue(
         new StringList(new[] { "Smooth", "Fastest", "Very Smooth" }, sets.EvadeMode));
     ezEvadeMenu.Item("DodgeDangerous").SetValue(sets.DodgeDangerous);
     ezEvadeMenu.Item("DodgeCircularSpells").SetValue(sets.DodgeCircularSpells);
     ezEvadeMenu.Item("DodgeFOWSpells").SetValue(sets.DodgeFOWSpells);
     ezEvadeMenu.Item("CheckSpellCollision").SetValue(sets.CheckSpellCollision);
     ezEvadeMenu.Item("ContinueMovement").SetValue(sets.ContinueMovement);
     ezEvadeMenu.Item("ClickOnlyOnce").SetValue(sets.ClickOnlyOnce);
     ezEvadeMenu.Item("TickLimiter").SetValue(new Slider(sets.TickLimiter, 0, 500));
     ezEvadeMenu.Item("ReactionTime").SetValue(new Slider(sets.ReactionTime, 0, 500));
     ezEvadeMenu.Item("SpellDetectionTime").SetValue(new Slider(sets.SpellDetectionTime, 0, 1000));
     //ezEvadeMenu.Item("FastMovementBlock").SetValue(sets.FastMovementBlock);
 }
Exemplo n.º 2
0
        private static void Game_OnGameUpdate(EventArgs args)
        {
            //foreach (var menu in Menu.RootMenus)
            //{
            //    Console.WriteLine(menu.Key);
            //}

            if (ezEvadeMenu != null)
            {
                if (Utils.TickCount - TickLimit > 200)
                {
                    TickLimit = Utils.TickCount;

                    var newMode = 0;

                    if (Player.HealthPercent < Config.Item("LowHp").GetValue <Slider>().Value)
                    {
                        newMode = 2;
                    }
                    else if (Player.HealthPercent > Config.Item("HighHp").GetValue <Slider>().Value)
                    {
                        newMode = 0;
                    }
                    else
                    {
                        newMode = 1;
                    }

                    if (newMode != Mode)
                    {
                        switch (newMode)
                        {
                        case 0:
                            set = new ezEvadeSettings(
                                Config.Item("LowEvadeMode").GetValue <Slider>().Value,
                                Config.Item("LowDodgeDangerous").GetValue <bool>(),
                                Config.Item("LowDodgeCircularSpells").GetValue <bool>(),
                                Config.Item("LowDodgeFOWSpells").GetValue <bool>(),
                                Config.Item("LowCheckSpellCollision").GetValue <bool>(),
                                false,
                                Config.Item("LowClickOnlyOnce").GetValue <bool>(),
                                Config.Item("LowTickLimiter").GetValue <Slider>().Value,
                                Config.Item("LowReactionTime").GetValue <Slider>().Value,
                                Config.Item("LowSpellDetectionTime").GetValue <Slider>().Value,
                                Config.Item("LowFastMovementBlock").GetValue <bool>());

                            SetezEvade(set);
                            Mode = newMode;
                            return;

                        case 1:
                            set = new ezEvadeSettings(
                                Config.Item("MediumEvadeMode").GetValue <Slider>().Value,
                                Config.Item("MediumDodgeDangerous").GetValue <bool>(),
                                Config.Item("MediumDodgeCircularSpells").GetValue <bool>(),
                                Config.Item("MediumDodgeFOWSpells").GetValue <bool>(),
                                Config.Item("MediumCheckSpellCollision").GetValue <bool>(),
                                false,
                                Config.Item("MediumClickOnlyOnce").GetValue <bool>(),
                                Config.Item("MediumTickLimiter").GetValue <Slider>().Value,
                                Config.Item("MediumReactionTime").GetValue <Slider>().Value,
                                Config.Item("MediumSpellDetectionTime").GetValue <Slider>().Value,
                                Config.Item("MediumFastMovementBlock").GetValue <bool>());

                            SetezEvade(set);
                            Mode = newMode;
                            return;

                        case 2:
                            set = new ezEvadeSettings(
                                Config.Item("HighEvadeMode").GetValue <Slider>().Value,
                                Config.Item("HighDodgeDangerous").GetValue <bool>(),
                                Config.Item("HighDodgeCircularSpells").GetValue <bool>(),
                                Config.Item("HighDodgeFOWSpells").GetValue <bool>(),
                                Config.Item("HighCheckSpellCollision").GetValue <bool>(),
                                false,
                                Config.Item("HighClickOnlyOnce").GetValue <bool>(),
                                Config.Item("HighTickLimiter").GetValue <Slider>().Value,
                                Config.Item("HighReactionTime").GetValue <Slider>().Value,
                                Config.Item("HighSpellDetectionTime").GetValue <Slider>().Value,
                                Config.Item("HighFastMovementBlock").GetValue <bool>());

                            SetezEvade(set);
                            Mode = newMode;
                            break;
                        }
                    }
                }
            }
            else
            {
                Console.WriteLine("i Cant Found ezEvade");
            }
        }