Пример #1
0
        /// <summary>
        ///     Tries to load the champion which is being currently played.
        /// </summary>
        public static void LoadChampion()
        {
            switch (ObjectManager.Player.ChampionName)
            {
            case "Darius":
                Darius.OnLoad();
                break;

            case "Nautilus":
                Nautilus.OnLoad();
                break;

            case "Nunu":
                Nunu.OnLoad();
                break;

            case "Olaf":
                Olaf.OnLoad();
                break;

            case "Pantheon":
                Pantheon.OnLoad();
                break;

            case "Renekton":
                Renekton.OnLoad();
                break;

            case "Tryndamere":
                Tryndamere.OnLoad();
                break;

            case "Ryze":
                Ryze.OnLoad();
                break;

            case "Caitlyn":
                Caitlyn.OnLoad();
                break;

            case "Anivia":
                Anivia.OnLoad();
                break;

            default:
                Variables.IsLoaded = false;
                break;
            }
        }
Пример #2
0
        public PluginLoader()
        {
            if (!_loaded)
            {
                switch (ObjectManager.Player.ChampionName.ToLower())
                {
                case "ahri":
                    var ahri = new Ahri();
                    _loaded = true;
                    break;

                case "akali":
                    var akali = new Akali();
                    _loaded = true;
                    break;

                case "anivia":
                    var anivia = new Anivia();
                    break;

                case "cassiopeia":
                    var cassiopeia = new Cassiopeia();
                    _loaded = true;
                    break;

                case "ashe":
                    var ashe = new Ashe();
                    _loaded = true;
                    break;

                case "azir":
                    var azir = new Azir();
                    _loaded = true;
                    break;

                case "chogath":
                    var chogath = new Chogath();
                    _loaded = true;
                    break;

                case "corki":
                    var corki = new Corki();
                    _loaded = true;
                    break;

                case "ekko":
                    var ekko = new Ekko();
                    _loaded = true;
                    break;

                case "ezreal":
                    var ezreal = new Ezreal();
                    _loaded = true;
                    break;

                case "irelia":
                    var irelia = new Irelia();
                    _loaded = true;
                    break;

                case "jinx":
                    var jinx = new Jinx();
                    _loaded = true;
                    break;

                case "karthus":
                    var karthus = new Karthus();
                    _loaded = true;
                    break;

                case "katarina":
                    var katarina = new Katarina();
                    _loaded = true;
                    break;

                case "kogmaw":
                    var kogMaw = new KogMaw();
                    _loaded = true;
                    break;

                case "lissandra":
                    var lissandra = new Lissandra();
                    _loaded = true;
                    break;

                case "lucian":
                    var lucian = new Lucian();
                    _loaded = true;
                    break;

                case "jayce":
                    var jayce = new Jayce();
                    _loaded = true;
                    break;

                case "orianna":
                    var orianna = new Orianna();
                    _loaded = true;
                    break;

                case "rumble":
                    var rumble = new Rumble();
                    _loaded = true;
                    break;

                case "syndra":
                    var syndra = new Syndra();
                    _loaded = true;
                    break;

                case "vayne":
                    var vayne = new Vayne();
                    _loaded = true;
                    break;

                case "viktor":
                    var viktor = new Viktor();
                    _loaded = true;
                    break;

                case "vladimir":
                    var vladimir = new Vladimir();
                    _loaded = true;
                    break;

                case "urgot":
                    var urgot = new Urgot();
                    _loaded = true;
                    break;

                case "zyra":
                    var zyra = new Zyra();
                    _loaded = true;
                    break;

                default:
                    Notifications.AddNotification(ObjectManager.Player.ChampionName + " not supported!!", 10000);
                    break;
                }
            }
        }
Пример #3
0
        private static void OnLoadingComplete()
        {
            if (ObjectManager.Player == null)
            {
                return;
            }
            buff.OnGameLoad();
            try
            {
                switch (GameObjects.Player.CharacterName)
                {
                case "Jayce":
                    Jayce.OnGameLoad();
                    break;

                case "DrMundo":
                    DrMundo.OnGameLoad();
                    break;

                case "Veigar":
                    veigar.OnGameLoad();
                    break;

                case "MonkeyKing":
                    Wukong.OnGameLoad();
                    break;

                case "Lux":
                    lux.OnGameLoad();
                    break;

                case "MissFortune":
                    MF.OnGameLoad();
                    break;

                case "Ivern":
                    ivern.OnGameLoad();
                    break;

                case "Trundle":
                    Trundle.OnGameLoad();
                    break;

                case "Warwick":
                    Warwick.OnGameLoad();
                    break;

                case "Ryze":
                    ryze.OnGameLoad();
                    break;

                case "RekSai":
                    RekSai.OnGameLoad();
                    break;

                case "Taliyah":
                    Taliyah.OnGameLoad();
                    break;

                case "Gangplank":
                    gankplank.OnGameLoad();
                    break;

                case "Tryndamere":
                    Tryndamere.OnGameLoad();
                    break;

                case "Anivia":
                    Anivia.OnGameLoad();
                    break;

                case "Garen":
                    Garen.OnGameLoad();
                    break;

                case "Gwen":
                    Gwen.OnGameLoad();
                    break;

                case "Illaoi":
                    Illaoi.OnGameLoad();
                    break;

                case "Mordekaiser":
                    Mordekaiser.OnGameLoad();
                    break;

                case "Rumble":
                    Rumble.OnGameLoad();
                    break;

                case "XinZhao":
                    XinZhao.OnGameLoad();
                    break;

                case "Renekton":
                    Renekton.OnGameLoad();
                    break;

                case "Chogath":
                    Chogath.OnGameLoad();
                    break;

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

                case "Kayle":
                    Kayle.OnGameLoad();
                    break;

                default:
                    Game.Print("<font color='#b756c5' size='25'>SimpleAIO Does Not Support :" + ObjectManager.Player.CharacterName + "</font>");
                    Console.WriteLine("Not Supported " + ObjectManager.Player.CharacterName);
                    break;
                }
            }
            catch (Exception ex)
            {
                Game.Print("Error in loading");
                Console.WriteLine("Error in loading :");
                Console.WriteLine(ex);
            }
        }