コード例 #1
0
        /// <summary>
        /// Handles the DomainUnload event of the CurrentDomain control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private static void CurrentDomain_DomainUnload(object sender, EventArgs e)
        {
            /**Remove the sprites*/
            try
            {
                foreach (var w in TrackerWrappers)
                {
                    w.Hud.Remove();

                    w.Summoner1.Remove();
                    w.Summoner2.Remove();

                    w.SummonerSpell1Rectangle.Remove();
                    w.SummonerSpell2Rectangle.Remove();
                    w.SummonerSpell1Text.Remove();
                    w.SummonerSpell2Text.Remove();

                    w.Spell1Rectangle.Remove();
                    w.Spell1Text.Remove();

                    w.Spell2Rectangle.Remove();
                    w.Spell2Text.Remove();

                    w.Spell3Rectangle.Remove();
                    w.Spell3Text.Remove();

                    w.Spell4Rectangle.Remove();
                    w.Spell4Text.Remove();
                }
            }
            catch (Exception ex)
            {
                LogHelper.AddToLog(new LogItem("Tracker_Drawings", ex, LogSeverity.Severe));
            }
        }
コード例 #2
0
        /// <summary>
        /// Creates the menu.
        /// </summary>
        public override void CreateMenu()
        {
            try
            {
                var RootMenu   = Variables.Menu;
                var moduleMenu = new Menu("Gank Alerter", "dz191.dza.gank");
                {
                    moduleMenu.AddBool("dz191.dza.gank", "Gank Alerter", true);
                    moduleMenu.AddSlider("dz191.dza.gank.textsize", "Text Size", 26, 17, 52).SetTooltip("The text size of the Gank alert text (Requires F5 after change)");
                    moduleMenu.AddSlider("dz191.dza.gank.mindist", "Min. Distance", 1100, 300, 1800).SetTooltip("The Minimum detection distance");
                    moduleMenu.AddSlider("dz191.dza.gank.maxdist", "Max. Distance", 3500, 500, 6000).SetTooltip("The Maximum detection distance");

                    var ignoreMenu = new Menu("Ignore Champions", "dz191.dza.gank.ignore");
                    {
                        foreach (var hero in HeroManager.Enemies)
                        {
                            ignoreMenu.AddItem(
                                new MenuItem(
                                    $"dz191.dza.gank.ignore.{hero.ChampionName.ToLower()}",
                                    hero.ChampionName)).SetValue(false);
                        }
                        moduleMenu.AddSubMenu(ignoreMenu);
                    }
                    RootMenu.AddSubMenu(moduleMenu);
                }
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("GankAlerter_Base", e));
            }
        }
コード例 #3
0
        /// <summary>
        /// Called when the sender is done doing the windup time for a spell/AA
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The <see cref="GameObjectProcessSpellCastEventArgs"/> instance containing the event data.</param>
        private void OnDoCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            try
            {
                if (sender.IsMe && args.Slot == SpellSlot.R)
                {
                    var QPosition = Provider.GetSOLOVayneQPosition();
                    if (QPosition != Vector3.Zero)
                    {
                        Variables.spells[SpellSlot.Q].Cast(QPosition);
                        return;
                    }

                    var secondaryQPosition = ObjectManager.Player.ServerPosition.Extend(Game.CursorPos, 300f);

                    if (!secondaryQPosition.UnderTurret(true))
                    {
                        Variables.spells[SpellSlot.Q].Cast(secondaryQPosition);
                    }
                }
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("AutoQifR", e, LogSeverity.Error));
            }
        }
コード例 #4
0
ファイル: HudDisplay.cs プロジェクト: xXxkataxXx/LeagueSharp
        /// <summary>
        /// Initializes the sprites.
        /// </summary>
        /// <param name="bypass">if set to <c>true</c> it will bypass the Menu enabled check.</param>
        public static void InitSprites(bool bypass = false)
        {
            try
            {
                if (!MenuExtensions.GetItemValue <bool>("dz191.dza.hud.show") && !bypass)
                {
                    return;
                }

                HudVariables.HudSprite = new Render.Sprite(Resources.TFHelperBG, HudVariables.CurrentPosition)
                {
                    PositionUpdate   = () => HudVariables.CurrentPosition,
                    VisibleCondition = delegate { return(HudVariables.ShouldBeVisible); },
                };
                HudVariables.HudSprite.Crop(0, 0, (int)HudVariables.SpriteWidth, HudVariables.CroppedHeight);

                HudVariables.ExpandShrinkButton = new Render.Sprite(Resources.Expand, HudVariables.CurrentPosition)
                {
                    PositionUpdate   = () => new Vector2(HudVariables.CurrentPosition.X + HudVariables.SpriteWidth - 20, HudVariables.CurrentPosition.Y + HudVariables.CroppedHeight - 20),
                    Scale            = new Vector2(0.7f, 0.7f),
                    VisibleCondition = delegate { return(HudVariables.ShouldBeVisible); }
                };

                HudVariables.ExpandShrinkButton.Add(1);
                HudVariables.HudSprite.Add(0);
            }
            catch (Exception ex)
            {
                LogHelper.AddToLog(new LogItem("Hud_Init", ex, LogSeverity.Error));
            }
        }
