Beispiel #1
0
        private static void Game_OnWndProc(WndEventArgs args)
        {
            if (args.WParam == 16)
            {
                (Config["aiomodes"] as Menu).Visible = AIOmode != Config.GetValue <MenuList <string> >("AIOmode").Index;
            }

            if (AIOmode == 2)
            {
                return;
            }

            var sft       = Config[Player.CharacterName]["farm"]["spellsfarmtoggle"];
            var idx       = sft.GetValue <MenuList <string> >("spellFarmMode").Index;
            var spellFarm = sft.GetValue <MenuBool>("spellFarm");

            if (spellFarm == null || idx == 3)
            {
                return;
            }

            if ((idx == 0 && args.Msg == (uint)WindowsMessages.MOUSEHWHEEL) || (idx == 1 && args.Msg == (uint)WindowsMessages.MBUTTONUP))
            {
                if (!spellFarm.Value)
                {
                    spellFarm.Value = true;
                    spellFarmTimer  = Game.Time;

                    var farmQ = Config[Player.CharacterName]["farm"]["farmQ"];
                    if (farmQ != null)
                    {
                        (farmQ as MenuBool).Value = true;
                    }
                    var farmW = Config[Player.CharacterName]["farm"]["farmW"];
                    if (farmW != null)
                    {
                        (farmW as MenuBool).Value = true;
                    }
                    var farmE = Config[Player.CharacterName]["farm"]["farmE"];
                    if (farmE != null)
                    {
                        (farmE as MenuBool).Value = true;
                    }
                    var farmR = Config[Player.CharacterName]["farm"]["farmR"];
                    if (farmR != null)
                    {
                        (farmR as MenuBool).Value = true;
                    }
                }
                else
                {
                    spellFarm.Value = false;
                    spellFarmTimer  = Game.Time;

                    var farmQ = Config[Player.CharacterName]["farm"]["farmQ"];
                    if (farmQ != null)
                    {
                        (farmQ as MenuBool).Value = false;
                    }
                    var farmW = Config[Player.CharacterName]["farm"]["farmW"];
                    if (farmW != null)
                    {
                        (farmW as MenuBool).Value = false;
                    }
                    var farmE = Config[Player.CharacterName]["farm"]["farmE"];
                    if (farmE != null)
                    {
                        (farmE as MenuBool).Value = false;
                    }
                    var farmR = Config[Player.CharacterName]["farm"]["farmR"];
                    if (farmR != null)
                    {
                        (farmR as MenuBool).Value = false;
                    }
                }
            }
        }
