Exemplo n.º 1
0
        static void Game_OnGameLoad()
        {
            switch (ObjectManager.Player.Hero)
            {
            case EloBuddy.Champion.Vayne:
                Champion = new Vayne();
                break;
            }

            Champion.CreateConfigMenu();
            Champion.SetSpells();

            #region Events
            Game.OnUpdate                      += Champion.Game_OnUpdate;
            Orbwalking.BeforeAttack            += Champion.Orbwalking_BeforeAttack;
            AntiGapcloser.OnEnemyGapcloser     += Champion.AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Champion.Interrupter_OnPossibleToInterrupt;
            Obj_AI_Base.OnBuffGain             += Champion.Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnProcessSpellCast     += Champion.Obj_AI_Base_OnProcessSpellCast;
            #endregion



            Notifications.AddNotification(String.Format("HikiCarry Vayne Masterrace - {0} Loaded !", ObjectManager.Player.ChampionName), 3000);
        }
Exemplo n.º 2
0
        static void Game_OnGameLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != "Morgana")
            {
                return;
            }

            Champion = new Morgana();

            Champion.CreateConfigMenu();
            Champion.SetSpells();

            if (Champion.Spells[0] != null && Champion.Spells[0].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWQ", "Draw Q").SetValue(new Circle(true, Color.Red, Champion.Spells[0].Range)));
            }

            if (Champion.Spells[1] != null && Champion.Spells[1].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWW", "Draw W").SetValue(new Circle(true, Color.Aqua, Champion.Spells[1].Range)));
            }

            if (Champion.Spells[2] != null && Champion.Spells[2].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWE", "Draw E").SetValue(new Circle(true, Color.Bisque, Champion.Spells[2].Range)));
            }

            if (Champion.Spells[3] != null && Champion.Spells[3].Range > 0 && Champion.Spells[3].Range < 3000) //global ult ?
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWR", "Draw R").SetValue(new Circle(true, Color.Chartreuse, Champion.Spells[3].Range)));
            }

            #region Events
            Game.OnUpdate                      += Champion.Game_OnUpdate;
            Drawing.OnDraw                     += Champion.Drawing_OnDraw;
            Orbwalking.BeforeAttack            += Champion.Orbwalking_BeforeAttack;
            Orbwalking.AfterAttack             += Champion.Orbwalking_AfterAttack;
            AntiGapcloser.OnEnemyGapcloser     += Champion.AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Champion.Interrupter_OnPossibleToInterrupt;
            Obj_AI_Base.OnBuffAdd              += Champion.Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnProcessSpellCast     += Champion.Obj_AI_Base_OnProcessSpellCast;
            #endregion

            SPrediction.Prediction.Initialize(Champion.Config);

            Notifications.AddNotification(String.Format("Synx - {0} Loaded !", ObjectManager.Player.ChampionName), 3000);
        }
Exemplo n.º 3
0
 static void Game_OnGameLoad()
 {
     if (ObjectManager.Player.ChampionName == "Ekko")
     {
         Champion = new Ekko();
         Champion.CreateConfigMenu();
         Champion.SetSpells();
         SPrediction.Prediction.Initialize(Champion.Config);
         Notifications.AddNotification(String.Format("HikiCarry Ekko Loaded !"), 3000);
         Notifications.AddNotification(String.Format("Dont Forget Upvote on"), 4000);
         Notifications.AddNotification(String.Format("Assembly.DB"), 5000);
     }
     else
     {
         return;
     }
 }
Exemplo n.º 4
0
        static void Game_OnGameLoad(EventArgs args)
        {
            switch (ObjectManager.Player.ChampionName.ToLowerInvariant())
            {
            case "vayne":
                Champion = new Vayne();
                break;
            }

            Champion.CreateConfigMenu();
            Champion.SetSpells();

            if (Champion.Spells[0] != null && Champion.Spells[0].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWQ", "Draw Q").SetValue(new Circle(true, Color.Red, Champion.Spells[0].Range)));
            }

            if (Champion.Spells[1] != null && Champion.Spells[1].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWW", "Draw W").SetValue(new Circle(true, Color.Aqua, Champion.Spells[1].Range)));
            }

            if (Champion.Spells[2] != null && Champion.Spells[2].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWE", "Draw E").SetValue(new Circle(true, Color.Bisque, Champion.Spells[2].Range)));
            }

            if (Champion.Spells[3] != null && Champion.Spells[3].Range > 0 && Champion.Spells[3].Range < 3000) //global ult ?
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWR", "Draw R").SetValue(new Circle(true, Color.Chartreuse, Champion.Spells[3].Range)));
            }

            #region Events
            Game.OnUpdate                      += Champion.Game_OnUpdate;
            Orbwalking.BeforeAttack            += Champion.Orbwalking_BeforeAttack;
            AntiGapcloser.OnEnemyGapcloser     += Champion.AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Champion.Interrupter_OnPossibleToInterrupt;
            Obj_AI_Base.OnBuffAdd              += Champion.Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnProcessSpellCast     += Champion.Obj_AI_Base_OnProcessSpellCast;
            #endregion



            Notifications.AddNotification(String.Format("HikiCarry Vayne Masterrace - {0} Loaded !", ObjectManager.Player.ChampionName), 3000);
        }
