Exemplo n.º 1
0
        public static void LoadPlugin()
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
            var plugin = Type.GetType("MAC.Plugin." + ObjectManager.Player.ChampionName);

            if (plugin == null)
            {
                Game.PrintChat(MiscControl.stringColor(ObjectManager.Player.ChampionName, MiscControl.TableColor.Red) + " not found. Loading OrbWalker");
                MiscControl.LoadOrbwalker();
                return;
            }
            else
            {
                Game.PrintChat(MiscControl.stringColor(ObjectManager.Player.ChampionName, MiscControl.TableColor.RoyalBlue) + " loaded, thanks for using MAC.");
            }

            Activator.CreateInstance(plugin);
        }
Exemplo n.º 2
0
        public static void LoadPlugin()
        {
            AppDomain.CurrentDomain.UnhandledException += CurrentDomainOnUnhandledException;
            var champname = ObjectManager.Player.BaseSkinName;

            if (champname == "Vayne")
            {
                new MAC.Plugin.Vayne();
            }
            else if (champname == "Graves")
            {
                new MAC.Plugin.Graves();
            }
            else if (champname == "Jinx")
            {
                new MAC.Plugin.Jinx();
            }
            else
            {
                Game.PrintChat(MiscControl.stringColor(ObjectManager.Player.ChampionName, MiscControl.TableColor.Red) + " not found. Loading OrbWalker...");
                MiscControl.LoadOrbwalker();
            }

            /*var plugin = Type.GetType("MAC.Plugin." + ObjectManager.Player.ChampionName);
             *
             *
             * FKIN SANDBOX SCRUB
             *
             *
             * if (plugin == null)
             * {
             *  Game.PrintChat(MiscControl.stringColor(ObjectManager.Player.ChampionName, MiscControl.TableColor.Red) + " not found. Loading OrbWalker");
             *  MiscControl.LoadOrbwalker();
             *  return;
             * }
             * else
             * {
             *  Game.PrintChat(MiscControl.stringColor(ObjectManager.Player.ChampionName, MiscControl.TableColor.RoyalBlue) + " loaded, thanks for using MAC.");
             * }
             *
             * Activator.CreateInstance(plugin);*/
        }