Exemplo n.º 1
0
        private static void onLoad(EventArgs args)
        {
            Game.PrintChat("HypaJungle by DeTuKs");
            try
            {
                ConfigLoader.setupFolders(JungleClearer.supportedChamps);

                if (!JungleClearer.supportedChamps.Contains(player.ChampionName))
                {
                    Game.PrintChat("Sory this champion is not supported yet! go vote for it in forum ;)");
                    return;
                }


                jTimer = new JungleManager();

                Config = new Menu("HypeJungle", "hype", true);

                setChampMenu(player.ChampionName);

                //  Config.AddSubMenu(new Menu("Jungler Config", "junglerCon"));
                // Config.SubMenu("junglerCon").AddItem(new MenuItem("blabla", "Relead to work!")).SetValue(true);
                //  Config.SubMenu("junglerCon").AddItem(new MenuItem("useDefConf", "Use Default Config")).SetValue(true);
                //  Config.SubMenu("junglerCon").AddItem(new MenuItem("fileConfigHypa", "")).SetValue(ConfigLoader.getChampionConfigs(player.ChampionName));
                Config.AddSubMenu(new Menu("Jungler", "jungler"));
                Config.SubMenu("jungler").AddItem(new MenuItem("doJungle", "Do jungle")).SetValue(new KeyBind('J', KeyBindType.Toggle));
                Config.SubMenu("jungler").AddItem(new MenuItem("stopJungle", "Stop when press(combo)")).SetValue(new KeyBind(32, KeyBindType.Press));
                Config.SubMenu("jungler").AddItem(new MenuItem("skipSpawn", "Debug skip")).SetValue(new KeyBind('G', KeyBindType.Press));
                Config.SubMenu("jungler").AddItem(new MenuItem("autoLVL", "Auto Level")).SetValue(true);
                Config.SubMenu("jungler").AddItem(new MenuItem("autoBuy", "Auto Buy")).SetValue(true);

                Config.AddSubMenu(new Menu("Jungle CLeaning", "jungleCleaning"));
                Config.SubMenu("jungleCleaning").AddItem(new MenuItem("smiteToKill", "smite to kill")).SetValue(false);
                Config.SubMenu("jungleCleaning").AddItem(new MenuItem("enemyJung", "do Enemy jungle")).SetValue(false);
                Config.SubMenu("jungleCleaning").AddItem(new MenuItem("doCrabs", "do Crabs")).SetValue(false);
                Config.SubMenu("jungleCleaning").AddItem(new MenuItem("getOverTime", "Get everyone OverTimeDmg")).SetValue(false);
                Config.SubMenu("jungleCleaning").AddItem(new MenuItem("checkKillability", "Check if can kill camps")).SetValue(false);

                Config.AddSubMenu(new Menu("Drawings", "draw"));
                Config.SubMenu("draw").AddItem(new MenuItem("drawStuff", "Draw??")).SetValue(false);


                Config.AddSubMenu(new Menu("Debug stuff", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("debugOn", "Debug stuff")).SetValue(new KeyBind('A', KeyBindType.Press));
                Config.SubMenu("debug").AddItem(new MenuItem("showPrio", "Show priorities")).SetValue(false);

                Config.AddToMainMenu();



                Game.OnGameUpdate           += OnGameUpdate;
                Drawing.OnDraw              += onDraw;
                CustomEvents.Unit.OnLevelUp += OnLevelUp;

                Game.OnGameProcessPacket += Game_OnGameProcessPacket;
                JungleClearer.setUpJCleaner();

                //Load custom stuff
                if (!Config.Item("useDefConf_" + player.ChampionName).GetValue <bool>())
                {
                    ConfigLoader.loadNewConfigHypa(
                        Config.Item("fileConfigHypa2_" + player.ChampionName).GetValue <StringList>().SList[
                            Config.Item("fileConfigHypa2_" + player.ChampionName).GetValue <StringList>().SelectedIndex]);
                }

                JungleClearer.jungler.setFirstLvl();
            }
            catch (Exception ex)
            {
                Game.PrintChat("Oops. Something went wrong with HypaJungle");
                Console.WriteLine(ex);
            }
        }
Exemplo n.º 2
0
 public static void setChampMenu(string champ)
 {
     Config.AddSubMenu(new Menu(champ + " Config", "junglerCon" + champ));
     Config.SubMenu("junglerCon" + champ).AddItem(new MenuItem("blabla_" + champ, "Relead to work!")).SetValue(true);
     Config.SubMenu("junglerCon" + champ).AddItem(new MenuItem("useDefConf_" + champ, "Use Default Config")).SetValue(true);
     Config.SubMenu("junglerCon" + champ).AddItem(new MenuItem("fileConfigHypa2_" + champ, "")).SetValue(ConfigLoader.getChampionConfigs(player.ChampionName));
 }