private static void OnUpdate(EventArgs args) { if (!ObjectManager.Player.IsActive(Spells.R)) { if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { Combo.Execute(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear)) { Clear.Execute(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear)) { Jungle.Execute(); } if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass)) { Harass.Execute(); } } if (ObjectManager.Player.IsActive(Spells.R)) { Orbwalker.DisableAttacking = true; Orbwalker.DisableMovement = true; } else if (!ObjectManager.Player.IsActive(Spells.R)) { Orbwalker.DisableAttacking = false; Orbwalker.DisableMovement = false; } if (getKeyBindItem(Config.SemiManualUlt, "semi.manual.ult") && !ObjectManager.Player.IsActive(Spells.R)) { Orbwalker.OrbwalkTo(Game.CursorPos); } if (Spells.R.IsReady() && getKeyBindItem(Config.SemiManualUlt, "semi.manual.ult")) { Ultimate.Execute(); } if (getCheckBoxItem(Config.itemMenu, "use.qss") && (Items.HasItem((int)ItemId.Quicksilver_Sash) && Items.CanUseItem((int)ItemId.Quicksilver_Sash) || Items.CanUseItem(3139) && Items.HasItem(3137))) { Qss.ExecuteQss(); } if (getCheckBoxItem(Config.miscMenu, "auto.orb.buy") && ObjectManager.Player.Level >= getSliderItem(Config.miscMenu, "orb.level") && !Items.HasItem((int)ItemId.Farsight_Alteration)) { Shop.BuyItem(ItemId.Farsight_Alteration); } }
private void Game_OnGameUpdate(EventArgs args) { bool minionBlock = false; foreach (Obj_AI_Minion minion in MinionManager.GetMinions(player.Position, player.AttackRange + 55, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.None)) { if (HealthPrediction.GetHealthPrediction(minion, 3000) <= Damage.GetAutoAttackDamage(player, minion, false)) { minionBlock = true; } } if (System.Environment.TickCount - lastE > 4100) { lastE = 0; } if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown) { var target = Jungle.GetNearest(player.Position); bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready; if (target != null) { Jungle.setSmiteSlot(); if (Jungle.smite.CanCast(target) && smiteReady && player.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health) { Jungle.CastSmite(target); } } } switch (orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: Combo(); break; case Orbwalking.OrbwalkingMode.Mixed: if (!minionBlock) { Harass(); } break; case Orbwalking.OrbwalkingMode.LaneClear: Clear(); break; case Orbwalking.OrbwalkingMode.LastHit: break; default: if (!minionBlock) { } break; } }
private static void Game_OnGameUpdate(EventArgs args) { Ulti(); if (config.Item("useeflash", true).GetValue <KeyBind>().Active&& player.Spellbook.CanUseSpell(player.GetSpellSlot("SummonerFlash")) == SpellState.Ready) { FlashCombo(); } switch (orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: Combo(); break; case Orbwalking.OrbwalkingMode.Mixed: Harass(); break; case Orbwalking.OrbwalkingMode.LaneClear: Clear(); break; case Orbwalking.OrbwalkingMode.LastHit: break; default: break; } Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active); var bladeObj = ObjectManager.Get <Obj_AI_Base>() .Where( o => (o.Name == "ShenSpiritUnit" || o.Name == "ShenArrowVfxHostMinion") && o.Team == player.Team) .OrderBy(o => o.Distance(bladeOnCast)) .FirstOrDefault(); if (bladeObj != null) { blade = bladeObj.Position; } if (W.IsReady() && blade.IsValid()) { foreach (var ally in HeroManager.Allies.Where(a => a.Distance(blade) < bladeRadius)) { var data = Program.IncDamages.GetAllyData(ally.NetworkId); if (config.Item("autowAgg", true).GetValue <Slider>().Value <= data.AADamageCount) { W.Cast(); } if (data.AADamageTaken >= ally.Health * 0.2f && config.Item("autow", true).GetValue <bool>()) { W.Cast(); } } } }
private void Game_OnDraw(EventArgs args) { DrawHelper.DrawCircle(config.Item("drawaa", true).GetValue <Circle>(), player.AttackRange); DrawHelper.DrawCircle(config.Item("drawww", true).GetValue <Circle>(), W.Range); DrawHelper.DrawCircle(config.Item("drawee", true).GetValue <Circle>(), E.Range); DrawHelper.DrawCircle(config.Item("drawrr", true).GetValue <Circle>(), R.Range); Jungle.ShowSmiteStatus( config.Item("useSmite").GetValue <KeyBind>().Active, config.Item("smiteStatus").GetValue <bool>()); Utility.HpBarDamageIndicator.Enabled = config.Item("drawcombo").GetValue <bool>(); }
public Volibear() { InitVolibear(); InitMenu(); //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Volibear</font>"); Drawing.OnDraw += Game_OnDraw; Game.OnUpdate += Game_OnGameUpdate; Jungle.setSmiteSlot(); HpBarDamageIndicator.DamageToUnit = ComboDamage; }
public Garen() { InitGaren(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Garen</font>"); Game.OnUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += AfterAttack; Drawing.OnDraw += Game_OnDraw; Jungle.setSmiteSlot(); }
public Hecarim() { InitHecarim(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Hecarim</font>"); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Jungle.setSmiteSlot(); Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; }
public Evelynn() { InitEvelynn(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Evelynn</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; Jungle.setSmiteSlot(); Orbwalking.OnAttack += Orbwalking_AfterAttack; }
public Poppy() { Initpoppy(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Poppy</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; Jungle.setSmiteSlot(); }
private static void Game_OnGameUpdate(EventArgs args) { bool minionBlock = false; foreach (Obj_AI_Minion minion in MinionManager.GetMinions(me.Position, me.AttackRange, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.None)) { if (HealthPrediction.GetHealthPrediction(minion, 3000) <= Damage.GetAutoAttackDamage(me, minion, false)) { minionBlock = true; } } switch (orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: Combo(); break; case Orbwalking.OrbwalkingMode.Mixed: //if (!minionBlock) Harass(); break; case Orbwalking.OrbwalkingMode.LaneClear: if (!minionBlock) { Clear(); } break; case Orbwalking.OrbwalkingMode.LastHit: break; default: break; } if (config.Item("useSmite").GetValue <bool>() && Jungle.smiteSlot != SpellSlot.Unknown) { Jungle.setSmiteSlot(); var target = Jungle.GetNearest(me.Position); bool smiteReady = ObjectManager.Player.Spellbook.CanUseSpell(Jungle.smiteSlot) == SpellState.Ready; if (target != null) { if (Jungle.smite.CanCast(target) && smiteReady && me.Distance(target.Position) <= Jungle.smite.Range && Jungle.smiteDamage() >= target.Health) { Jungle.CastSmite(target); } } } if (config.Item("manualR").GetValue <KeyBind>().Active&& R.IsReady()) { CastR(); } }
public Ivern() { InitIvern(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Ivern</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Jungle.setSmiteSlot(); }
public Hecarim() { InitHecarim(); InitMenu(); //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Hecarim</font>"); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Jungle.setSmiteSlot(); Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; HpBarDamageIndicator.DamageToUnit = ComboDamage; }
public Evelynn() { InitEvelynn(); InitMenu(); //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Evelynn</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; Jungle.setSmiteSlot(); Orbwalking.OnAttack += Orbwalking_AfterAttack; HpBarDamageIndicator.DamageToUnit = ComboDamage; }
public Ivern() { InitIvern(); InitMenu(); //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Ivern</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; HpBarDamageIndicator.DamageToUnit = ComboDamage; Jungle.setSmiteSlot(); }
public Renekton() { InitRenekton(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Renekton</font>"); Game.OnUpdate += Game_OnGameUpdate; Orbwalking.BeforeAttack += beforeAttack; Orbwalking.AfterAttack += afterAttack; Drawing.OnDraw += Game_OnDraw; Jungle.setSmiteSlot(); }
public Garen() { InitGaren(); InitMenu(); Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Garen</font>"); Game.OnUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += AfterAttack; Drawing.OnDraw += Game_OnDraw; Jungle.setSmiteSlot(); Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage; }
private static void OnUpdate(EventArgs args) { switch (Orbwalker.ActiveMode) { case OrbwalkingMode.Combo: Combo.Execute(); break; case OrbwalkingMode.LaneClear: Jungle.Execute(); Clear.Execute(); break; case OrbwalkingMode.Hybrid: Harass.Execute(); break; } if (ObjectManager.Player.IsActive(Spells.R)) { Orbwalker.AttackState = false; Orbwalker.MovementState = false; Orbwalker.Enabled = false; } else if (!ObjectManager.Player.IsActive(Spells.R)) { Orbwalker.AttackState = true; Orbwalker.MovementState = true; Orbwalker.Enabled = true; } if (Config.SemiManualUlt.Active && !ObjectManager.Player.IsActive(Spells.R)) { Orbwalker.Move(Game.CursorPos); } if (Config.SemiManualUlt.Active && Spells.R.IsReady()) { Ultimate.Execute(); } if (Config.Menu["activator.settings"]["use.qss"] && (Items.HasItem((int)ItemId.Quicksilver_Sash) && Items.CanUseItem((int)ItemId.Quicksilver_Sash) || Items.CanUseItem(3139) && Items.HasItem(3137))) { Qss.ExecuteQss(); } if (Config.Menu["misc.settings"]["auto.orb.buy"] && ObjectManager.Player.Level >= Config.Menu["misc.settings"]["orb.level"] && !Items.HasItem((int)ItemId.Farsight_Alteration)) { Shop.BuyItem(ItemId.Farsight_Alteration); } }
private void Game_OnGameUpdate(EventArgs args) { if (Q.IsCharging || activatedR) { orbwalker.SetAttack(false); orbwalker.SetMovement(false); } else { orbwalker.SetAttack(true); orbwalker.SetMovement(true); } Jungle.CastSmite(config.Item("useSmite").GetValue <KeyBind>().Active); switch (orbwalker.ActiveMode) { case Orbwalking.OrbwalkingMode.Combo: Combo(); break; case Orbwalking.OrbwalkingMode.Mixed: Harass(); break; case Orbwalking.OrbwalkingMode.LaneClear: Clear(); break; case Orbwalking.OrbwalkingMode.LastHit: break; default: break; } var data = Program.IncDamages.GetAllyData(player.NetworkId); if (data != null && !activatedW && config.Item("AshieldB", true).GetValue <bool>() && data.DamageCount >= config.Item("wMinAggro", true).GetValue <Slider>().Value&& player.ManaPercent > config.Item("minmanaAgg", true).GetValue <Slider>().Value) { W.Cast(config.Item("packets").GetValue <bool>()); } if (data != null && !activatedW && config.Item("AshieldB", true).GetValue <bool>() && W.IsReady() && (data.DamageTaken > player.Health || data.DamageTaken > getWShield() / 100f * config.Item("AshieldDmg", true).GetValue <Slider>().Value)) { W.Cast(config.Item("packets").GetValue <bool>()); } if (data != null && activatedW && data.DamageTaken > player.GetBuff("sionwshieldstacks").Count&& data.DamageTaken < player.Health) { W.Cast(config.Item("packets").GetValue <bool>()); } }
public Sejuani() { InitSejuani(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Sejuani</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnPossibleToInterrupt; Orbwalking.AfterAttack += AfterAttack; Jungle.setSmiteSlot(); }
public void CarnivoresKillHerbivoresTest() { var randomGen = new Random(); var herbs = Enumerable.Range(0, 100).Select(i => new Herbivore(randomGen)).ToList(); var carns = Enumerable.Range(0, 20).Select(i => new Carnivore(randomGen)).ToList(); var cell = new Jungle(new Position { x = 0, y = 0 }, randomGen, herbs, carns); cell.CarnivoreFeedingCycle(); Assert.True(cell.Herbivores.Count() < 100); }
//public static AutoLeveler autoLeveler; public Poppy() { Initpoppy(); InitMenu(); //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Poppy</font>"); Game.OnTick += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; Jungle.setSmiteSlot(); //HpBarDamageIndicator.DamageToUnit = ComboDamage; }
//public static AutoLeveler autoLeveler; public Renekton() { InitRenekton(); InitMenu(); //Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Renekton</font>"); Game.OnUpdate += Game_OnGameUpdate; Orbwalking.BeforeAttack += beforeAttack; Orbwalking.AfterAttack += afterAttack; Drawing.OnDraw += Game_OnDraw; Jungle.setSmiteSlot(); HpBarDamageIndicator.DamageToUnit = ComboDamage; }
private static void AfterAttack(AttackableUnit target, EventArgs args) { if (Q.IsReady() && ((Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo) && getCheckBoxItem(menuC, "useq") && target is AIHeroClient) || (getCheckBoxItem(menuLC, "useqLC") && Jungle.GetNearest(player.Position).LSDistance(player.Position) < player.AttackRange + 30))) { Q.Cast(getCheckBoxItem(config, "packets")); Orbwalker.ResetAutoAttack(); } }
internal static void InMenu() { Caiy = MainMenu.AddMenu("Caitlyn", "Caitlyn"); Caiy.Add("AutoAtack", new CheckBox("Use Atack Buff [Enemy]")); pre = Caiy.AddSubMenu("Prediction"); pre.Add("HitQ", new ComboBox("HitChance [Q]", 1, "Low", "Medium", "High")); pre.Add("HitW", new ComboBox("HitChance [W]", 2, "Low", "Medium", "High")); pre.Add("HitE", new ComboBox("HitChance [E]", 1, "Low", "Medium", "High")); Comb = Caiy.AddSubMenu("Combo"); Comb.Add("Qc", new CheckBox("Use [Q]")); Comb.Add("Wc", new CheckBox("Use [W]")); Comb.Add("Ec", new CheckBox("Use [E]")); Comb.AddSeparator(); Comb.AddLabel("Settings [R]"); Comb.Add("Rf", new CheckBox("Use [R] Fish Enemy")); Comb.AddSeparator(); Comb.Add("ModoR", new ComboBox("Mode [R]", 0, "Fish [R]", "Beta Mode [R]")); Comb.AddSeparator(); Comb.AddLabel("Settings [Beta Mode R]"); Comb.Add("LR", new Slider("Minimal of the Enemy's Life", 20, 1, 100)); Comb.AddSeparator(); Comb.AddLabel("Enemys, No Use on whom?"); foreach (var enemies in EntityManager.Heroes.Enemies.Where(caity => !caity.IsMe)) { Comb.Add("CaitlynUti" + enemies.ChampionName, new CheckBox("" + enemies.ChampionName, false)); } Auto = Caiy.AddSubMenu("Auto Harass"); Auto.Add("AutoQ", new CheckBox("AutoHarass [Q]")); Auto.AddSeparator(); Auto.AddLabel("Mana Percent"); Auto.Add("ManaQ", new Slider("Mana Percent [Q] > {0}", 65, 1)); Lane = Caiy.AddSubMenu("Lane [Clear]"); Lane.Add("Ql", new CheckBox("Use [Q] Lane")); Lane.AddSeparator(); Lane.AddLabel("Mana Percent"); Lane.Add("ManaL", new Slider("Mana Percent > {0}", 50, 1, 100)); Lane.AddSeparator(); Lane.AddLabel("Minions"); Lane.Add("Qmi", new Slider("Minion Percent > {0}", 3, 1, 6)); Jungle = Caiy.AddSubMenu("Jungle [Clear]"); Jungle.Add("Qj", new CheckBox("Use [Q] Jungle")); Jungle.AddSeparator(); Jungle.AddLabel("Mana Percent"); Jungle.Add("Q/J", new Slider("Mana Percent [Q/E]", 65, 1)); Misc = Caiy.AddSubMenu("Misc"); Misc.Add("Ks", new CheckBox("KillSteal")); Draws = Caiy.AddSubMenu("Draws [Spells]"); Draws.Add("DQ", new CheckBox("[Q] Draws")); Draws.Add("DW", new CheckBox("[W] Draws")); Draws.Add("DE", new CheckBox("[E] Draws")); Draws.Add("DR", new CheckBox("[R] Draws")); }
public Yorick() { InitYorick(); InitMenu(); Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Yorick</font>"); Jungle.setSmiteSlot(); Game.OnUpdate += Game_OnGameUpdate; Orbwalking.AfterAttack += AfterAttack; Orbwalking.BeforeAttack += beforeAttack; Drawing.OnDraw += Game_OnDraw; Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; }
private static void AfterAttack(AttackableUnit unit, AttackableUnit target) { if (unit.IsMe && Q.IsReady() && ((orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && config.Item("useq").GetValue <bool>() && target is Obj_AI_Hero) || (config.Item("useqLC").GetValue <bool>() && Jungle.GetNearest(player.Position).Distance(player.Position) < player.AttackRange + 30))) { Q.Cast(config.Item("packets").GetValue <bool>()); Orbwalking.ResetAutoAttackTimer(); //player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos); } }
public Shen() { InitShen(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Shen</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnPossibleToInterrupt; Obj_AI_Base.OnDamage += Obj_AI_Base_OnDamage; Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell; Jungle.setSmiteSlot(); }
public Evelynn() { if (player.BaseSkinName != "Evelynn") { return; } InitMenu(); InitEvelynn(); Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Evelynn</font>"); Game.OnGameUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; Jungle.setSmiteSlot(); }
public Fiora() { InitFiora(); InitMenu(); Game.PrintChat("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Fiora</font>"); Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; Orbwalking.AfterAttack += AfterAttack; Obj_AI_Base.OnProcessSpellCast += Game_ProcessSpell; Jungle.setSmiteSlot(); Utility.HpBarDamageIndicator.DamageToUnit = ComboDamage; GameObject.OnCreate += GameObject_OnCreate; GameObject.OnDelete += GameObject_OnDelete; }
public Trundle() { InitTrundle(); InitMenu(); //Chat.Print("<font color='#9933FF'>Soresu </font><font color='#FFFFFF'>- Trundle</font>"); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Jungle.setSmiteSlot(); Obj_AI_Base.OnDamage += Obj_AI_Base_OnDamage; Orbwalking.AfterAttack += AfterAttack; Interrupter2.OnInterruptableTarget += Interrupter2_OnInterruptableTarget; HpBarDamageIndicator.DamageToUnit = ComboDamage; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; }
private void onLoad(EventArgs args) { // Se for o Master Yi if (ObjectManager.Player.BaseSkinName == charName) { masterYi = new Master(); jg = new Jungle(); // Boas vindas Game.PrintChat(string.Format("<font color='#3BB9FF'>{0} - by Crisdmc - </font>Loaded", charName)); try { Config = new Menu("MasterYi", "MasterYi", true); // OrbWalker Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker")); masterYi.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker")); // Target Selector var TargetSelectorMenu = new Menu("Target Selector", "targetSelector"); TargetSelector.AddToMenu(Config.SubMenu("targetSelector")); // Combo Config.AddSubMenu(new Menu("Combo", "combo")); Config.SubMenu("combo").AddItem(new MenuItem("useQ", "Use Q")).SetValue(true); Config.SubMenu("combo").AddItem(new MenuItem("useW", "Use W")).SetValue(true); Config.SubMenu("combo").AddItem(new MenuItem("useE", "Use E")).SetValue(true); Config.SubMenu("combo").AddItem(new MenuItem("useR", "Use R")).SetValue(true); Config.SubMenu("combo").AddItem(new MenuItem("orbLock", "Orbwalk Lock")).SetValue(false); Config.SubMenu("combo").AddItem(new MenuItem("usePacket", "Use Packet")).SetValue(false); // W options Config.AddSubMenu(new Menu("W Options", "wOptions")); Config.SubMenu("wOptions").AddItem(new MenuItem("useWWhen", "")).SetValue(new StringList(new[] { "Combo", "After Attack", "Combo(AA)" }, 2)); Config.SubMenu("wOptions").AddItem(new MenuItem("useWon", "Use W on %")).SetValue(new Slider(40, 100, 0)); Config.SubMenu("wOptions").AddItem(new MenuItem("shortW", "Interrupt W")).SetValue(true); Config.SubMenu("wOptions").AddItem(new MenuItem("shortWRange", "")).SetValue(new StringList(new[] { "AA Range", "300" }, 0)); // Lane Clear Config.AddSubMenu(new Menu("Lane Clear", "laneclear")); var menuLaneCQ = new Menu("Q", "LCQ"); menuLaneCQ.AddItem(new MenuItem("useQLC", "Enable")).SetValue(true); menuLaneCQ.AddItem(new MenuItem("useQLCX", "X Units")).SetValue(new Slider(3, 1, 5)); Config.SubMenu("laneclear").AddSubMenu(menuLaneCQ); // Draw Config.AddSubMenu(new Menu("Draw", "draw")); Config.SubMenu("draw").AddItem(new MenuItem("drawQ", "Q")).SetValue(true); // Jungle Slack Config.AddSubMenu(new Menu("Jungle Slack", "slack")); Config.SubMenu("slack").AddItem(new MenuItem("activeSlack", "Active(IMPLEMENTING)")).SetValue(new KeyBind("F1".ToCharArray()[0], KeyBindType.Toggle, false)); // Additionals Config.AddSubMenu(new Menu("Additionals", "additionals")); Config.SubMenu("additionals").AddItem(new MenuItem("autoUpSkill", "Auto Up Skills")).SetValue(true); Config.SubMenu("additionals").AddItem(new MenuItem("autoSkillOrder", "")).SetValue(new StringList(new[] { "Q>E>W(2W)", "Q>W>E(2E)" }, 0)); Config.AddToMainMenu(); } catch { Game.PrintChat("MasterYi error creating menu!"); } // attach events Drawing.OnDraw += onDraw; Game.OnGameUpdate += OnGameUpdate; CustomEvents.Unit.OnLevelUp += onLevelUpEvent; Orbwalking.AfterAttack += afterAttackEvent; // Se o auto up de skill estiver ligado if (Config.Item("autoUpSkill").GetValue<bool>()) { int order = Config.Item("autoSkillOrder").GetValue<StringList>().SelectedIndex; masterYi.autoUpSkill(order, masterYi.player.Level); } } }