Beispiel #2
0
        private static void GameOnOnGameLoad(object sender, EventArgs args)
        {
            TextBold = new Font(Drawing.Direct3DDevice, new FontDescription
            {
                FaceName = "Impact", Height = 30, Weight = FontWeight.Normal, OutputPrecision = FontPrecision.Default, Quality = FontQuality.ClearType
            });

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

            Config = new Menu("OneKeyToWin AIO", "OneKeyToWin_AIO " + Player.CharacterName, true);

            #region MENU ABOUT OKTW

            var about = new Menu("aboutoktw", "About OKTW©");
            about.Add(new MenuBool("debug", "Debug"));
            about.Add(new MenuBool("debugChat", "Debug Chat"));
            about.Add(new Menu("0", "OneKeyToWin© by Sebby"));
            about.Add(new Menu("1", "visit joduska.me"));
            about.Add(new Menu("2", "DONATE: [email protected]"));
            about.Add(new MenuBool("print", "OKTW NEWS in chat", true));
            Config.Add(about);

            #endregion

            Config.Add(new MenuList <string>("AIOmode", "AIO mode", new[] { "Utility and Champion", "Only Champion", "Only Utility" }, Player.CharacterName)
            {
                Index = 0
            });

            AIOmode = Config.GetValue <MenuList <string> >("AIOmode").Index;

            if (AIOmode != 1)
            {
                var utilityDraws = new Menu("utilitydraws", "Utility, Draws OKTW©");
                var gankTimer    = new Menu("ganktimer", "GankTimer");
                gankTimer.Add(new MenuBool("enabled", "Enabled", true));
                gankTimer.Add(new Menu("1", "RED - be careful"));
                gankTimer.Add(new Menu("2", "ORANGE - you have time"));
                gankTimer.Add(new Menu("3", "GREEN - jungler visible"));
                gankTimer.Add(new Menu("4", "CYAN jungler dead - take objectives"));
                utilityDraws.Add(gankTimer);
                Config.Add(utilityDraws);
            }

            var predictionmode = new Menu("predictionmode", "Prediction Mode");
            predictionmode.Add(new MenuList <string>("Qpred", "Q Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" })
            {
                Index = 1
            });
            predictionmode.Add(new MenuList <string>("QHitChance", "Q Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName)
            {
                Index = 0
            });
            predictionmode.Add(new MenuList <string>("Wpred", "W Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" })
            {
                Index = 1
            });
            predictionmode.Add(new MenuList <string>("WHitChance", "W Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName)
            {
                Index = 0
            });
            predictionmode.Add(new MenuList <string>("Epred", "E Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" })
            {
                Index = 1
            });
            predictionmode.Add(new MenuList <string>("EHitChance", "E Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName)
            {
                Index = 0
            });
            predictionmode.Add(new MenuList <string>("Rpred", "R Prediction MODE", new[] { "SDK", "OKTW© PREDICTION", "SPrediction press F5 if not loaded (outdated)", "Exory prediction" })
            {
                Index = 1
            });
            predictionmode.Add(new MenuList <string>("RHitChance", "R Hit Chance", new[] { "Very High", "High", "Medium" }, Player.CharacterName)
            {
                Index = 0
            });
            predictionmode.Add(new MenuBool("debugPred", "Draw Aiming OKTW© PREDICTION"));
            Config.Add(predictionmode);

            if (AIOmode != 2)
            {
                var extraSet = new Menu("extraSet", "Extra settings OKTW©");
                extraSet.Add(new MenuBool("supportMode", "Support Mode", false, Player.CharacterName));
                extraSet.Add(new MenuBool("comboDisableMode", "Disable auto-attack in combo mode", false, Player.CharacterName));
                extraSet.Add(new MenuBool("manaDisable", "Disable mana manager in combo", false, Player.CharacterName));
                extraSet.Add(new MenuBool("collAA", "Disable auto-attack if Yasuo wall collision", true, Player.CharacterName));
                extraSet.Add(new MenuBool("harassLaneclear", "Skill-Harass in lane clear", true));
                Config.Add(extraSet);
                extraSet.GetValue <MenuBool>("supportMode").Value = false;

                #region LOAD CHAMPIONS

                #endregion

                var player = Config[Player.CharacterName] as Menu;
                if (player == null)
                {
                    player = new Menu(Player.CharacterName, Player.CharacterName);
                    Config.Add(player);
                }
                var farm = player["farm"] as Menu;
                if (farm == null)
                {
                    farm = new Menu("farm", "Farm");
                    player.Add(farm);
                }
                var spellsfarmtoggle = new Menu("spellsfarmtoggle", "SPELLS FARM TOGGLE");
                spellsfarmtoggle.Add(new MenuBool("spellFarm", "OKTW spells farm", true));
                spellsfarmtoggle.Add(new MenuList <string>("spellFarmMode", "SPELLS FARM TOGGLE MODE", new[] { "Scroll down", "Scroll press", "Key toggle", "Disable" })
                {
                    Index = 1
                });
                spellsfarmtoggle.Add(new MenuKeyBind("spellFarmKeyToggle", "Key toggle", Keys.N, KeyBindType.Toggle));
                spellsfarmtoggle.Add(new MenuBool("showNot", "Show notification", true));
                farm.Add(spellsfarmtoggle);
                spellsfarmtoggle.GetValue <MenuBool>("spellFarm").Permashow(true);
            }

            foreach (var hero in GameObjects.EnemyHeroes)
            {
                if (IsJungler(hero))
                {
                    jungler = hero;
                }
            }

            if (AIOmode != 1)
            {
                new Core.Activator().LoadOKTW();
                new Core.AutoLvlUp().LoadOKTW();
                new Core.OKTWdraws().LoadOKTW();
                new Core.OKTWtracker().LoadOKTW();
                new Core.OKTWward().LoadOKTW();
            }


            Config.Add(new Menu("aiomodes", "!!! PRESS F5 TO RELOAD MODE !!!"));
            Config.Attach();

            Game.OnUpdate  += Game_OnUpdate;
            Game.OnWndProc += Game_OnWndProc;
            Drawing.OnDraw += Drawing_OnDraw;
            Variables.Orbwalker.OnAction += Orbwalker_OnAction;

            if (Config["aboutoktw"].GetValue <MenuBool>("print").Value)
            {
                Chat.PrintChat("<font size='30'>OneKeyToWin</font> <font color='#b756c5'>by Sebby</font>");
                Chat.PrintChat("<font color='#b756c5'>OKTW NEWS: </font>" + OktwNews);
            }
        }