コード例 #5
0
        /// <summary>
        /// Called when an unit has executed the windup time for a skill.
        /// </summary>
        /// <param name="sender">The unit.</param>
        /// <param name="args">The <see cref="GameObjectProcessSpellCastEventArgs"/> instance containing the event data.</param>
        private void OnSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            try
            {
                if (sender.IsMe &&
                    Orbwalking.IsAutoAttack(args.SData.Name) &&
                    (args.Target is Obj_AI_Base))
                {
                    foreach (var skill in Variables.skills)
                    {
                        if (skill.GetSkillMode() == SkillMode.OnAfterAA)
                        {
                            if ((Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo ||
                                 Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Mixed))
                            {
                                skill.Execute(args.Target as Obj_AI_Base);
                            }

                            if (Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
                            {
                                skill.ExecuteFarm(args.Target as Obj_AI_Base);
                            }
                        }
                    }
                }
            }catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("OnSpellCast", e, LogSeverity.Error));
            }
        }
コード例 #6
0
        /// <summary>
        /// Gets the ganking hero.
        /// </summary>
        /// <returns>An istance of the enemy who is ganking me</returns>
        public static Obj_AI_Hero GetGankingHero()
        {
            try
            {
                foreach (
                    var hero in
                    HeroManager.Enemies.Where(
                        h =>
                        !MenuExtensions.GetItemValue <bool>($"dz191.dza.gank.ignore.{h.ChampionName.ToLower()}") &&
                        h.IsValidTarget()))
                {
                    var heroDistance = hero.ServerPosition.Distance(ObjectManager.Player.ServerPosition);
                    if (heroDistance >= GankAlerterVariables.MinDist && heroDistance <= GankAlerterVariables.MaxDist)
                    {
                        var heroTracker =
                            SSTrackerModule.Trackers.Values.FirstOrDefault(
                                h => h.Hero.ChampionName.ToLower().Equals(hero.ChampionName.ToLower()));
                        if (heroTracker != null)
                        {
                            return(hero);
                        }
                    }
                }
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("Gank_Alert", e, LogSeverity.Medium));
            }

            return(null);
        }
コード例 #7
0
ファイル: TFHelperDrawings.cs プロジェクト: riwalry1/AIO
        /// <summary>
        /// Raises the <see cref="E:Update" /> event.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs"/> instance containing the event data.</param>
        private static void OnUpdate(EventArgs args)
        {
            try
            {
                if ((Environment.TickCount - LastTick < 2000) || !(HudVariables.ShouldBeVisible && HudVariables.CurrentStatus == SpriteStatus.Expanded) || !getCheckBoxItem(TFHelperBase.moduleMenu, "dz191.dza.tf.enabled"))
                {
                    return;
                }

                LastTick = Environment.TickCount;
                var currentState = TFHelperCalculator.GetText();

                if (currentState != PrevState)
                {
                    PrevState = currentState;
                    var allyStrength  = TFHelperCalculator.GetAllyStrength();
                    var enemyStrength = TFHelperCalculator.GetEnemyStrength();

                    TFHelperVariables.AllyBarSprite.Crop(
                        0, 0, (int)(Resources.AllyTeamStrength.Width * allyStrength),
                        (int)TFHelperVariables.AllyBarSprite.Height);

                    TFHelperVariables.EnemyBarSprite.Crop(
                        0, 0, (int)(Resources.EnemyTeamStength.Width * enemyStrength),
                        (int)TFHelperVariables.EnemyBarSprite.Height);
                }
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("TFHelper_Drawings", e, LogSeverity.Severe));
            }
        }
コード例 #8
0
 /// <summary>
 /// Initializes the events.
 /// </summary>
 public override void InitEvents()
 {
     try
     {
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Lane_Base", e));
     }
 }
