Example #1
0
        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);
                }
            }
        }
Example #2
0
        private void OnGameUpdate(EventArgs args)
        {
            if (masterYi.orbwalker.ActiveMode.ToString() == "Combo")
            {
                masterYi.combo(Config);
            }

            if (masterYi.orbwalker.ActiveMode.ToString() == "Mixed")
            {
                masterYi.mixedMode();
            }

            if (masterYi.orbwalker.ActiveMode.ToString() == "LaneClear")
            {
                masterYi.laneClear(Config.Item("useQLC").GetValue <bool>());
            }

            if (masterYi.orbwalker.ActiveMode.ToString() == "LastHit")
            {
                masterYi.lastHit();
            }

            if (Config.Item("activeSlack").GetValue <KeyBind>().Active)
            {
                //jg.teste();
            }
        }