Beispiel #3
0
        public void LoadOKTW()
        {
            var activator = new Menu("activator", "Activator OKTW©");

            #region Summoner

            var summoner = new Menu("summoner", "Summoners");

            var smite = new Menu("smite", "Smite");
            smite.Add(new MenuBool("SmiteEnemy", "Auto Smite enemy under 50% hp", true));
            smite.Add(new MenuBool("SmiteEnemyKS", "Auto Smite enemy KS", true));
            smite.Add(new MenuKeyBind("Smite", "Auto Smite mobs OKTW", Keys.N, KeyBindType.Toggle));
            smite.Add(new MenuBool("Rdragon", "Dragon", true, Player.CharacterName));
            smite.Add(new MenuBool("Rbaron", "Baron", true, Player.CharacterName));
            smite.Add(new MenuBool("Rherald", "Herald", true, Player.CharacterName));
            smite.Add(new MenuBool("Rred", "Red", true, Player.CharacterName));
            smite.Add(new MenuBool("Rblue", "Blue", true, Player.CharacterName));
            smite.GetValue <MenuKeyBind>("Smite").Permashow(true);
            summoner.Add(smite);

            var exhaust = new Menu("exhaust", "Exhaust");
            exhaust.Add(new MenuBool("Exhaust", "Exhaust", true));
            exhaust.Add(new MenuBool("Exhaust1", "Exhaust if Channeling Important Spell", true));
            exhaust.Add(new MenuBool("Exhaust2", "Always in combo"));
            summoner.Add(exhaust);

            var heal = new Menu("heal", "Heal");
            heal.Add(new MenuBool("Heal", "Heal", true));
            heal.Add(new MenuBool("AllyHeal", "AllyHeal", true));
            summoner.Add(heal);

            summoner.Add(new MenuBool("Barrier", "Barrier", true));
            summoner.Add(new MenuBool("Ignite", "Ignite", true));
            summoner.Add(new MenuBool("Cleanse", "Cleanse", true));

            activator.Add(summoner);

            #endregion

            activator.Add(new MenuBool("pots", "Potion, ManaPotion, Flask, Biscuit, Refillable, Hunter, Corrupting", true));

            #region Offensives

            var offensives = new Menu("offensives", "Offensives");

            var botrk = new Menu("botrk", "Botrk");
            botrk.Add(new MenuBool("Botrk", "Botrk", true));
            botrk.Add(new MenuBool("BotrkKS", "Botrk KS", true));
            botrk.Add(new MenuBool("BotrkCombo", "Botrk always in combo", true));
            offensives.Add(botrk);

            var cutlass = new Menu("cutlass", "Cutlass");
            cutlass.Add(new MenuBool("Cutlass", "Cutlass", true));
            cutlass.Add(new MenuBool("CutlassKS", "Cutlass KS", true));
            cutlass.Add(new MenuBool("CutlassCombo", "Cutlass always in combo", true));
            offensives.Add(cutlass);

            var hextech = new Menu("hextech", "Hextech");
            hextech.Add(new MenuBool("Hextech", "Hextech", true));
            hextech.Add(new MenuBool("HextechKS", "Hextech KS", true));
            hextech.Add(new MenuBool("HextechCombo", "Hextach always in combo", true));
            offensives.Add(hextech);

            var protobelt = new Menu("protobelt", "Protobelt");
            protobelt.Add(new MenuBool("Protobelt", "Protobelt", true));
            protobelt.Add(new MenuBool("ProtobeltKS", "Protobelt KS", true));
            protobelt.Add(new MenuBool("ProtobeltCombo", "Protobelt always in combo", true));
            offensives.Add(protobelt);

            var glp800 = new Menu("glp800", "GLP800");
            glp800.Add(new MenuBool("GLP800", "GLP800", true));
            glp800.Add(new MenuBool("GLP800KS", "GLP800 KS", true));
            glp800.Add(new MenuBool("GLP800Combo", "GLP800 always in combo", true));
            offensives.Add(glp800);

            var youmuus = new Menu("youmuus", "Youmuus");
            youmuus.Add(new MenuBool("Youmuus", "Youmuus", true));
            youmuus.Add(new MenuBool("YoumuusR", "TwitchR, AsheQ", true));
            youmuus.Add(new MenuBool("YoumuusKS", "Youmuus KS", true));
            youmuus.Add(new MenuBool("YoumuusCombo", "Youmuus always in combo"));
            offensives.Add(youmuus);

            var hydra = new Menu("hydra", "Hydra");
            hydra.Add(new MenuBool("Hydra", "Hydra", true));
            offensives.Add(hydra);

            var hydratitanic = new Menu("hydratitanic", "HydraTitanic");
            hydratitanic.Add(new MenuBool("HydraTitanic", "Hydra Titanic", true));
            offensives.Add(hydratitanic);

            activator.Add(offensives);

            #endregion

            #region Defensive

            var defensives = new Menu("defensives", "Defensives");

            defensives.Add(new MenuBool("Randuin", "Randuin", true));

            var zhonya = new Menu("zhonya", "Zhonya");
            zhonya.Add(new MenuBool("Zhonya", "Zhonya", true));
            foreach (var enemy in GameObjects.EnemyHeroes)
            {
                var spell = enemy.Spellbook.Spells[3];
                zhonya.Add(new MenuBool("spellZ" + spell.SData.Name, enemy.CharacterName + ": " + spell.Name, spell.SData.TargettingType == SpellDataTargetType.Unit));
            }
            defensives.Add(zhonya);

            defensives.Add(new MenuBool("Seraph", "Seraph", true));
            defensives.Add(new MenuBool("Solari", "Solari", true));

            activator.Add(defensives);

            #endregion

            #region Cleansers

            var cleansers = new Menu("cleansers", "Cleansers");

            cleansers.Add(new MenuBool("Clean", "Quicksilver, Miskaels, Mercurial, Dervish", true));

            var mikaelsally = new Menu("Mikaelsallys", "Mikaels allys");
            foreach (var ally in GameObjects.AllyHeroes)
            {
                mikaelsally.Add(new MenuBool("MikaelsAlly" + ally.CharacterName, ally.CharacterName, true));
            }
            cleansers.Add(mikaelsally);

            cleansers.Add(new MenuSlider("CSSdelay", "Delay x ms", 0, 0, 1000));
            cleansers.Add(new MenuSlider("cleanHP", "Use only under % HP", 80, 0, 100));

            var bufftype = new Menu("bufftype", "Buff type");
            bufftype.Add(new MenuBool("Stun", "Stun", true));
            bufftype.Add(new MenuBool("Snare", "Snare", true));
            bufftype.Add(new MenuBool("Charm", "Charm", true));
            bufftype.Add(new MenuBool("Flee", "Flee", true));
            bufftype.Add(new MenuBool("Suppression", "Suppression", true));
            bufftype.Add(new MenuBool("Taunt", "Taunt", true));
            bufftype.Add(new MenuBool("Blind", "Blind", true));
            cleansers.Add(bufftype);

            activator.Add(cleansers);

            #endregion

            Config.Add(activator);

            Game.OnUpdate                += Game_OnUpdate;
            Spellbook.OnCastSpell        += Spellbook_OnCastSpell;
            AIBaseClient.OnDoCast        += AIBaseClient_OnDoCast;
            Variables.Orbwalker.OnAction += Orbwalker_OnAction;
        }