public override void Init() { try { try { #region Spells // Defining Spells _q = new Spell.Targeted(SpellSlot.Q, 675); _w = new Spell.Active(SpellSlot.W, 375); _e = new Spell.Targeted(SpellSlot.E, 700); _r = new Spell.Active(SpellSlot.R, 550); #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code SPELL)</font>"); } try { #region Menu var combo = MainMenu._combo; string[] s = { "QEWR", "EQWR" }; combo.AddStringList("combo.mode", "Mode: ", s, 1); MainMenu.ComboKeys(true, true, true, true); MainMenu.HarassKeys(true, true, true, true); MainMenu._harass.Add("harass.autow", new CheckBox("Use Auto W")); MainMenu._harass.Add("harass.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.FleeKeys(false, false, true, false); MainMenu._flee.Add("flee.ward", new CheckBox("Use Wardjump")); MainMenu.LaneKeys(true, true, true, false); MainMenu._lane.Add("lane.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.LastHitKeys(true, true, true, false); MainMenu._lasthit.Add("lasthit.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.KsKeys(true, true, true, true); MainMenu._ks.Add("killsteal.ignite", new CheckBox("Use Ignite")); MainMenu._ks.Add("killsteal.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.DamageIndicator(); MainMenu.DrawKeys(true, true, true, true); MainMenu._draw.AddSeparator(); MainMenu._draw.AddGroupLabel("Flash Settings"); MainMenu._draw.Add("draw.flash", new CheckBox("Draw flash")); MainMenu._draw.AddColorItem("color.flash"); MainMenu._draw.AddWidthItem("width.flash"); MainMenu._draw.AddSeparator(); MainMenu._draw.AddGroupLabel("Ignite Settings"); MainMenu._draw.Add("draw.ignite", new CheckBox("Draw ignite")); MainMenu._draw.AddColorItem("color.ignite"); MainMenu._draw.AddWidthItem("width.ignite"); _humanizerMenu = MainMenu._menu.AddSubMenu("Humanizer Menu"); _humanizerMenu.AddGroupLabel("Q Settings"); _humanizerMenu.Add("min.q", new Slider("Min Q Delay", 0, 0, 50)); _humanizerMenu.Add("max.q", new Slider("Max Q Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("W Settings"); _humanizerMenu.Add("min.w", new Slider("Min W Delay", 0, 0, 50)); _humanizerMenu.Add("max.w", new Slider("Max W Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("E Settings"); _humanizerMenu.Add("min.e", new Slider("Min E Delay", 0, 0, 50)); _humanizerMenu.Add("max.e", new Slider("Max E Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("R Settings"); _humanizerMenu.Add("min.r", new Slider("Min R Delay", 4, 0, 50)); _humanizerMenu.Add("max.r", new Slider("Max R Delay", 4, 0, 50)); _humanizerMenu.AddSeparator(10); #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>"); } #region UtilityInit Obj_AI_Base.OnBuffGain += OnBuffGain; Obj_AI_Base.OnBuffLose += OnBuffLose; DamageIndicator.DamageToUnit = GetActualRawComboDamage; Value.Init(); Value.MenuList.Add(_humanizerMenu); Drawing.OnDraw += DrawRanges; #region MenuValueChange _humanizerMenu["min.q"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.q"].Cast<Slider>().CurrentValue > _humanizerMenu["max.q"].Cast<Slider>().CurrentValue) _humanizerMenu["min.q"].Cast<Slider>().CurrentValue = _humanizerMenu["max.q"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.q"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.q"].Cast<Slider>().CurrentValue < _humanizerMenu["min.q"].Cast<Slider>().CurrentValue) _humanizerMenu["max.q"].Cast<Slider>().CurrentValue = _humanizerMenu["min.q"].Cast<Slider>().CurrentValue; }; _humanizerMenu["min.w"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.w"].Cast<Slider>().CurrentValue > _humanizerMenu["max.w"].Cast<Slider>().CurrentValue) _humanizerMenu["min.w"].Cast<Slider>().CurrentValue = _humanizerMenu["max.w"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.w"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.w"].Cast<Slider>().CurrentValue < _humanizerMenu["min.w"].Cast<Slider>().CurrentValue) _humanizerMenu["max.w"].Cast<Slider>().CurrentValue = _humanizerMenu["min.w"].Cast<Slider>().CurrentValue; }; _humanizerMenu["min.e"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.e"].Cast<Slider>().CurrentValue > _humanizerMenu["max.e"].Cast<Slider>().CurrentValue) _humanizerMenu["min.e"].Cast<Slider>().CurrentValue = _humanizerMenu["max.e"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.e"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.e"].Cast<Slider>().CurrentValue < _humanizerMenu["min.e"].Cast<Slider>().CurrentValue) _humanizerMenu["max.e"].Cast<Slider>().CurrentValue = _humanizerMenu["min.e"].Cast<Slider>().CurrentValue; }; _humanizerMenu["min.r"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["min.r"].Cast<Slider>().CurrentValue > _humanizerMenu["max.r"].Cast<Slider>().CurrentValue) _humanizerMenu["min.r"].Cast<Slider>().CurrentValue = _humanizerMenu["max.r"].Cast<Slider>().CurrentValue; }; _humanizerMenu["max.r"].Cast<Slider>().OnValueChange += delegate { if (_humanizerMenu["max.r"].Cast<Slider>().CurrentValue < _humanizerMenu["min.r"].Cast<Slider>().CurrentValue) _humanizerMenu["max.r"].Cast<Slider>().CurrentValue = _humanizerMenu["min.r"].Cast<Slider>().CurrentValue; }; #endregion #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code 503)</font>"); } Game.OnUpdate += delegate { try { #region AutoW if (_isUlting) return; if (MainMenu._harass["harass.autow"].Cast<CheckBox>().CurrentValue) { var e = EntityManager.Heroes.Enemies.Where(ee => !ee.IsDead && ee.IsValid); foreach (var enemy in e) { if (_w.IsInRange(enemy) && _w.IsReady()) { _w.Cast(); } } } #endregion _isChannelingImportantSpell = ext.IsChannelingImportantSpell(Player.Instance); KillSteal(); } catch (Exception e) { Console.WriteLine(e); Chat.Print("<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> san error ocurred. (Code 5)</font>"); } //KillSteal(); }; }
public override void Init() { try { try { #region Spells // Defining Spells _q = new Spell.Targeted(SpellSlot.Q, 675); _w = new Spell.Active(SpellSlot.W, 375); _e = new Spell.Targeted(SpellSlot.E, 700); _r = new Spell.Active(SpellSlot.R, 550); #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print( "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code SPELL)</font>"); } try { #region Menu var combo = MainMenu.Combo; string[] s = { "QEWR", "EQWR" }; combo.AddStringList("combo.mode", "Mode: ", s, 1); MainMenu.ComboKeys(); MainMenu.HarassKeys(); MainMenu.Harass.Add("harass.autow", new CheckBox("Use Auto W")); MainMenu.Harass.Add("harass.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.FleeKeys(false, useW: false, useR: false); MainMenu.Flee.Add("flee.ward", new CheckBox("Use Wardjump")); MainMenu.LaneKeys(useR: false); MainMenu.Lane.Add("lane.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.LastHitKeys(useR: false); MainMenu.Lasthit.Add("lasthit.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.KsKeys(); MainMenu.Ks.Add("killsteal.ignite", new CheckBox("Use Ignite")); MainMenu.Ks.Add("killsteal.donteunderturret", new CheckBox("Dont E Under Turret")); MainMenu.DamageIndicator(); MainMenu.DrawKeys(); MainMenu.Draw.AddSeparator(); MainMenu.Draw.AddGroupLabel("Flash Settings"); MainMenu.Draw.Add("draw.flash", new CheckBox("Draw flash")); MainMenu.Draw.AddColorItem("color.flash"); MainMenu.Draw.AddWidthItem("width.flash"); MainMenu.Draw.AddSeparator(); MainMenu.Draw.AddGroupLabel("Ignite Settings"); MainMenu.Draw.Add("draw.ignite", new CheckBox("Draw ignite")); MainMenu.Draw.AddColorItem("color.ignite"); MainMenu.Draw.AddWidthItem("width.ignite"); _humanizerMenu = MainMenu.Menu.AddSubMenu("Humanizer Menu"); _humanizerMenu.AddGroupLabel("Q Settings"); _humanizerMenu.Add("min.q", new Slider("Min Q Delay", 0, 0, 50)); _humanizerMenu.Add("max.q", new Slider("Max Q Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("W Settings"); _humanizerMenu.Add("min.w", new Slider("Min W Delay", 0, 0, 50)); _humanizerMenu.Add("max.w", new Slider("Max W Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("E Settings"); _humanizerMenu.Add("min.e", new Slider("Min E Delay", 0, 0, 50)); _humanizerMenu.Add("max.e", new Slider("Max E Delay", 0, 0, 50)); _humanizerMenu.AddSeparator(10); _humanizerMenu.AddGroupLabel("R Settings"); _humanizerMenu.Add("min.r", new Slider("Min R Delay", 4, 0, 50)); _humanizerMenu.Add("max.r", new Slider("Max R Delay", 4, 0, 50)); _humanizerMenu.AddSeparator(10); #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print( "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code MENU)</font>"); } #region UtilityInit Obj_AI_Base.OnBuffGain += OnBuffGain; Obj_AI_Base.OnBuffLose += OnBuffLose; DamageIndicator.DamageToUnit = GetActualRawComboDamage; Value.Init(); Value.MenuList.Add(_humanizerMenu); Drawing.OnDraw += DrawRanges; #region MenuValueChange _humanizerMenu["min.q"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["min.q"].Cast <Slider>().CurrentValue > _humanizerMenu["max.q"].Cast <Slider>().CurrentValue) { _humanizerMenu["min.q"].Cast <Slider>().CurrentValue = _humanizerMenu["max.q"].Cast <Slider>().CurrentValue; } }; _humanizerMenu["max.q"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["max.q"].Cast <Slider>().CurrentValue < _humanizerMenu["min.q"].Cast <Slider>().CurrentValue) { _humanizerMenu["max.q"].Cast <Slider>().CurrentValue = _humanizerMenu["min.q"].Cast <Slider>().CurrentValue; } }; _humanizerMenu["min.w"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["min.w"].Cast <Slider>().CurrentValue > _humanizerMenu["max.w"].Cast <Slider>().CurrentValue) { _humanizerMenu["min.w"].Cast <Slider>().CurrentValue = _humanizerMenu["max.w"].Cast <Slider>().CurrentValue; } }; _humanizerMenu["max.w"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["max.w"].Cast <Slider>().CurrentValue < _humanizerMenu["min.w"].Cast <Slider>().CurrentValue) { _humanizerMenu["max.w"].Cast <Slider>().CurrentValue = _humanizerMenu["min.w"].Cast <Slider>().CurrentValue; } }; _humanizerMenu["min.e"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["min.e"].Cast <Slider>().CurrentValue > _humanizerMenu["max.e"].Cast <Slider>().CurrentValue) { _humanizerMenu["min.e"].Cast <Slider>().CurrentValue = _humanizerMenu["max.e"].Cast <Slider>().CurrentValue; } }; _humanizerMenu["max.e"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["max.e"].Cast <Slider>().CurrentValue < _humanizerMenu["min.e"].Cast <Slider>().CurrentValue) { _humanizerMenu["max.e"].Cast <Slider>().CurrentValue = _humanizerMenu["min.e"].Cast <Slider>().CurrentValue; } }; _humanizerMenu["min.r"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["min.r"].Cast <Slider>().CurrentValue > _humanizerMenu["max.r"].Cast <Slider>().CurrentValue) { _humanizerMenu["min.r"].Cast <Slider>().CurrentValue = _humanizerMenu["max.r"].Cast <Slider>().CurrentValue; } }; _humanizerMenu["max.r"].Cast <Slider>().OnValueChange += delegate { if (_humanizerMenu["max.r"].Cast <Slider>().CurrentValue < _humanizerMenu["min.r"].Cast <Slider>().CurrentValue) { _humanizerMenu["max.r"].Cast <Slider>().CurrentValue = _humanizerMenu["min.r"].Cast <Slider>().CurrentValue; } }; #endregion #endregion } catch (Exception e) { Console.WriteLine(e); Chat.Print( "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> an error ocurred. (Code 503)</font>"); } Game.OnUpdate += delegate { try { #region AutoW if (_isUlting) { return; } if (MainMenu.Harass["harass.autow"].Cast <CheckBox>().CurrentValue) { var e = EntityManager.Heroes.Enemies.Where(ee => !ee.IsDead && ee.IsValid); foreach (var enemy in e) { if (_w.IsInRange(enemy) && _w.IsReady()) { _w.Cast(); } } } #endregion _isChannelingImportantSpell = ext.IsChannelingImportantSpell(Player.Instance); KillSteal(); } catch (Exception e) { Console.WriteLine(e); Chat.Print( "<font color='#23ADDB'>Marksman AIO:</font><font color='#E81A0C'> san error ocurred. (Code 5)</font>"); } //KillSteal(); }; }