Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     //Console.Clear();
     for (int i = 1; i < NumberOfBots.Value; i++)
     {
         client = new RotMGClient(server, EmailPrefix.Text + i + EmailDomain.Text, Password.Text);
         client.OnLoginError += new OnLoginErrorHandler(client_OnLoginError);
         client.Init(buildversion.Text, null, false);
         if (client.Player.IsLoggedIn)
         {
             client.Connect();
             bots.Add(client);
         }
     }
     timer1.Start();
 }
Ejemplo n.º 2
0
 private void spamBtn_Click(object sender, EventArgs e)
 {
     if (String.IsNullOrWhiteSpace(email.Text))
     {
         MessageBox.Show("Email can not be null");
         return;
     }
     if (String.IsNullOrWhiteSpace(password.Text))
     {
         MessageBox.Show("Password can not be null");
         return;
     }
     if (spamBtn.Text == "Start")
     {
         Server server = Servers.EUNorth;
         if (Server.GetServerByName.ContainsKey(serverBox.SelectedItem.ToString()))
         {
             server = Server.GetServerByName[serverBox.SelectedItem.ToString()];
         }
         client = new RotMGClient(server, email.Text, password.Text);
         client.OnLoginError += new OnLoginErrorHandler(client_OnLoginError);
         client.Init(buildversion.Text, null, false);
         if (rememberAcc.Checked)
         {
             using (StreamWriter wtr = new StreamWriter("lastlogin"))
             {
                 wtr.Write(Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(email.Text)) + ":" + Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(password.Text)));
                 wtr.Close();
             }
         }
         if (client.Player.IsLoggedIn)
         {
             client.Connect();
         }
         spamBtn.Text   = "Stop";
         ticker.Enabled = true;
         ticker.Start();
     }
     else if (spamBtn.Text == "Stop")
     {
         ticker.Stop();
         client.Disconnect();
         spamBtn.Text = "Start";
     }
 }
Ejemplo n.º 3
0
 private void Login_Click(object sender, EventArgs e)
 {
     Console.Clear();
     if (Server.GetServerByName.ContainsKey(selectedServer.SelectedItem.ToString()))
     {
         server = Server.GetServerByName[selectedServer.SelectedItem.ToString()];
     }
     client = new RotMGClient(server, email.Text, password.Text);
     client.OnLoginError += new OnLoginErrorHandler(client_OnLoginError);
     client.Init(buildversion.Text, null, false);
     if (rememberAcc.Checked)
     {
         using (StreamWriter wtr = new StreamWriter("lastlogin"))
         {
             wtr.Write(Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(email.Text)) + ":" + Convert.ToBase64String(ASCIIEncoding.ASCII.GetBytes(password.Text)));
             wtr.Close();
         }
     }
     if (client.Player.IsLoggedIn)
     {
         client.Connect();
     }
 }