Exemplo n.º 1
0
 static void Main(string[] args)
 {
     InitChecks();
     loadVersion();
     Console.Title = "Volibot";
     Console.ForegroundColor = ConsoleColor.Green;
     Console.SetWindowSize(Console.WindowWidth + 5, Console.WindowHeight);
     Console.WriteLine("=========================================");
     Console.WriteLine("Maufeat's Volibot up-to-date for v" + cversion.Substring(0,4));
     Console.WriteLine("----------All features enabled!----------");
     Console.WriteLine("--------imsosharp & nongnoobjung---------");
     Console.WriteLine("=========================================");
     Console.WriteLine();
     Console.WriteLine(getTimestamp() + "Loading config\\settings.ini");
     loadConfiguration();
     if (replaceConfig)
     {
         Console.WriteLine(getTimestamp() + "Replacing Config");
         gamecfg();
     }
     while (!File.Exists(Path2 + "lol.launcher.exe"))
     {
         Console.ForegroundColor = ConsoleColor.Red;
         Console.WriteLine();
         Console.WriteLine("Wrong LauncherPath. the path should look like this: C:\\Riot Games\\League of Legends\\ \n Please check config\\settings.ini, otherwise your LoL won't start.");
         Console.WriteLine();
         System.Threading.Thread.Sleep(5000);
         loadConfiguration();
     }
     Console.ForegroundColor = ConsoleColor.Green;
     Console.WriteLine(getTimestamp() + "Loading config\\accounts.txt");
     ReloadAccounts:
     loadAccounts();
     int curRunning = 0;
     if (LoadGUI) MainWindow.ShowDialog();
     if (!LoadGUI)
     {
         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[0].Contains("username"))
                 {
                     Console.WriteLine("Please add your accounts into config\\accounts.txt");
                     goto ReloadAccounts;
                 }
                 if (result[2] != null)
                 {
                     QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[2]);
                     RiotBot ritoBot = new RiotBot(result[0], result[1], Region, Path2, curRunning, queuetype);
                 }
                 else
                 {
                     QueueTypes queuetype = QueueTypes.ARAM;
                     RiotBot ritoBot = new RiotBot(result[0], result[1], Region, Path2, curRunning, queuetype);
                 }
                 Console.Title = "RitoBot Console | Currently connected: " + connectedAccs;
                 if (curRunning == maxBots)
                     break;
             }
             catch (Exception)
             {
                 Console.WriteLine("CountAccError: You may have an issue in your accounts.txt");
                 Application.Exit();
             }
         }
         Console.ReadKey();
     }
 }
Exemplo n.º 2
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]);
             RiotBot ritoBot = new RiotBot(result[0], result[1], Region, Path2, curRunning, queuetype);
         } else {
             QueueTypes queuetype = QueueTypes.ARAM;
             RiotBot ritoBot = new RiotBot(result[0], result[1], Region, Path2, curRunning, queuetype);
         }
         Console.Title = "RitoBot Console | Currently connected: " + connectedAccs;
         if (curRunning == maxBots)
             break;
     }
 }
