Esempio n. 1
0
        public static void lognNewAccount()
        {
            accounts2 = accounts;
            accounts.RemoveAt(0);
            int curRunning = 0;

            if (accounts.Count == 0)
            {
                Console.WriteLine(getTimestamp() + "No more accounts to login.");
            }
            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]);
                    VoliBot    ritoBot   = new VoliBot(result[0], result[1], Region, Path2, curRunning, queuetype);
                }
                else
                {
                    QueueTypes queuetype = QueueTypes.ARAM;
                    VoliBot    ritoBot   = new VoliBot(result[0], result[1], Region, Path2, curRunning, queuetype);
                }
                Console.Title = " Current Connected: " + connectedAccs;
                if (curRunning == maxBots)
                {
                    break;
                }
            }
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Console.Title = "RitoBot";
            Console.SetWindowSize(Console.WindowWidth + 5, Console.WindowHeight);
            Console.Write("====================================================================================\n");
            Console.Write("VoliBot - MultiQueue | V1.9.0 for LoL 4.20.Bl4Z31T by Maufeat\n");
            Console.Write("====================================================================================\n");
            if (!isDonator)
            {
                Application.EnableVisualStyles();
                Application.Run(new donate());
            }
            Console.WriteLine(getTimestamp() + "Loading config.ini");
            loadConfiguration();
            if (replaceConfig)
            {
                Console.WriteLine(getTimestamp() + "Replacing Config");
                gamecfg();
            }
            Console.WriteLine(getTimestamp() + "Loading accounts.txt");
            loadAccounts();
            int curRunning = 0;

            foreach (string acc in accounts)
            {
                try
                {
                    accounts2.RemoveAt(0);
                    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]);
                        VoliBot    ritoBot   = new VoliBot(result[0], result[1], Region, Path2, curRunning, queuetype);
                    }
                    else
                    {
                        QueueTypes queuetype = QueueTypes.ARAM;
                        VoliBot    ritoBot   = new VoliBot(result[0], result[1], Region, Path2, curRunning, queuetype);
                    }
                    Console.Title = " Current Connected: " + connectedAccs;
                    if (curRunning == maxBots)
                    {
                        break;
                    }
                }
                catch (Exception)
                {
                    Console.WriteLine("CountAccError: You may have an issue in your accounts.txt");
                }
            }
            Console.ReadKey();
        }