コード例 #9
0
 /// <summary>
 /// Initializes the events.
 /// </summary>
 public override void InitEvents()
 {
     try
     {
         Drawing.OnDraw += Drawing_OnDraw;
     }catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Ranges_Base", e));
     }
 }
コード例 #10
0
 /// <summary>
 /// Initializes the events.
 /// </summary>
 public override void InitEvents()
 {
     try
     {
         Game.OnPing += OnPing;
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Ping_Base", e));
     }
 }
コード例 #11
0
 internal static void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
 {
     try
     {
         if (sender.IsMe && args.SData.Name.Equals("KalistaExpungeWrapper"))
         {
             LeagueSharp.Common.Utility.DelayAction.Add(0x7D, Orbwalking.ResetAutoAttackTimer);
         }
     }
     catch
     {
         LogHelper.AddToLog(new LogItem("Kalista_ProcessSpellCast", "Error: Failed to reset AA", LogSeverity.Error));
     }
 }
コード例 #12
0
 /// <summary>
 /// Initializes the events.
 /// </summary>
 public override void InitEvents()
 {
     try
     {
         GankAlerterVariables.GankAlertText = new Render.Text("", 0, 0, GankAlerterVariables.TextSize, SharpDX.Color.Chartreuse)
         {
             Visible = false
         };
         GankAlerterCalculator.OnLoad();
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("GankAlerter_Base", e));
     }
 }
コード例 #13
0
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu = Variables.Menu;
         moduleMenu = RootMenu.AddSubMenu("Ping Tracker", "dz191.dza.ping");
         {
             moduleMenu.AddBool("dz191.dza.ping.show", "Show name near pings");
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Ping_Base", e));
     }
 }
コード例 #14
0
 public override void CreateMenu()
 {
     try
     {
         var RootMenu   = Variables.Menu;
         var moduleMenu = new Menu("TF Helper", "dz191.dza.tf");
         {
             RootMenu.AddSubMenu(moduleMenu);
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("TFHelper_Base", e));
     }
 }
コード例 #15
0
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu   = Variables.Menu;
         var moduleMenu = new Menu("Recall Tracker", "dz191.dza.recall");
         {
             moduleMenu.AddBool("dz191.dza.recall.show", "Show recall tracker");
             RootMenu.AddSubMenu(moduleMenu);
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Recall_Base", e));
     }
 }
コード例 #16
0
ファイル: TFHelperBase.cs プロジェクト: riwalry1/AIO
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu = Variables.Menu;
         moduleMenu = RootMenu.AddSubMenu("TF Helper", "dz191.dza.tf");
         {
             moduleMenu.AddBool("dz191.dza.tf.enabled", "TF Helper");
             moduleMenu.AddSlider("dz191.dza.tf.range", "TF Range", 1200, 500, 1800);
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("TFHelper_Base", e));
     }
 }
コード例 #17
0
        internal static void Generate()
        {
            var rootMenu = Variables.Menu;

            try
            {
                Variables.Orbwalker = new Orbwalking.Orbwalker(rootMenu);
                TargetSelector.AddToMenu(rootMenu);

                //TODO Rest of the Menu
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("MenuGenerator", "Error Generating Menu"));
            }
        }
コード例 #18
0
        /// <summary>
        /// Initializes the events.
        /// </summary>
        public override void InitEvents()
        {
            try
            {
                Text = new Font(Drawing.Direct3DDevice, new FontDescription {
                    FaceName = "Calibri", Height = 13, Width = 6, OutputPrecision = FontPrecision.Default, Quality = FontQuality.Default
                });
                EnemyInfo = HeroManager.Enemies.Select(x => new EnemyInfo(x)).ToList();

                Drawing.OnDraw += OnDraw;
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("Recall_Base", e));
            }
        }
コード例 #19
0
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu   = Variables.Menu;
         var moduleMenu = new Menu("Lane Status", "dz191.dza.lane");
         {
             moduleMenu.AddBool("dz191.dza.lane.show", "Track lane status", true);
             RootMenu.AddSubMenu(moduleMenu);
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Lane_Base", e));
     }
 }
コード例 #20
0
ファイル: RangesBase.cs プロジェクト: riwalry1/AIO
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu = Variables.Menu;
         moduleMenu = RootMenu.AddSubMenu("AA Range Tracking", "dz191.dza.ranges");
         {
             moduleMenu.AddBool("dz191.dza.ranges.ally", "Ally Ranges");
             moduleMenu.AddBool("dz191.dza.ranges.enemy", "Enemy Ranges");
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Ranges_Base", e));
     }
 }