Exemplo n.º 5
0
        public static void Game_OnGameLoad()
        {
            switch (ObjectManager.Player.ChampionName.ToLowerInvariant())
            {
            case "ezreal":
                Champion = new Ezreal();
                break;

            case "morgana":
                Champion = new Morgana();
                break;

            case "blitzcrank":
                Champion = new ShineSharp.Champions.Blitzcrank();
                break;

            case "sivir":
                Champion = new Sivir();
                break;

            case "amumu":
                Champion = new Amumu();
                break;
            }

            Champion.CreateConfigMenu();
            Champion.SetSpells();

            if (Champion.Spells[0] != null && Champion.Spells[0].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWQ", "Draw Q").SetValue(new Circle(true, Color.Red, Champion.Spells[0].Range)));
            }

            if (Champion.Spells[1] != null && Champion.Spells[1].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWW", "Draw W").SetValue(new Circle(true, Color.Aqua, Champion.Spells[1].Range)));
            }

            if (Champion.Spells[2] != null && Champion.Spells[2].Range > 0)
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWE", "Draw E").SetValue(new Circle(true, Color.Bisque, Champion.Spells[2].Range)));
            }

            if (Champion.Spells[3] != null && Champion.Spells[3].Range > 0 && Champion.Spells[3].Range < 3000) //global ult ?
            {
                Champion.drawing.AddItem(new MenuItem("DDRAWR", "Draw R").SetValue(new Circle(true, Color.Chartreuse, Champion.Spells[3].Range)));
            }

            #region Events
            Game.OnUpdate                      += Champion.Game_OnUpdate;
            Drawing.OnDraw                     += Champion.Drawing_OnDraw;
            Orbwalking.BeforeAttack            += Champion.Orbwalking_BeforeAttack;
            Orbwalking.AfterAttack             += Champion.Orbwalking_AfterAttack;
            AntiGapcloser.OnEnemyGapcloser     += Champion.AntiGapcloser_OnEnemyGapcloser;
            Interrupter2.OnInterruptableTarget += Champion.Interrupter_OnPossibleToInterrupt;
            Obj_AI_Base.OnBuffGain             += Champion.Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnSpellCast            += Champion.Obj_AI_Base_OnProcessSpellCast;
            #endregion

            SPrediction.Prediction.Initialize(Champion.Config);

            Notifications.AddNotification(String.Format("Shine# - {0} Loaded !", ObjectManager.Player.ChampionName), 3000);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Prepares the server to start
        /// </summary>
        /// <param name="ipEndPoint">Server ip and port</param>
        /// <param name="serverKey">The server key to join</param>
        /// <param name="teamBluePlayers">The players on the blue team</param>
        /// <param name="teamRedPlayers">The players on the red team</param>
        public GameInitializer(IPEndPoint ipEndPoint, string serverKey, List <PlayerInitJson> teamBluePlayers, List <PlayerInitJson> teamRedPlayers)
        {
            //Load team players in
            _bluePlayers = teamBluePlayers;
            _redPlayers  = teamRedPlayers;

            //Stop the program from closing
            Console.CancelKeyPress += ConsoleOnCancelKeyPress;

            //Add the users to the database
            foreach (var basicPlayer in teamBluePlayers)
            {
                GlobalData.TeamOnePlayers.Add(new Player
                {
                    //Load champion id
                    ChampId = basicPlayer.ChampId,

                    //Load champion data
                    PlayerChamp = new PlayerChamp
                    {
                        BaseChamp = BaseChamp.GetFromId(basicPlayer.ChampId)
                    },

                    //Load player username
                    Username = basicPlayer.Username,

                    //Load player user id
                    UserId = basicPlayer.UserId
                });
            }

            //Add the users to the database
            foreach (var basicPlayer in teamRedPlayers)
            {
                GlobalData.TeamOnePlayers.Add(new Player
                {
                    //Load champion id
                    ChampId = basicPlayer.ChampId,

                    //Load champion data
                    PlayerChamp = new PlayerChamp
                    {
                        BaseChamp = BaseChamp.GetFromId(basicPlayer.ChampId)
                    },

                    //Load player username
                    Username = basicPlayer.Username,

                    //Load player user id
                    UserId = basicPlayer.UserId
                });
            }

            //Create the server
            Server = new UdpClient(ipEndPoint);

            //Create the key
            var key = Convert.ToBase64String(Encoding.ASCII.GetBytes(serverKey));

            if (key.Length <= 0)
            {
                //Tells that server is not accepting connections
                Initialized = false;

                //Close the server
                Server.Close();
                return;
            }
            //Server can be allowed to accept connections
            Initialized = true;

            //Because why not
            Server.EnableBroadcast = true;

            //Load encryption
            BlowFish = new BlowFish(Encoding.ASCII.GetBytes(key));
        }