public void lognNewAccount() { accountsNew = accounts; accounts.RemoveAt(0); int curRunning = 0; if (accounts.Count == 0) { updateStatus(msgStatus.INFO, "No more accounts to login.", "CONSOLE"); } foreach (string acc in accounts) { string Accs = acc; string[] stringSeparators = new string[] { "|" }; var result = Accs.Split(stringSeparators, StringSplitOptions.None); curRunning += 1; if (result[2] != null) { QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[2]); OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } else { QueueTypes queuetype = QueueTypes.ARAM; OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } if (curRunning == maxBots) { break; } } }
private void console_Load(object sender, EventArgs e) { updateStatus(msgStatus.INFO, "Console initialized.", "CONSOLE"); if (replaceConfig) { updateStatus(msgStatus.INFO, "Replacing Config.", "CONSOLE"); try { Basic.ReplaceGameConfig(lolPath); } catch (Exception) { } } updateStatus(msgStatus.INFO, "Loading Accounts", "CONSOLE"); loadAccounts(); int curRunning = 0; foreach (string acc in accounts) { try { accountsNew.RemoveAt(0); string[] stringSeparators = new string[] { "|" }; var result = acc.Split(stringSeparators, StringSplitOptions.None); curRunning += 1; if (result[2] != null) { QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[2]); OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } else { QueueTypes queuetype = QueueTypes.ARAM; OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } if (curRunning == maxBots) { break; } } catch (Exception ex) { updateStatus(msgStatus.ERROR, "CountAccError: You may have an issue in your accounts.txt" + ex.Message, "CONSOLE"); } } }
public void lognNewAccount() { accountsNew = accounts; accounts.RemoveAt(0); int curRunning = 0; if (accounts.Count == 0) { updateStatus(msgStatus.INFO, "No more accounts to login.", "CONSOLE"); } foreach (string acc in accounts) { string Accs = acc; string[] stringSeparators = new string[] { "|" }; var result = Accs.Split(stringSeparators, StringSplitOptions.None); curRunning += 1; if (result[2] != null) { QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[2]); OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } else { QueueTypes queuetype = QueueTypes.ARAM; OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } if (curRunning == maxBots) break; } }
private void console_Load(object sender, EventArgs e) { updateStatus(msgStatus.INFO, "Console initialized.", "CONSOLE"); if (replaceConfig) { updateStatus(msgStatus.INFO, "Replacing Config.", "CONSOLE"); try { Basic.ReplaceGameConfig(lolPath); } catch (Exception) { } } updateStatus(msgStatus.INFO, "Loading Accounts", "CONSOLE"); loadAccounts(); int curRunning = 0; foreach (string acc in accounts) { try { accountsNew.RemoveAt(0); string[] stringSeparators = new string[] { "|" }; var result = acc.Split(stringSeparators, StringSplitOptions.None); curRunning += 1; if (result[2] != null) { QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[2]); OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } else { QueueTypes queuetype = QueueTypes.ARAM; OldVoliBot ovb = new OldVoliBot(result[0], result[1], this, queuetype); } if (curRunning == maxBots) break; } catch (Exception ex) { updateStatus(msgStatus.ERROR, "CountAccError: You may have an issue in your accounts.txt" + ex.Message, "CONSOLE"); } } }