コード例 #21
0
 public static bool IsEnabledAndReady(this Spell spell, ModesMenuExtensions.Mode mode)
 {
     if (ObjectManager.Player.IsDead)
     {
         return(false);
     }
     try
     {
         var enabledCondition = Variables.AssemblyMenu.Item("dzaio.champion." + ObjectManager.Player.ChampionName.ToLowerInvariant() + ".use" + DZLib.Menu.ModesMenuExtensions.GetStringFromSpellSlot(spell.Slot).ToLowerInvariant() + GetStringFromMode(mode)).GetValue <bool>();
         return(spell.IsReady() && enabledCondition);
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("IsEnabledAndReady", e.ToString(), LogSeverity.Severe));
     }
     return(false);
 }
コード例 #22
0
ファイル: Lee.cs プロジェクト: qJoke/LeagueSharp
 private static void OnUpdate(EventArgs args)
 {
     try
     {
         foreach (var mode in Variables.modes)
         {
             if (mode.GetRunCondition())
             {
                 mode.Run();
             }
         }
     }
     catch
     {
         LogHelper.AddToLog(new LogItem("OnTick", "Error during the OnTick"));
     }
 }
コード例 #23
0
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu   = Variables.Menu;
         var moduleMenu = new Menu("SS Tracker", "dz191.dza.sstracker");
         {
             moduleMenu.AddBool("dz191.dza.sstracker.hud", "Track in Hud", true);
             //moduleMenu.AddBool("dz191.dza.sstracker.minimap", "Track in minimap", true);
             moduleMenu.AddSlider("dz191.dza.sstracker.mintime", "Minimum SS time", new Tuple <int, int, int>(5, 1, 10));
             RootMenu.AddSubMenu(moduleMenu);
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("SSTracker_Base", e));
     }
 }
コード例 #24
0
 /// <summary>
 /// Executes logic given the specified target.
 /// </summary>
 /// <param name="target">The target.</param>
 public void Execute(Obj_AI_Base target)
 {
     try
     {
         if (Variables.spells[SpellSlot.E].IsEnabledAndReady())
         {
             var CondemnTarget = Provider.GetTarget();
             if (target != null)
             {
                 Variables.spells[SpellSlot.E].Cast(CondemnTarget);
             }
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("Condemn", e, LogSeverity.Error));
     }
 }
コード例 #25
0
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu   = Variables.Menu;
         var moduleMenu = new Menu("Wards Tracker", "dz191.dza.ward");
         {
             moduleMenu.AddBool("dz191.dza.ward.track", "Track wards").SetTooltip("Tracks Wards, Pinks, Shrooms etc.");
             moduleMenu.AddKeybind("dz191.dza.ward.extrainfo", "Show Extra informations", new Tuple <uint, KeyBindType>('Z', KeyBindType.Press)).SetTooltip("Click the button and hover a ward polygon for more info.");
             moduleMenu.AddSlider("dz191.dza.ward.sides", "Sides of Polygon (Higher = Laggier)", new Tuple <int, int, int>(4, 3, 12)).SetTooltip("The sides of the polygon the wards have drawn around.");
             RootMenu.AddSubMenu(moduleMenu);
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("WardTracker_Base", e));
     }
 }
コード例 #26
0
ファイル: WardTrackerBase.cs プロジェクト: riwalry1/AIO
 /// <summary>
 /// Creates the menu.
 /// </summary>
 public override void CreateMenu()
 {
     try
     {
         var RootMenu = Variables.Menu;
         moduleMenu = RootMenu.AddSubMenu("Wards Tracker", "dz191.dza.ward");
         {
             moduleMenu.AddBool("dz191.dza.ward.track", "Track wards");
             moduleMenu.AddKeybind("dz191.dza.ward.extrainfo", "Show Extra informations", new Tuple <uint, KeyBind.BindTypes>('Z', KeyBind.BindTypes.HoldActive));
             moduleMenu.AddStringList("dz191.dza.ward.type", "Drawing Type", new [] { "Circle", "Polygon" }, 1);
             moduleMenu.AddSlider("dz191.dza.ward.sides", "Sides of Polygon (Higher = Laggier)", new Tuple <int, int, int>(4, 3, 12));
         }
     }
     catch (Exception e)
     {
         LogHelper.AddToLog(new LogItem("WardTracker_Base", e));
     }
 }
