Beispiel #1
0
 static void Game_OnInput(ChatInputEventArgs args)
 {
     if (args.Input.StartsWith("."))
     {
         args.Process = false;
     }
     if (args.Input.StartsWith(".rename"))
     {
         var array       = args.Input.Split(' ');
         var profileName = array[1];
         var c           = GetCurrentProfile();
         if (!c.IsDefault)
         {
             var oldName = c.ProfileName;
             c.ProfileName = profileName;
             ShowNotification(string.Format("Renamed {0} to {1}", oldName, c.ProfileName), Color.AliceBlue, 6000);
             var currentlySel = GetItemValue <StringList>("dz191.vhr.ps.profile").SelectedIndex;
             var sList        = Profiles.Select(s => s.ProfileName).ToArray();
             Variables.Menu.Item("dz191.vhr.ps.profile").SetValue(new StringList(sList, currentlySel));
             SaveCurrentlySelected();
             SaveAssociations();
             Save();
         }
         else
         {
             ShowNotification("Cannot Rename Default Profiles", Color.AliceBlue, 6000);
         }
     }
 }
Beispiel #2
0
        private static void Chat_OnInput(ChatInputEventArgs args)
        {
            if (args.Input.Trim() == "/paste")
            {
                if (string.IsNullOrEmpty(Clipboard.GetText()))
                {
                    Chat.Print("Nice try Kappa - Clipboard is empty FeelsBadMan");
                }
                else
                {
                    args.Input = Clipboard.GetText();
                }
            }

            if (args.Input.Contains("_paste_"))
            {
                if (string.IsNullOrEmpty(Clipboard.GetText()))
                {
                    Chat.Print("Nice try Kappa - Clipboard is empty FeelsBadMan");
                }
                else
                {
                    args.Input = args.Input.Replace("_paste_", Clipboard.GetText());
                }
            }
        }
Beispiel #3
0
 void Chat_OnInput(ChatInputEventArgs args)
 {
     if(test!=null||!args.Input.Equals("/navgraph")) return;
     args.Process = false;
     test=new NavGraphTest(this);
 
 }
Beispiel #4
0
        private static void Chatted(ChatInputEventArgs args)
        {
            var msg = args.Input;

            int x;

            bool isNumeric = int.TryParse(msg, out x);
            if (isNumeric && isgtnon)
            {
                args.Process = false;
                if (Convert.ToInt32(msg) == rndnmb)
                {
                    isgtnon = false;
                    Print("You have guessed the number! Congratulations! Your chat has been enabled.");
                }
                else Print("Wrong number! Try again or type /stop to cease the game!");
                return;
            }

            if (!msg.StartsWith("/"))
                return;

            Random rnd = new Random();

            var splits = msg.Replace("/", string.Empty).ToLower().Split(' ');

            switch (splits[0].ToLower())
            {
                case "dice":
                    if (msg == "/dice")
                        Print("Alea iacta est: " + rnd.Next(1, 6).ToString());
                    else Print("Alea iacta est: " + rnd.Next(Convert.ToInt32(splits[1]), Convert.ToInt32(splits[2])).ToString());
                    args.Process = false;
                    break;
                case "gtn":
                    isgtnon = true;
                    if (msg != "/gtn")
                    {
                        rndnmb = rnd.Next(Convert.ToInt32(splits[1]), Convert.ToInt32(splits[2]));
                        Print("GuessTheNumber has started! You won't be allowed to chat numbers unless you say /stop or guess the number. Good luck!");
                    }
                    else
                    {
                        rndnmb = rnd.Next(1, 100);
                        Print("GuessTheNumber has started! You won't be allowed to chat numbers unless you say /stop or guess the number. Good luck! 1 - 100");
                    }
                    args.Process = false;
                    break;
                case "stop":
                    isgtnon = false;
                    args.Process = false;
                    break;
                case "randomfact":
                    Random r = new Random();
                    Print(randomfacts[r.Next(0, 193)]);
                    args.Process = false;
                    break;
            }
        }
Beispiel #5
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input == "/rework")
     {
         args.Process = false;
         System.Diagnostics.Process.Start("https://www.elobuddy.net/topic/6994-tblitz-reworked-revamped-notthesame/");
     }
 }
