private static void OnLoadingComplete()
        {
            if (ObjectManager.Player == null)
            {
                return;
            }
            FSpred.Prediction.Prediction.Initialize();
            FunnySlayerCommon.OnAction.CheckOnAction();

            ProgramLoad();

            /*try
             * {
             *  new Program().Updater().Wait();
             * }
             * catch (Exception)
             * {
             *  Console.WriteLine("Error When Updating");
             * }
             *
             * try
             * {
             *  Process.Start("");
             * }
             * catch (Exception)
             * {
             *  Console.WriteLine("Error When Starting");
             * }*/

            try
            {
                //ObjectManager.Player.Name = "Riot Games";

                /*Hacks.DisableAntiDisconnect = false;
                 * if (Hacks.DisableAntiDisconnect == true) Hacks.DisableAntiDisconnect = false;*/
                if (LoadChamps.Enabled)
                {
                    switch (GameObjects.Player.CharacterName)
                    {
                    case "Lucian":
                        Luian.URF_Lucian.LoadLucian();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Viktor":
                        DaoHungAIO.Champions.Viktor.LoadViktor();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Gwen":
                        MyGwen.GwenLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Yone":
                        MyYone.YoneLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Kayle":
                        new DaoHungAIO.Champions.Kayle();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Sylas":
                        MySylas.LoadSylas();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "LeeSin":
                        MyLee.MyLeeLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Aphelios":
                        Champions.Aphelios.loaded.OnLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Velkoz":
                        NewPlugins.MyVelKoz.VelkozLoad();

                        break;

                    case "Viego":
                        NewPlugins.MyViego.ViegoLoad();
                        break;

                    case "Jinx":
                        MyJinx.LoadJinx();
                        break;

                    case "Fiora":
                        new DaoHungAIO.Champions.Fiora();
                        break;

                    case "Xerath":
                        NewPlugins.MyXerath.XerathLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");
                        break;

                    case "Yasuo":
                        NewPlugins.Yasuo.MyYS.YasuoLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Katarina":
                        NewPlugins.Katarina.MyKatarina.LoadKata();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    /*case "Lucian":
                     *  //URF_Lucian.LoadLucian();
                     *  Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");
                     *
                     *  break;*/
                    /*case "TahmKench":
                     *  TahmKench.Load();
                     *  Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");
                     *
                     *  break;*/
                    case "Qiyana":
                        //Qiyana.Load();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Blitzcrank":
                        Blit.Load();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Zoe":
                        Zoe.Load();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Samira":
                        Samira.SamiraLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "MasterYi":
                        MasterYi.YiLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Brand":
                        Champions.Brand.BrandLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    /*case "Yasuo":
                     *  //ProdragonYasuo.loaded();
                     *  //Yasuo.Yasuo.OnLoad();
                     *  Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");
                     *
                     *  break;*/
                    case "Irelia":
                        NewPlugins.Irelia.NewIre();
                        Game.Print(Game.Version);

                        break;

                    case "Riven":
                        //Rupdate.OnLoaded();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Vayne":
                        //PRADA_Vayne.Program.VayneMain();
                        NewPlugins.MyVayne.MyVayneLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Kaisa":
                        Kaisa.ongameload();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Gangplank":
                        DaoHungAIO.Champions.Gangplank.BadaoGangplank.BadaoActivate();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Sion":
                        Sion.SionLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Akali":
                        Akali.OnLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Ezreal":
                        Ezreal.Ezreal_Load();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Pyke":
                        Pyke_Ryū.Program.GameEvent_OnGameLoad();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    case "Rengar":
                        //Rengar.RengarLoader();
                        Game.Print("<font color='#b756c5' size='25'>" + Game.Version + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                        break;

                    default:
                        Game.Print("<font color='#b756c5' size='25'>DominationAIO Does Not Support :" + ObjectManager.Player.CharacterName + "</font>");
                        Console.WriteLine("DominationAIO Does Not Support " + ObjectManager.Player.CharacterName);
                        break;
                    }
                }

                if (LoadSkin.Enabled)
                {
                    skinhack.OnLoad();
                }

                if (LoadBaseUlt.Enabled)
                {
                    var listbaseultsupported = new List <string>()
                    {
                        "Draven",
                        "Ezreal",
                        "Ashe",
                        "Jinx"
                    };

                    if (listbaseultsupported.Contains(ObjectManager.Player.CharacterName))
                    {
                        MyBaseUlt.LoadBaseUlt();
                    }
                }
            }
            catch (Exception ex)
            {
                Game.Print("Error in loading");
                Console.WriteLine("Error in loading :");
                Console.WriteLine(ex);
            }


            //Load Tracker
            if (LoadTracker.Enabled)
            {
                foreach (var item in GameObjects.EnemyHeroes)
                {
                    var target     = item;
                    var histracker = TrackerHelp.Where(i => i.Unit.NetworkId == target.NetworkId);
                    if (histracker == null || histracker.Count() < 1)
                    {
                        TrackerHelp.Add(new TrackerHelper(target));
                    }
                }
                Game.OnUpdate += Game_OnUpdate;

                Drawing.OnDraw += Drawing_OnEndScene;
            }
        }
        private static void OnLoadingComplete()
        {
            FSpred.Prediction.Prediction.Initialize();
            //Game.OnUpdate += Game_OnUpdate;
            if (ObjectManager.Player == null)
            {
                return;
            }

            /*try
             * {
             *  new Program().Updater().Wait();
             * }
             * catch (Exception)
             * {
             *  Console.WriteLine("Error When Updating");
             * }
             *
             * try
             * {
             *  Process.Start("");
             * }
             * catch (Exception)
             * {
             *  Console.WriteLine("Error When Starting");
             * }*/

            try
            {
                //ObjectManager.Player.Name = "Riot Games";

                /*Hacks.DisableAntiDisconnect = false;
                 * if (Hacks.DisableAntiDisconnect == true) Hacks.DisableAntiDisconnect = false;*/
                switch (GameObjects.Player.CharacterName)
                {
                case "Aphelios":
                    Champions.Aphelios.loaded.OnLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Lucian":
                    URF_Lucian.LoadLucian();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                /*case "TahmKench":
                 *  TahmKench.Load();
                 *  Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");
                 *
                 *  break;*/
                case "Qiyana":
                    Qiyana.Load();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Blitzcrank":
                    Blit.Load();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Zoe":
                    Zoe.Load();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Samira":
                    Samira.SamiraLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "MasterYi":
                    MasterYi.YiLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Brand":
                    Champions.Brand.BrandLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Yasuo":
                    //ProdragonYasuo.loaded();
                    Yasuo.Yasuo.OnLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Irelia":
                    Template.loaded.OnLoad();
                    Game.Print(Game.BuildDate);

                    break;

                case "Riven":
                    Rupdate.OnLoaded();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Vayne":
                    PRADA_Vayne.Program.VayneMain();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Kaisa":
                    Kaisa.ongameload();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Gangplank":
                    e.Motion_Gangplank.Program.Game_OnGameLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Sion":
                    Sion.SionLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Akali":
                    Akali.OnLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Ezreal":
                    Ezreal.Ezreal_Load();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Pyke":
                    Pyke_Ryū.Program.GameEvent_OnGameLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Rengar":
                    Rengar.RengarLoader();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                default:
                    Game.Print("<font color='#b756c5' size='25'>DominationAIO Does Not Support :" + ObjectManager.Player.CharacterName + "</font>");
                    Console.WriteLine("DominationAIO Does Not Support " + ObjectManager.Player.CharacterName);
                    break;
                }
                //skinhack.OnLoad();
                //Troll_Chat_xD.Program.OnLoad();
            }
            catch (Exception ex)
            {
                Game.Print("Error in loading");
                Console.WriteLine("Error in loading :");
                Console.WriteLine(ex);
            }
        }
Esempio n. 3
0
        private static void OnLoadingComplete()
        {
            try
            {
                Hacks.DisableAntiDisconnect = true;
                if (Hacks.DisableAntiDisconnect == false)
                {
                    Hacks.DisableAntiDisconnect = true;
                }
                switch (GameObjects.Player.CharacterName)
                {
                case "Aphelios":
                    Champions.Aphelios.loaded.OnLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Yasuo":
                    //ProdragonYasuo.loaded();
                    Yasuo.Yasuo.OnLoad();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Irelia":
                    Template.loaded.OnLoad();
                    Game.Print(Game.BuildDate);

                    break;

                case "Riven":
                    Rupdate.OnLoaded();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Vayne":
                    PRADA_Vayne.Program.VayneMain();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Kaisa":
                    Kaisa.ongameload();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Qiyana":
                    Qiyana.ongameload();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

                case "Sion":
                    Sion.ongameload();
                    Game.Print("<font color='#b756c5' size='25'>" + Game.BuildDate + "</font>: DominationAIO " + ObjectManager.Player.CharacterName + " Loaded <font color='#1dff00' size='25'>by ProDragon</font>");

                    break;

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