public static void LognNewAccount() { accountsNew = accounts; accounts.RemoveAt(0); int curRunning = 0; if (accounts.Count == 0) { Tools.ConsoleMessage("No more acocunts to login", ConsoleColor.Red); } foreach (string acc in accounts) { string Accs = acc; string[] stringSeparators = new string[] { "|" }; var result = Accs.Split(stringSeparators, StringSplitOptions.None); curRunning += 1; QueueTypes queuetype; ChallengerBot ChallengerBot; if (result[3] != null) { Generator.CreateRandomThread(delay1, delay2); queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[3]); ChallengerBot = new ChallengerBot(result[0], result[1], result[2].ToUpper(), lolPath, queuetype, LoLVersion); } else { Generator.CreateRandomThread(delay1, delay2); queuetype = QueueTypes.ARAM; ChallengerBot = new ChallengerBot(result[0], result[1], result[2].ToUpper(), lolPath, queuetype, LoLVersion); } if (curRunning == maxBots) { break; } Tools.ConsoleMessage("Maximun bots running: " + maxBots, ConsoleColor.Red); } }
private static void Main(string[] args) { LoadConfigs(); LoadLeagueVersion(); Console.Title = "ChallengerBot"; Tools.TitleMessage("ChallengerBot - Bot for Leauge Of Legends: " + LoLVersion.Substring(0, 4)); Tools.TitleMessage("Current Version: " + Tools.ezVersion.ToString()); Tools.TitleMessage("Made by JumpyArtz."); Tools.ConsoleMessage("Config loaded.", ConsoleColor.White); if (replaceConfig) { Tools.ConsoleMessage("Changing Game Config.", ConsoleColor.White); ChangeGameConfig(); } Tools.ConsoleMessage("Loading accounts.", ConsoleColor.White); LoadAccounts(); int curRunning = 0; foreach (string acc in accounts) { try { accountsNew.RemoveAt(0); string Accs = acc; string[] stringSeparators = new string[] { "|" }; var result = Accs.Split(stringSeparators, StringSplitOptions.None); curRunning += 1; QueueTypes queuetype; ChallengerBot ChallengerBot; if (result[3] != null) { Generator.CreateRandomThread(delay1, delay2); queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[3]); ChallengerBot = new ChallengerBot(result[0], result[1], result[2].ToUpper(), lolPath, queuetype, LoLVersion); } else { Generator.CreateRandomThread(delay1, delay2); queuetype = QueueTypes.ARAM; ChallengerBot = new ChallengerBot(result[0], result[1], result[2].ToUpper(), lolPath, queuetype, LoLVersion); } if (curRunning == maxBots) { break; } Tools.ConsoleMessage("Maximun bots running: " + maxBots, ConsoleColor.Red); } catch (Exception) { Tools.ConsoleMessage("You may have an issue in your accounts.txt", ConsoleColor.Red); Tools.ConsoleMessage("Acconts structure ACCOUNT|PASSWORD|REGION|QUEUE_TYPE", ConsoleColor.Red); Console.ReadKey(); } } }