Beispiel #6
0
 private static void Chat_OnMessage(ChatInputEventArgs chatInputEventArgs)
 {
     if (chatInputEventArgs.Input.Equals("Load KappaEvade", StringComparison.CurrentCultureIgnoreCase))
     {
         chatInputEventArgs.Process = false;
         KappaEvade.KappaEvade.Init();
     }
 }
Beispiel #7
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input.Contains("/load"))
     {
         args.Process = false;
         Core.DelayAction(() => Chat.Print("Loading now", Color.BlueViolet), 200);
         Core.DelayAction(() => VersionChecked = true, 400);
     }
 }
Beispiel #8
0
        private static void Chat_OnInput(ChatInputEventArgs args)
        {
            args.Process = false;

            if (_allowed.Any(str => args.Input.StartsWith(str)))
            {
                args.Process = true;
            }
        }
Beispiel #9
0
 void Chat_OnInput(ChatInputEventArgs args)
 {
     if (test != null || !args.Input.Equals("/navgraph"))
     {
         return;
     }
     args.Process = false;
     test         = new NavGraphTest(this);
 }
Beispiel #10
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input.Contains("/load"))
     {
         args.Process = false;
         Core.DelayAction(() => Chat.Print("Loading now", Color.BlueViolet), 200);
         Core.DelayAction(() => VersionChecked = true, 400);
     }
 }
Beispiel #11
0
        private static void Chat_OnInput(ChatInputEventArgs args)
        {
            args.Process = false;

            if (_allowed.Any(str => args.Input.StartsWith(str)))
            {
                args.Process = true;
            }
        }
Beispiel #12
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input[0] == '.')
     {
         string[] cmd = args.Input.Split(' ');
         if (CMD.ExecuteCommand(cmd[0].Substring(1, cmd[0].Length - 1), cmd.Skip(1).ToArray()))
         {
             args.Process = false;
         }
     }
 }
Beispiel #13
0
        private static void Chat_OnInput(ChatInputEventArgs args)
        {
            if (!args.Input.Contains("/load"))
            {
                return;
            }

            args.Process = false;
            Core.DelayAction(() => Chat.Print("Loading " + Name + " now!", Color.GreenYellow), 200);
            Core.DelayAction(() => VersionChecked = true, 400);
        }
Beispiel #14
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (MainMenu.GetMenu("AB").Get<CheckBox>("lockchat").CurrentValue)
     {
         args.Process = false;
         if (_allowed.Any(str => args.Input.StartsWith(str)))
             args.Process = true;
     }
     else
     {
         args.Process = true;
     }
 }
Beispiel #15
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
       if (MainMenu.GetMenu("AutoBot").Get<CheckBox>("menu_game_abdisablechat").CurrentValue)
       {
           args.Process = false;
           if (_allowed.Any(str => args.Input.StartsWith(str)))
               args.Process = true;
       }
       else
       {
           args.Process = true;
       }
 }
Beispiel #16
0
 private static void ChatInputComing(ChatInputEventArgs args)
 {
     if (args.Input == "#IDDQD" && !MenuManager.IDDQD)
     {
         args.Input        = "";
         MenuManager.IDDQD = true;
         MenuManager.Modes.Gosu.SetGod();
     }
     else if (args.Input == "#IDDQD" && MenuManager.IDDQD)
     {
         args.Input = "";
     }
 }