コード例 #27
0
        /// <summary>
        /// Init point of the class.
        /// </summary>
        public static void OnLoad()
        {
            try
            {
                foreach (var enemy in HeroManager.Enemies)
                {
                    Trackers.Add(enemy.ChampionName, new HeroTracker()
                    {
                        Hero = enemy, LastSeen = -1
                    });
                }

                Game.OnUpdate += OnUpdate;
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("SSTracker", e, LogSeverity.Severe));
            }
        }
コード例 #28
0
        /// <summary>
        /// Called when the Gank Alerter calculator is loaded.
        /// </summary>
        public static void OnLoad()
        {
            try
            {
                GankAlerterVariables.GankAlertText.Centered         = true;
                GankAlerterVariables.GankAlertText.VisibleCondition = delegate
                { return(MenuExtensions.GetItemValue <bool>("dz191.dza.gank") && GetGankingHero() != null); };
                GankAlerterVariables.GankAlertText.X          = (int)(Drawing.Direct3DDevice.Viewport.Width / 2f);
                GankAlerterVariables.GankAlertText.Y          = (int)(9);
                GankAlerterVariables.GankAlertText.TextUpdate = () => GetGankingHero() != null
                    ? string.Format(GetGankingHero().ChampionName + " is ganking!")
                    : string.Empty;

                GankAlerterVariables.GankAlertText.Add(0);
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("Gank_Alerter", e, LogSeverity.Error));
            }
        }
コード例 #29
0
ファイル: HudDisplay.cs プロジェクト: Burbb/Portaio
        /// <summary>
        /// Initializes the sprites.
        /// </summary>
        /// <param name="bypass">if set to <c>true</c> it will bypass the Menu enabled check.</param>
        public static void InitSprites(bool bypass = false)
        {
            try
            {
                if (!getCheckBoxItem(moduleMenu, "dz191.dza.hud.show") && !bypass)
                {
                    return;
                }

                HudVariables.HudSprite = new Render.Sprite(Resources.TFHelperBG, HudVariables.CurrentPosition)
                {
                    PositionUpdate   = () => HudVariables.CurrentPosition,
                    VisibleCondition = delegate { return(HudVariables.ShouldBeVisible); },
                };

                HudVariables.HudSprite.Crop(0, 0, (int)HudVariables.SpriteWidth, HudVariables.CroppedHeight);

                HudVariables.ExpandShrinkButton = new Render.Sprite(Resources.Expand, HudVariables.CurrentPosition)
                {
                    PositionUpdate   = () => new Vector2(HudVariables.CurrentPosition.X + HudVariables.SpriteWidth - 15, HudVariables.CurrentPosition.Y + 3),
                    Scale            = new Vector2(0.7f, 0.7f),
                    VisibleCondition = delegate { return(HudVariables.ShouldBeVisible); }
                };

                HudVariables.HudText = new Render.Text("DZAwareness - HUD", 0, 0, 17, SharpDX.Color.White)
                {
                    Centered         = true,
                    PositionUpdate   = () => new Vector2(HudVariables.CurrentPosition.X + HudVariables.SpriteWidth / 2f, HudVariables.CurrentPosition.Y + 10),
                    VisibleCondition = delegate { return(HudVariables.ShouldBeVisible); }
                };

                HudVariables.HudText.Add(1);
                HudVariables.ExpandShrinkButton.Add(1);
                HudVariables.HudSprite.Add(0);
            }
            catch (Exception ex)
            {
                LogHelper.AddToLog(new LogItem("Hud_Init", ex, LogSeverity.Error));
            }
        }
コード例 #30
0
ファイル: RangesBase.cs プロジェクト: riwalry1/AIO
        /// <summary>
        /// The OnDraw event delegate.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs"/> instance containing the event data.</param>
        void Drawing_OnDraw(EventArgs args)
        {
            try
            {
                if (ShouldRun())
                {
                    if (moduleMenu["dz191.dza.ranges.enemy"].Cast <CheckBox>().CurrentValue)
                    {
                        DrawEnemyZone();
                    }

                    if (moduleMenu["dz191.dza.ranges.ally"].Cast <CheckBox>().CurrentValue)
                    {
                        DrawAllyZone();
                    }
                }
            }
            catch (Exception e)
            {
                LogHelper.AddToLog(new LogItem("Ranges_Base", e));
            }
        }