private void OnGameUpdate(EventArgs args) { if (masterYi.orbwalker.ActiveMode.ToString() == "Combo") { masterYi.combo(Config); } else if (masterYi.orbwalker.ActiveMode.ToString() == "Mixed") { masterYi.mixedMode(); } else if (masterYi.orbwalker.ActiveMode.ToString() == "LaneClear") { masterYi.laneClear(Config); } else if (masterYi.orbwalker.ActiveMode.ToString() == "LastHit") { masterYi.lastHit(); } if (Config.Item("activeSlack").GetValue <KeyBind>().Active) { //jg.teste(); } // Common onLevelUpEvent isnt working if (ObjectManager.Player.SpellTrainingPoints > 0) { // se for eu que evolui de level if (Config.Item("autoUpSkill").GetValue <bool>()) { int order = Config.Item("autoSkillOrder").GetValue <StringList>().SelectedIndex; masterYi.autoUpSkill(order, ObjectManager.Player.Level); } } }
private void onLevelUpEvent(Obj_AI_Base champ, CustomEvents.Unit.OnLevelUpEventArgs evt) { // se for eu que evolui de level if (champ.IsMe && Config.Item("autoUpSkill").GetValue <bool>()) { int order = Config.Item("autoSkillOrder").GetValue <StringList>().SelectedIndex; masterYi.autoUpSkill(order, evt.NewLevel); } }
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); } } }
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); } } }