Beispiel #17
0
 public static void OnCommand(ChatInputEventArgs args)
 {
     if (args.Input.ToLower().Equals("/aqr") || args.Input.ToLower().StartsWith("/aqr help"))
     {
         Chat.Print("/aqr pid - Get PID");
         Chat.Print("/aqr kill bot - Kill the AutoQueuer");
         Chat.Print("/aqr kill lol - Kill LoL");
         Chat.Print("/aqr kill all - Kill the Bot and LoL");
         Chat.Print("/aqr start - Launch Bot");
         Chat.Print("/aqr reload - Kill all then relaunch the Bot");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr pid"))
     {
         Chat.Print("League Of Legends PID: " + getLoLPID());
         Chat.Print("AutoQueuer PID: " + getBotPID());
         Chat.Print("Path: " + getBotPath());
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr kill bot"))
     {
         killBot();
         Chat.Print("Request sent");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr kill lol"))
     {
         killLoL();
         Chat.Print("Request sent");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr kill all"))
     {
         killBot();
         Chat.Print("Request sent");
         killLoL();
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr start"))
     {
         startBot();
         Chat.Print("Request sent");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr reload"))
     {
         reload();
         Chat.Print("Request sent");
         args.Process = false;
     }
 }
Beispiel #18
0
 public static void OnCommand(ChatInputEventArgs args)
 {
     if (args.Input.ToLower().Equals("/aqr") || args.Input.ToLower().StartsWith("/aqr help"))
     {
         Chat.Print("/aqr pid - Get PID");
         Chat.Print("/aqr kill bot - Kill the AutoQueuer");
         Chat.Print("/aqr kill lol - Kill LoL");
         Chat.Print("/aqr kill all - Kill the Bot and LoL");
         Chat.Print("/aqr start - Launch Bot");
         Chat.Print("/aqr reload - Kill all then relaunch the Bot");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr pid"))
     {
         Chat.Print("League Of Legends PID: " + getLoLPID());
         Chat.Print("AutoQueuer PID: " + getBotPID());
         Chat.Print("Path: " + getBotPath());
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr kill bot"))
     {
         killBot();
         Chat.Print("Request sent");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr kill lol"))
     {
         killLoL();
         Chat.Print("Request sent");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr kill all"))
     {
         killBot();
         Chat.Print("Request sent");
         killLoL();
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr start"))
     {
         startBot();
         Chat.Print("Request sent");
         args.Process = false;
     }
     else if (args.Input.ToLower().StartsWith("/aqr reload"))
     {
         reload();
         Chat.Print("Request sent");
         args.Process = false;
     }
 }
Beispiel #19
0
 private static void ChatInputComing(ChatInputEventArgs args)
 {
     if (args.Input == "#IDDQD" && !MenuManager.IDDQD)
     {
         args.Input = "";
         Chat.Print("Good luck Load Complete.");
         MenuManager.IDDQD = true;
         MenuManager.Modes.Gosu.SetGod();
     }
     else if (args.Input == "#IDDQD" && MenuManager.IDDQD)
     {
         args.Input = "";
     }
 }
Beispiel #20
0
 private static void ChatInputComing(ChatInputEventArgs args)
 {
     if(args.Input == "#IDDQD" && !MenuManager.IDDQD)
     {
         args.Input = "";
         Chat.Print("God have mercy of your soul.");
         MenuManager.IDDQD = true;
         MenuManager.Modes.Gosu.SetGod();
     }
     else if(args.Input == "#IDDQD" && MenuManager.IDDQD)
     {
         args.Input = "";
     }
 }
Beispiel #21
0
        private void Chat_OnInput(ChatInputEventArgs args)
        {
            if (args.Input.ToLower().StartsWith("/b "))
            {
                args.Process = false;
                string  itemName = args.Input.Substring(2);
                LoLItem i        = BrutalItemInfo.FindBestItem(itemName);
                Chat.Print("Buy " + i.name);

                if (myBuild.Count == 0 && !i.groups.Equals("RelicBase"))
                {
                    AddElement(BrutalItemInfo.GetItemByID(3340), ShopActionType.Buy);
                    Chat.Print("Added also warding totem.");
                }
                AddElement(i, ShopActionType.Buy);
                SaveBuild();
            }
            else if (args.Input.ToLower().StartsWith("/s "))
            {
                args.Process = false;
                string  itemName = args.Input.Substring(2);
                LoLItem i        = BrutalItemInfo.FindBestItemAll(itemName);
                Chat.Print("Sell " + i.name);

                AddElement(i, ShopActionType.Sell);
                SaveBuild();
            }
            else if (args.Input.ToLower().Equals("/buyhp"))
            {
                if (myBuild.Count == 0)
                {
                    AddElement(BrutalItemInfo.GetItemByID(3340), ShopActionType.Buy);
                    Chat.Print("Added also warding totem.");
                }
                AddElement(BrutalItemInfo.GetItemByID(2003), ShopActionType.StartHpPot);
                SaveBuild();
                args.Process = false;
            }
            else if (args.Input.ToLower().Equals("/stophp"))
            {
                if (myBuild.Count == 0)
                {
                    AddElement(BrutalItemInfo.GetItemByID(3340), ShopActionType.Buy);
                    Chat.Print("Added also warding totem.");
                }
                AddElement(BrutalItemInfo.GetItemByID(2003), ShopActionType.StopHpPot);
                SaveBuild();
                args.Process = false;
            }
        }
Beispiel #22
0
        private static void Chat_OnInput(ChatInputEventArgs args)
        {
            var message = "";

            message += args.Input;
            if (OutgoingText["EnabledOut"].Cast <CheckBox>().CurrentValue&&
                (ToArray[OutgoingText["OutFrom"].Cast <Slider>().CurrentValue] !=
                 ToArray[OutgoingText["OutTo"].Cast <Slider>().CurrentValue]))
            {
                TranslateAndSend(message);
                args.Process = false;
            }
            LastInput = message;
        }
Beispiel #23
0
            private static void OnGameInput(ChatInputEventArgs args)
            {
                if (args.Input == null)
                {
                    return;
                }
                var input = args.Input.ToLower();

                if (input.Equals("/weights reset", StringComparison.OrdinalIgnoreCase))
                {
                    args.Process = false;
                    RestoreDefaultWeights();
                }
            }
 void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input.Equals("/ng path"))
     {
         args.Process = false;
         _p           = _navGraph.FindPath2(ObjectManager.Player.Position, Game.CursorPos);
     }
     if (args.Input.Equals("/ng walk"))
     {
         args.Process = false;
         _p           = _navGraph.FindPath2(ObjectManager.Player.Position, Game.CursorPos);
         Game.OnTick += Game_OnTick;
     }
     if (args.Input.Equals("/ng save"))
     {
         args.Process = false;
         _navGraph.Save();
     }
     if (args.Input.Equals("/ng load"))
     {
         args.Process  = false;
         _selectedNode = -1;
         _p            = new List <Vector3>();
         _navGraph.Load();
     }
     if (args.Input.Equals("/ng clear"))
     {
         args.Process    = false;
         _navGraph.Nodes = new Node[0];
         _p            = new List <Vector3>();
         _selectedNode = -1;
     }
     if (args.Input.Equals("/ng show"))
     {
         args.Process = false;
         if (_drawon)
         {
             return;
         }
         Drawing.OnDraw += Drawing_OnDraw;
         _drawon         = true;
     }
     if (args.Input.Equals("/ng hide"))
     {
         args.Process    = false;
         Drawing.OnDraw -= Drawing_OnDraw;
         _drawon         = false;
     }
 }
Beispiel #25
0
        protected override void Volatile_OnChatInput(ChatInputEventArgs args)
        {
            switch (args.Input)
            {
            case "/save":
                SaveProfile();
                args.Process = false;
                break;

            case "/load":
                LoadProfile();
                args.Process = false;
                break;
            }
        }
Beispiel #26
0
 private static void OnChat(ChatInputEventArgs args)
 {
     if (Config["restrict"].Cast<CheckBox>().CurrentValue)
     {
         args.Process = false;
         return;
     }
     if (Config["filter"].Cast<CheckBox>().CurrentValue)
     {
         if (KnownCurseWords.Any(word => args.Input.Contains(word.ToUpper()) || args.Input.Contains(word.ToLower()) || args.Input.Contains(word)))
         {
             Chat.Print("Wow! You almost got yourself banned! NP. I saved ur ass this time.");
             args.Process = false;
         }
     }
 }
Beispiel #27
0
 private static void OnChat(ChatInputEventArgs args)
 {
     if (Config["restrict"].Cast <CheckBox>().CurrentValue)
     {
         args.Process = false;
         return;
     }
     if (Config["filter"].Cast <CheckBox>().CurrentValue)
     {
         if (KnownCurseWords.Any(word => args.Input.Contains(word.ToUpper()) || args.Input.Contains(word.ToLower()) || args.Input.Contains(word)))
         {
             Chat.Print("Wow! You almost got yourself banned! NP. I saved ur ass this time.");
             args.Process = false;
         }
     }
 }
Beispiel #28
0
        void Chat_OnInput(ChatInputEventArgs args)
        {
            if (args.Input.Equals("/ng path"))
            {
                args.Process = false;
                p = navGraph.FindPath2(ObjectManager.Player.Position, Game.CursorPos);
            }
            if (args.Input.Equals("/ng walk"))
            {
                args.Process = false;
                p = navGraph.FindPath2(ObjectManager.Player.Position, Game.CursorPos);
                Game.OnTick += Game_OnTick;
            }
            if (args.Input.Equals("/ng save"))
            {
                args.Process = false;
                navGraph.Save();
            }
            if (args.Input.Equals("/ng load"))
            {
                args.Process = false;
                selectedNode = -1;
                p = new List<Vector3>();
                navGraph.Load();
            }
            if (args.Input.Equals("/ng clear"))
            {
                args.Process = false;
                navGraph.Nodes=new Node[0];
                p = new List<Vector3>();
                selectedNode = -1;
            }
            if (args.Input.Equals("/ng show"))
            {
                args.Process = false;
                if(drawon) return;
                Drawing.OnDraw += Drawing_OnDraw;
                drawon = true;
            }
            if (args.Input.Equals("/ng hide"))
            {
                args.Process = false;
                Drawing.OnDraw-=Drawing_OnDraw;
                drawon = false;
            }

        }
Beispiel #29
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input.Contains("//buffs"))
     {
         args.Process = false;
         Chat.Print("Listing buffs:");
         foreach (var buff in Self.Buffs)
         {
             Chat.Print(buff.DisplayName);
         }
     }
     else if (args.Input.Contains("//sw"))
     {
         args.Process = false;
         Chat.Print("Spellweaving: " + States.Spellweaving);
     }
 }
Beispiel #30
0
        private static void OnChatInput(ChatInputEventArgs args)
        {
            if (args.Input == "//debugdraw")
            {
                DebugDrawings = !DebugDrawings;
                args.Process  = false;
            }

            if (args.Input == "//mrdmg")
            {
                args.Process = false;
                Chat.Print("PlayerMR: " + Player.Instance.FlatMagicReduction);
                foreach (var enemy in EntityManager.Heroes.Enemies)
                {
                    Chat.Print(enemy.ChampionName + ": " + Spells.GetEDamage(enemy));
                }
            }
        }
Beispiel #31
0
        private static void OnChatInput(ChatInputEventArgs args)
        {
            switch (args.Input)
            {
            case "/save":
                SaveProfile();
                args.Process = false;
                break;

            case "/load":
                LoadProfile();
                args.Process = false;
                break;

            case "/help":
                Chat.Print("Idk don't ask me");
                args.Process = false;
                break;
            }
        }
Beispiel #32
0
        static void Game_OnInput(ChatInputEventArgs args)
        {
            if (_Count < 0)
                _Count = 0;
            if ((_Count == 0) && (!args.Input.Equals("")))
            {
                args.Process = false;
                Chat.Print("Limit exceeded");
            }

            if (_allowed.Any(str => args.Input.StartsWith(str)))
            {
                args.Process = true;
            }
            if (!_allowed.Any(str => args.Input.StartsWith(str)) && (_Count > 0) && (!args.Input.Equals("")))
            {
                _Count--;
                args.Process = true;
            }
        }
Beispiel #33
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input.ToLower().StartsWith("/model "))
     {
         string[] splits = args.Input.Split(' ');
         if (IsValidModel(splits[1]))
         { Player.SetModel(splits[1]); Model = splits[1]; }
         else Chat.Print("ERROR: Unknown model.");
         args.Input = " ";
     }
     if (args.Input.ToLower().StartsWith("/skin "))
     {
         string[] splits = args.Input.Split(' ');
         try
         {
             var id = Convert.ToInt32(splits[1]);
             Player.SetSkin(Model, id);
             args.Input = " ";
         }
         catch { }
     }
 }
Beispiel #34
0
 private static void Chat_OnInput1(ChatInputEventArgs args)
 {
     bool alreadywarned = false;
     if (Strikes > 3 && CensorMenu["strikes"].Cast<CheckBox>().CurrentValue)
     { args.Input = " "; ChatWarning(); }
     else
     {
         if (CensorMenu["con"].Cast<CheckBox>().CurrentValue)
         {
             foreach (string word in CensoredWords)
             {
                 if (args.Input.ToLower().Contains(word) && !alreadywarned && CensorMenu["strikes"].Cast<CheckBox>().CurrentValue)
                 {
                     AddStrike();
                     ChatWarning();
                     alreadywarned = true;
                     args.Input = " ";
                 }
             }
         }
     }
 }
Beispiel #35
0
        static void Game_OnInput(ChatInputEventArgs args)
        {
            if (_Count < 0)
            {
                _Count = 0;
            }
            if ((_Count == 0) && (!args.Input.Equals("")))
            {
                args.Process = false;
                Chat.Print("Limit exceeded");
            }

            if (_allowed.Any(str => args.Input.StartsWith(str)))
            {
                args.Process = true;
            }
            if (!_allowed.Any(str => args.Input.StartsWith(str)) && (_Count > 0) && (!args.Input.Equals("")))
            {
                _Count--;
                args.Process = true;
            }
        }
Beispiel #36
0
        private static void OnInput(ChatInputEventArgs args)
        {
            if (Disabled)
            {
                args.Process = false;
                Chat.Print("Your Chat Is Permanently Disabled!");
            }

            var msg = args.Input;

            if (WordList.Any(x => msg.ToLower().Contains(x)))
            {
                args.Process = false;
                Chat.Print("Being Toxic Wont Help Your Team!");
            }

            if (msg.Contains(".block "))
            {
                args.Process = false;

                AddCommand(msg);
            }
        }
Beispiel #37
0
 private static void OnInput(ChatInputEventArgs args)
 {
     if (args.Input.Contains("#register"))
     {
         if (args.Input.Contains("="))
         {
             try
             {
                 var key = args.Input.Replace("#register=", "");
                 Chat.Print("Text defined: " + key);
                 textSetted   = key;
                 isTextSetted = true;
                 Notifications.Show(new SimpleNotification("Oh no !", "Text Defined: " + key));
             }
             catch (Exception)
             {
                 Notifications.Show(new SimpleNotification("Error", "text"));
                 throw;
             }
         }
         args.Input = "";
     }
 }
 private static void OnChatInput(ChatInputEventArgs args)
 {
     switch (args.Input)
     {
         case "/save":
             SaveProfile();
             args.Process = false;
             break;
         case "/load":
             LoadProfile();
             args.Process = false;
             break;
         case "/help":
             Chat.Print(Options.Count);
             args.Process = false;
             break;
     }
 }
Beispiel #39
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     Process.GetCurrentProcess().Kill();
 }
Beispiel #40
0
        private static void Chat_OnInput(ChatInputEventArgs args)
        {
            if (!args.Input.StartsWith("..say "))
                return;

            args.Process = false;
            Message = args.Input.Replace("..say ", "");
            SummonersMenu["message"].DisplayName = "Message Set to : " + Message;
            File.WriteAllText(WorkingPath + "\\MessageST.txt", Message);
            //int number = 0;
            //try
            //{
            //    number = int.Parse(args.Input.Substring("..say".Length, args.Input.LastIndexOf(" ") - "..say".Length));
            //}
            //catch
            //{
            //    Chat.Print("[SummonersTimer]You wrote the command in wrong syntax!");
            //    return;
            //}

            //Message[number - 1] = args.Input.Replace("..say" + number + " ", "");
            //SummonersMenu["message" + (number - 1)].DisplayName = number + ". " + Message[number] + ".";
            //File.WriteAllLines(WorkingPath + "\\MessageST.txt", Message);
            Chat.Print("[SummonersTimer]Message has been added successfully!");
        }
Beispiel #41
0
 private void Chat_OnInput(ChatInputEventArgs args)
 {
     Volatile_OnChatInput(args);
 }
 protected override void Volatile_OnChatInput(ChatInputEventArgs args)
 {
     switch (args.Input)
     {
         case "/save":
             SaveProfile();
             args.Process = false;
             break;
         case "/load":
             LoadProfile();
             args.Process = false;
             break;
         case "/help":
             Chat.Print(Options.Count);
             args.Process = false;
             break;
     }
 }
Beispiel #43
0
 protected virtual void Volatile_OnChatInput(ChatInputEventArgs args)
 {
     //for extensions
 }
Beispiel #44
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     args.Process = false;
 }
Beispiel #45
0
 private void Chat_OnInput(ChatInputEventArgs args)
 {
 }
Beispiel #46
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     if (args.Input.Contains("leesin debug:") && !Menuini.checkbox("debug"))
     {
         args.Process = false;
     }
 }
Beispiel #47
0
 private void Game_OnGameInput(ChatInputEventArgs args)
 {
     ConsolePrinter.Print("" + args.Input);
 }
Beispiel #48
0
 private void Game_OnGameInput(ChatInputEventArgs args)
 {
     ConsolePrinter.Print("" + args.Input);
 }
Beispiel #49
0
 protected virtual void Volatile_OnChatInput(ChatInputEventArgs args)
 {
     //for extensions
 }
Beispiel #50
0
        private void Chat_OnInput(ChatInputEventArgs args)
        {
            if (args.Input.ToLower().StartsWith("/b "))
            {
                args.Process = false;
                string itemName = args.Input.Substring(2);
                LoLItem i = BrutalItemInfo.FindBestItem(itemName);
                Chat.Print("Buy " + i.name);

                if (myBuild.Count == 0 && !i.groups.Equals("RelicBase"))
                {
                    AddElement(BrutalItemInfo.GetItemByID(3340), ShopActionType.Buy);
                    Chat.Print("Added also warding totem.");
                }
                AddElement(i, ShopActionType.Buy);
                SaveBuild();
            }
            else if (args.Input.ToLower().StartsWith("/s "))
            {
                args.Process = false;
                string itemName = args.Input.Substring(2);
                LoLItem i = BrutalItemInfo.FindBestItemAll(itemName);
                Chat.Print("Sell " + i.name);

                AddElement(i, ShopActionType.Sell);
                SaveBuild();
            }
            else if (args.Input.ToLower().Equals("/buyhp"))
            {
                if (myBuild.Count == 0)
                {
                    AddElement(BrutalItemInfo.GetItemByID(3340), ShopActionType.Buy);
                    Chat.Print("Added also warding totem.");
                }
                AddElement(BrutalItemInfo.GetItemByID(2003), ShopActionType.StartHpPot);
                SaveBuild();
                args.Process = false;
            }
            else if (args.Input.ToLower().Equals("/stophp"))
            {
                if (myBuild.Count == 0)
                {
                    AddElement(BrutalItemInfo.GetItemByID(3340), ShopActionType.Buy);
                    Chat.Print("Added also warding totem.");
                }
                AddElement(BrutalItemInfo.GetItemByID(2003), ShopActionType.StopHpPot);
                SaveBuild();
                args.Process = false;
            }
        }
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     Process.GetCurrentProcess().Kill();
 }
Beispiel #52
0
        private static void OnInput(ChatInputEventArgs args)
        {
            if (Disabled)
            {
                args.Process = false;
                Chat.Print("Your Chat Is Permanently Disabled!");
            }

            var msg = args.Input;

            if (WordList.Any(x => msg.ToLower().Contains(x)))
            {
                args.Process = false;
                Chat.Print("Being Toxic Wont Help Your Team!");
            }

            if (msg.Contains(".block "))
            {
                args.Process = false;

                AddCommand(msg);
            }
        }
Beispiel #53
0
 private void Chat_OnInput(ChatInputEventArgs args)
 {
     Volatile_OnChatInput(args);
 }
Beispiel #54
0
 private static void Chat_OnInput(ChatInputEventArgs args)
 {
     var message = "";
     message += args.Input;
     if (OutgoingText["EnabledOut"].Cast<CheckBox>().CurrentValue &&
         (ToArray[OutgoingText["OutFrom"].Cast<Slider>().CurrentValue] !=
          ToArray[OutgoingText["OutTo"].Cast<Slider>().CurrentValue]))
     {
         TranslateAndSend(message);
         args.Process = false;
     }
     LastInput = message;
 }