Exemplo n.º 1
0
        public override void Game_OnInput(LeagueSharp.GameInputEventArgs args)
        {
            if (!ModEnabled)
            {
                return;
            }

            if (args.Input.ToLowerInvariant() == "f**k")
            {
                args.Process = false;
                Game.Say("cookies");
            }
            else if (args.Input.ToLowerInvariant().Contains("f**k"))
            {
                args.Process = false;
                Game.Say("i like ponies");
            }
            else if (args.Input.ToLowerInvariant().Contains("shit"))
            {
                args.Process = false;
                Game.Say("pancake");
            }
            else if (args.Input.ToLowerInvariant().Contains("nigger"))
            {
                args.Process = false;
                Game.Say("i am such a nice person!");
            }
            else if (args.Input.ToLowerInvariant().Contains("report"))
            {
                args.Process = false;
                Game.Say("good job guys, we'll win this!");
            }
            else if (args.Input.ToLowerInvariant().Contains("ass"))
            {
                args.Process = false;
                Game.Say("i do like me some ice cream");
            }
            else if (args.Input.ToLowerInvariant().Contains("pussy") ||
                     args.Input.ToLowerInvariant().Contains("v****a") ||
                     args.Input.ToLowerInvariant().Contains("dick") ||
                     args.Input.ToLowerInvariant().Contains("penis"))
            {
                args.Process = false;
                Game.Say("hi guys");
            }
            else if (args.Input.ToUpperInvariant() == args.Input && Config.Item("caps").GetValue <bool>())
            {
                args.Process = false;
                Game.Say(args.Input.ToLowerInvariant());
            }
        }