Exemplo n.º 3
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;
         bool lead = false;
         string token = "";
       /*  if (result[3].Contains("Leader") || result.Contains("leader"))
         {
             lead = true;
         }*/
         Console.WriteLine("Waiting Launch Game From Garena");
         token = GetGarenaToken();
         Console.WriteLine("Get Token!");
         if(result[1] != null)
         {
             QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[1]);
             RiotBot ritoBot = new RiotBot(result[0], token, Region, Path2, curRunning, queuetype, lead);
         } else {
             QueueTypes queuetype = QueueTypes.ARAM;
             RiotBot ritoBot = new RiotBot(result[0], token, Region, Path2, curRunning, queuetype, lead);
         }
         Console.Title = "RitoBot Console | Currently connected: " + connectedAccs;
         if (curRunning == maxBots)
             break;
     }
 }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            InitChecks();
            loadVersion();
            Console.Title = "Volibot For Garena";
            Console.ForegroundColor = ConsoleColor.Green;
            Console.SetWindowSize(Console.WindowWidth + 5, Console.WindowHeight);
            Console.WriteLine("=======================================");
            Console.WriteLine("Garena Volibot up-to-date for v" + cversion.Substring(0,4));
            Console.WriteLine("-----------by nongnoobjung-------------");
            Console.WriteLine("=======================================");
            Console.WriteLine();
            WindowsIdentity winIdentity = WindowsIdentity.GetCurrent();
            WindowsPrincipal winPrincipal = new WindowsPrincipal(winIdentity);
            if (!winPrincipal.IsInRole(WindowsBuiltInRole.Administrator))
            {
                Console.WriteLine(getTimestamp() + "Error to Launch Volibot Make Sure Run As Admin");
                return;
            }

            Console.WriteLine(getTimestamp() + "Loading config\\settings.ini");
            loadConfiguration();
            if (replaceConfig)
            {
                Console.WriteLine(getTimestamp() + "Replacing Config");
                gamecfg();
            }
            while (!File.Exists(Path2 + "lol.exe"))
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine();
                Console.WriteLine("Wrong LauncherPath. the path should look like this: C:\\GarenaLoL\\GameData\\Apps\\LoL\\ \n Please check config\\settings.ini, otherwise your LoL won't start.");
                Console.WriteLine();
                System.Threading.Thread.Sleep(5000);
                loadConfiguration();
            }
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(getTimestamp() + "Loading config\\accounts.txt");
            ReloadAccounts:
            loadAccounts();
            int curRunning = 0;
            //if (LoadGUI) MainWindow.ShowDialog();

            if (!LoadGUI)
            {
                foreach (string acc in accounts)
                {
                    try
                    {
                        accounts2.RemoveAt(0);
                        string Accs = acc;
                        string[] stringSeparators = new string[] { "|" };
                        bool lead = false;
                        string token = "";
                        var result = Accs.Split(stringSeparators, StringSplitOptions.None);
                        curRunning += 1;
                        if (result[0].Contains("username"))
                        {
                            Console.WriteLine("Please add your accounts into config\\accounts.txt");
                            goto ReloadAccounts;
                        }
                       /* if (result[3].Contains("Leader") || result.Contains("leader"))
                        {
                            lead = true;
                        }*/
                        Console.WriteLine(getTimestamp()+"Bot "+curRunning+" Waiting Launch Game From Garena");
                        token = GetGarenaToken();
                        if (result[1] != null)
                        {
                            QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[1]);
                            RiotBot ritoBot = new RiotBot(result[0], token, Region, Path2, curRunning, queuetype, lead);
                        }
                        else
                        {
                            QueueTypes queuetype = QueueTypes.ARAM;
                            RiotBot ritoBot = new RiotBot(result[0], token, Region, Path2, curRunning, queuetype, lead);
                        }
                        Console.Title = "RitoBot Console | Currently connected: " + connectedAccs;
                        /*if (result[1] == "CUSTOM")
                        {
                            while (!Program.IsGameCreated)
                                System.Threading.Thread.Sleep(1000);
                        }*/

                        if (curRunning == maxBots)
                            break;
                    }
                    catch (Exception)
                    {
                        Console.WriteLine("CountAccError: You may have an issue in your accounts.txt");
                        Application.Exit();
                    }
                }
                Console.ReadKey();
            }
        }
Exemplo n.º 5
0
 private void queueLoop()
 {
     foreach (string acc in Program.accounts)
     {
         int curRunning = 0;
         try
         {
             Program.accounts2.RemoveAt(0);
             string Accs = acc;
             string[] stringSeparators = new string[] { "|" };
             var result = Accs.Split(stringSeparators, StringSplitOptions.None);
             console.ForeColor = Color.Lime;
             curRunning += 1;
             if (result[0].Contains("username"))
             {
                 Print("No accounts found. Please add an account.", 2);
             }
             if (result[2] != null)
             {
                 QueueTypes queuetype = (QueueTypes)System.Enum.Parse(typeof(QueueTypes), result[2]);
                 RiotBot ritoBot = new RiotBot(result[0], result[1], Program.Region, Program.Path2, curRunning, queuetype);
                 ShowAccount(result[0], result[1], result[2]);
             }
             else
             {
                 QueueTypes queuetype = QueueTypes.ARAM;
                 RiotBot ritoBot = new RiotBot(result[0], result[1], Program.Region, Program.Path2, curRunning, queuetype);
                 ShowAccount(result[0], result[1], "ARAM");
             }
             Program.MainWindow.Text = " Volibot GUI | Currently connected: " + Program.connectedAccs;
             if (curRunning == Program.maxBots)
                 break;
         }
         catch (Exception)
         {
             console.ForeColor = Color.Red;
             Print("You may have an error in accounts.txt.");
             Print("If you just started Volibot for the first time,");
             Print("add a new account on the leftside panel.");
             Print("If you keep getting this error,");
             Print("Delete accounts.txt and restart voli.", 2);
         }
     }
 }