Ejemplo n.º 1
0
        public static void GameOnOnGameLoad()
        {
            _spells = EloBuddy.SDK.Spells.SpellDatabase.GetSpellInfoList(ObjectManager.Player.BaseSkinName);

            enemySpawn = ObjectManager.Get <Obj_SpawnPoint>().FirstOrDefault(x => x.IsEnemy);
            Q          = new Spell(SpellSlot.Q);
            E          = new Spell(SpellSlot.E);
            W          = new Spell(SpellSlot.W);
            R          = new Spell(SpellSlot.R);

            Config = MainMenu.AddMenu("OneKeyToWin AIO", "OneKeyToWin_AIO" + ObjectManager.Player.ChampionName);

            #region MENU ABOUT OKTW

            Config.Add("debug", new CheckBox("Debug", false));
            Config.Add("debugChat", new CheckBox("Debug Chat", false));
            Config.Add("print", new CheckBox("OKTW NEWS in chat"));

            #endregion

            Config.Add("AIOmode", new Slider("AIO mode (0 : Util & Champ | 1 : Only Champ | 2 : Only Util)", 0, 0, 2));
            AIOmode = getSliderItem("AIOmode");

            var slots = new HashSet <SpellSlot>();
            foreach (var info in _spells)
            {
                slots.Add(info.Slot);
            }

            Config.Add("PredictionMODE", new Slider("Pred Mode (0 : L# Pred | 1 : OKTW Pred | 2 : SPred | 3 : SDK | 4 : EB)", 0, 0, 4));
            Config.Add("HitChance", new Slider("AIO mode (0 : Very High | 1 : High | 2 : Medium)", 0, 0, 2));
            Config.Add("debugPred", new CheckBox("Draw Aiming OKTW© PREDICTION", false));
            Config.Add("harassLaneclear", new CheckBox("Skill-Harass in lane clear"));

            if (getSliderItem("PredictionMODE") == 2)
            {
                SPrediction.Prediction.Initialize(Config);
                SPredictionLoad = true;
            }
            else
            {
                Config.AddLabel("SPREDICTION NOT LOADED");
            }

            if (AIOmode != 2)
            {
                Config.Add("supportMode", new CheckBox("Support Mode", false));
                Config.Add("comboDisableMode", new CheckBox("Disable auto-attack in combo mode", false));
                Config.Add("manaDisable", new CheckBox("Disable mana manager in combo"));
                Config.Add("collAA", new CheckBox("Disable auto-attack if Yasuo wall collision"));

                #region LOAD CHAMPIONS

                switch (Player.ChampionName)
                {
                case "Anivia":
                    PortAIO.Champion.Anivia.Anivia.LoadOKTW();
                    break;

                case "Annie":
                    PortAIO.Champion.Annie.Program.LoadOKTW();
                    break;

                case "Ashe":
                    PortAIO.Champion.Ashe.Program.LoadOKTW();
                    break;

                case "Braum":
                    PortAIO.Champion.Braum.Program.LoadOKTW();
                    break;

                case "Caitlyn":
                    new Caitlyn().LoadOKTW();
                    break;

                case "Ekko":
                    PortAIO.Champion.Ekko.Program.LoadOKTW();
                    break;

                case "Ezreal":
                    Ezreal.LoadOKTW();
                    break;

                case "Graves":
                    Graves.LoadOKTW();
                    break;

                case "Jayce":
                    OneKeyToWin_AIO_Sebby.Champions.Jayce.LoadOKTW();
                    break;

                case "Jinx":
                    Jinx.LoadOKTW();
                    break;

                case "Karthus":
                    Karthus.LoadOKTW();
                    break;

                case "Lucian":
                    Lucian.LoadOKTW();
                    break;

                case "MissFortune":
                    MissFortune.LoadOKTW();
                    break;

                case "Malzahar":
                    Malzahar.LoadOKTW();
                    break;

                case "Orianna":
                    Orianna.LoadOKTW();
                    break;

                case "Sivir":
                    Sivir.LoadOKTW();
                    break;

                case "Twitch":
                    Twitch.LoadOKTW();
                    break;

                case "Syndra":
                    new OneKeyToWin_AIO_Sebby.Champions.Syndra().LoadOKTW();
                    break;

                case "Velkoz":
                    Velkoz.LoadOKTW();
                    break;

                case "Xerath":
                    Xerath.LoadOKTW();
                    break;

                case "Swain":
                    Swain.LoadOKTW();
                    break;

                case "Urgot":
                    Urgot.LoadOKTW();
                    break;

                case "Ahri":
                    Ahri.LoadOKTW();
                    break;

                case "Thresh":
                    Thresh.LoadOKTW();
                    break;

                case "Brand":
                    Brand.LoadOKTW();
                    break;

                case "Blitzcrank":
                    Blitzcrank.LoadOKTW();
                    break;

                case "Corki":
                    Corki.LoadOKTW();
                    break;

                case "Darius":
                    Darius.LoadOKTW();
                    break;

                case "Evelynn":
                    OneKeyToWin_AIO_Sebby.Champions.Evelynn.LoadOKTW();
                    break;

                case "Jhin":
                    Jhin.LoadOKTW();
                    break;

                case "Kindred":
                    Kindred.LoadOKTW();
                    break;

                case "KogMaw":
                    OneKeyToWin_AIO_Sebby.KogMaw.LoadOKTW();
                    break;

                case "Lux":
                    Lux.LoadOKTW();
                    break;

                case "Morgana":
                    Morgana.LoadOKTW();
                    break;

                case "Quinn":
                    Quinn.LoadOKTW();
                    break;

                case "TwistedFate":
                    OneKeyToWin_AIO_Sebby.Champions.TwistedFate.LoadOKTW();
                    break;
                }
            }

            #endregion

            foreach (var hero in HeroManager.Enemies)
            {
                if (hero.IsEnemy && hero.Team != Player.Team)
                {
                    Enemies.Add(hero);
                    if (IsJungler(hero))
                    {
                        jungler = hero;
                    }
                }
            }

            foreach (var hero in HeroManager.Allies)
            {
                if (hero.IsAlly && hero.Team == Player.Team)
                {
                    Allies.Add(hero);
                }
            }

            if (AIOmode != 1)
            {
                new OKTWward().LoadOKTW();
                new OKTWtracker().LoadOKTW();
            }

            Game.OnUpdate         += OnUpdate;
            Orbwalker.OnPreAttack += Orbwalking_BeforeAttack;
            Drawing.OnDraw        += OnDraw;
            Game.OnTick           += Game_OnTick;
        }