Exemplo n.º 2
0
        public override void Game_OnInput(LeagueSharp.GameInputEventArgs args)
        {
            /*if (!Config.Item("eu.Skin Changer.enabled").GetValue<bool>() || args.Input != string.Empty)
             * {
             *  Notifications.OnModelChanged("nob");
             *  foreach (var item in Config.Items)
             *  {
             *      Console.Write(item.Name + "|" + item.DisplayName);
             *  }
             *  return;
             * }
             */
            try
            {
                var trial = args.Input + " ";
                if (args.Input.StartsWith("#"))
                {
                    args.Process = false;
                    string[] cmdargs = trial.Split(' ');

                    if (cmdargs[0].Equals("#setskin"))
                    {
                        if (cmdargs[2] != string.Empty)
                        {
                            foreach (var hero in HeroManager.AllHeroes)
                            {
                                if (cmdargs[2].ToLowerInvariant() == hero.ChampionName.ToLowerInvariant() ||
                                    hero.Name.ToLowerInvariant().StartsWith(cmdargs[2].ToLowerInvariant()))
                                {
                                    hero.SetSkin(hero.BaseSkinName, Convert.ToInt32(cmdargs[1]));
                                    Notifications.OnSkinChanged(Convert.ToInt32(cmdargs[1]).ToString());
                                }
                            }
                        }
                        else
                        {
                            Player.SetSkin(Player.BaseSkinName, Convert.ToInt32(cmdargs[1]));
                            Model = Player.BaseSkinName;
                            Skin  = Convert.ToInt32(cmdargs[1]);
                            Notifications.OnSkinChanged(Convert.ToInt32(cmdargs[1]).ToString());
                        }
                    }

                    else if (cmdargs[0].Equals("#setmodel"))
                    {
                        if (ModelList.Contains(cmdargs[1]))
                        {
                            if (cmdargs[2] != string.Empty)
                            {
                                foreach (var hero in HeroManager.AllHeroes)
                                {
                                    if (cmdargs[2].ToLowerInvariant() == hero.ChampionName.ToLowerInvariant() ||
                                        hero.Name.ToLowerInvariant().StartsWith(cmdargs[2].ToLowerInvariant()))
                                    {
                                        hero.SetSkin(cmdargs[1], 0);
                                        Notifications.OnModelChanged(cmdargs[1]);
                                    }
                                }
                            }
                            else
                            {
                                Model = cmdargs[1];
                                Skin  = 0;
                                Player.SetSkin(cmdargs[1], 0);
                            }
                        }
                        else
                        {
                            Notifications.OnFailedModel();
                        }
                    }
                    else if (cmdargs[0].Equals("#baron"))
                    {
                        if (args.Input.Contains("old"))
                        {
                            Model = "Worm";
                            Skin  = 0;
                            Player.SetSkin("Worm", 0);
                            Notifications.OnModelChanged("Worm");
                        }
                        else
                        {
                            Model = "SRU_Baron";
                            Skin  = 0;
                            Player.SetSkin("SRU_Baron", 0);
                            Notifications.OnModelChanged("SRU_Baron");
                        }
                    }
                    else if (cmdargs[0].Equals("#dragon"))
                    {
                        if (args.Input.Contains("old"))
                        {
                            Model = "Dragon";
                            Skin  = 0;
                            Player.SetSkin("Dragon", 0);
                            Notifications.OnModelChanged("Dragon");
                        }
                        else
                        {
                            Model = "SRU_Dragon";
                            Skin  = 0;
                            Player.SetSkin("SRU_Dragon", 0);
                            Notifications.OnModelChanged("SRU_Dragon");
                        }
                    }
                    else if (cmdargs[0].Equals("#spider"))
                    {
                        Model = "TT_Spiderboss";
                        Skin  = 0;
                        Player.SetSkin("TT_Spiderboss", 0);
                        Notifications.OnModelChanged("TT_Spiderboss");
                    }
                    else if (cmdargs[0].Equals("#red"))
                    {
                        if (args.Input.Contains("mini"))
                        {
                            Model = "SRU_RedMini";
                            Skin  = 0;
                            Player.SetSkin("SRU_RedMini", 0);
                            Notifications.OnModelChanged("SRU_RedMini");
                        }
                        else
                        {
                            Model = "SRU_Red";
                            Skin  = 0;
                            Player.SetSkin("SRU_Red", 0);
                            Notifications.OnModelChanged("SRU_Red");
                        }
                    }
                    else if (cmdargs[0].Equals("#blue"))
                    {
                        if (args.Input.Contains("mini"))
                        {
                            Model = "SRU_BlueMini";
                            Skin  = 0;
                            Player.SetSkin("SRU_BlueMini", 0);
                            Notifications.OnModelChanged("SRU_BlueMini");
                        }
                        else
                        {
                            Model = "SRU_Blue";
                            Skin  = 0;
                            Player.SetSkin("SRU_Blue", 0);
                            Notifications.OnModelChanged("SRU_Blue");
                        }
                    }
                    else if (cmdargs[0].Equals("#shroom") || cmdargs[0].Equals("#teemoshroom") || cmdargs[0].Equals("#mushroom"))
                    {
                        Model = "TeemoMushroom";
                        Skin  = 0;
                        Player.SetSkin("TeemoMushroom", 0);
                        Notifications.OnModelChanged("TeemoMushroom");
                    }
                    else if (cmdargs[0].Equals("#duck"))
                    {
                        Model = "Sru_Duck";
                        Skin  = 0;
                        Player.SetSkin("Sru_Duck", 0);
                        Notifications.OnModelChanged("Sru_Duck");
                    }
                    else if (cmdargs[0].Equals("#crab"))
                    {
                        Model = "Sru_Crab";
                        Skin  = 0;
                        Player.SetSkin("Sru_Crab", 0);
                        Notifications.OnModelChanged("Sru_Crab");
                    }
                    else if (cmdargs[0].Equals("#urf"))
                    {
                        Model = "Urf";
                        Skin  = 0;
                        Player.SetSkin("Urf", 0);
                        Notifications.OnModelChanged("Urf");
                    }
                    else
                    {
                        Notifications.OnFakeInput();
                        args.Process = false;
                    }
                }
            }
            catch (NullReferenceException e)
            {
                Console.Write(e.StackTrace + " || " + e.Message + " || " + e.Source);
            }
        }