Results 1 to 8 of 8

Thread: [Code] BottingForce Subscriber/Post Authorization

  1. #1
    Administrator Gameloader's Avatar
    Join Date
    May 2011
    Location
    Bottingforce.com DUH!
    Posts
    1,155
    Bots Posted
    97
    Post Thanks / Like
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)

    [Code] BottingForce Subscriber/Post Authorization

    The following code will allow you to limit bot use to only subscribers or certain post count or both

    Step 1: Locate the following in your source
    Code:
    InitializeComponent();
    Step 2: Directly below it add the following
    Code:
      try
                {
                    string requiredposts = "10"; // enter 0 for no post requirment
                    string subrequired = "true"; //"true" or "false"
                    WebRequest request = WebRequest.Create("http://www.bottingforce.com/AuthMe.php");
                    request.Method = "GET";
                    WebResponse response = request.GetResponse();
                    Stream dataStream = response.GetResponseStream();
                    StreamReader reader = new StreamReader(dataStream);
                    string responseFromServer = reader.ReadToEnd();
                    reader.Close();
                    dataStream.Close();
                    response.Close();
                    richTextBox1.Text = responseFromServer + "";
                    String[] sub = responseFromServer.Split(new String[] { "\n" }, StringSplitOptions.None);
                    if (sub[0].Equals("CantAuth"))
                    {
                        MessageBox.Show("No Auth Found. Have You Made A Post Recently?", "Message From BottingForce");
                        Environment.Exit(0);
                    }
                    else
                    {
                        if (subrequired.Equals("true"))
                        {
                            if (sub[1].Equals("Subscriber"))
                            {
                               // label19.Text = sub[0]; i use these for stuff within the bot
                               // label20.Text = sub[3]; i use these for stuff within the bot
                            }
                            else if (sub[1].Equals("NonSubcriber"))
                            {
                                MessageBox.Show("No Subscription Found. Subscribe To BottingForce To Use This Bot", "Message From BottingForce");
                                Environment.Exit(0);
                            }
                            else
                            {
                                MessageBox.Show("No Auth Found. Have You Made A Post Recently?", "Message From BottingForce");
                                Environment.Exit(0);
                            }
                        }
                        if (Convert.ToInt32(requiredposts) > 0)
                        {
                            if (sub[0].Equals("CantAuth"))
                            {
                                MessageBox.Show("No Auth Found. Have You Made A Post Recently?", "Message From BottingForce");
                                Environment.Exit(0);
                            }
                            else if (Convert.ToInt32(sub[2]) < Convert.ToInt32(requiredposts))
                            {
                                MessageBox.Show("You Do Not Have Enough Posts To Use This Bot", "Message From BottingForce");
                                Environment.Exit(0);
                            }
                            else
                            {
                                if (subrequired.Equals("false"))
                                {
                                    label19.Text = sub[0]; // i use these for stuff within the bot
                                    label20.Text = sub[3]; // i use these for stuff within the bot
                                }
                            }
                        }
                    }
                }
                catch
                {
                    MessageBox.Show("Cannot Connect To BottingForce At This Momment In Time", "Message From BottingForce");
                    Environment.Exit(0);
                }
    Step 3:

    locate

    Code:
    using System.Windows.Forms;
    and below it add

    Code:
    using System.Net;
    using System.IO;
    Any questions or recommendations feel free to ask

  2. Than/ks ItsAciD thanked for this post
    Likes ItsAciD liked this post
  3. #2
    Banned
    Join Date
    May 2011
    Posts
    294
    Bots Posted
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get 13 errors when tryin g to use your code StreamReader reader = newStreamReader(dataStream); String[] sub = responseFromServer.Split(newString[] { "\n" }, StringSplitOptions.None); Error 13 Only assignment, call, increment, decrement, and new object expressions can be used as a statement

  4. #3
    Administrator Gameloader's Avatar
    Join Date
    May 2011
    Location
    Bottingforce.com DUH!
    Posts
    1,155
    Bots Posted
    97
    Post Thanks / Like
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    sorry make sure you add this to your project

    Code:
    using System.Net;
    using System.IO;

  5. #4
    Banned
    Join Date
    May 2011
    Posts
    294
    Bots Posted
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used both and still get 13 errors using your code

  6. #5
    Banned
    Join Date
    May 2011
    Posts
    52
    Bots Posted
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Gameloader its cause when he copy pastes it, it adds commaas, and fuckes up all the code, i copy pasted this, and it came out all fucked up. He just doesnt know how to fix the errors /mistypos, just hit copy and paste it GL so you can see what i mean, Maybe just add a attachment, as a text file.

  7. #6
    Administrator Gameloader's Avatar
    Join Date
    May 2011
    Location
    Bottingforce.com DUH!
    Posts
    1,155
    Bots Posted
    97
    Post Thanks / Like
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    there we go that should fix it

  8. #7
    Super Moderator scoobysnack40's Avatar
    Join Date
    May 2011
    Posts
    240
    Bots Posted
    2
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    yeaup it fixed it alright ..... good job gameloader and thanks

  9. #8
    Banned
    Join Date
    May 2011
    Posts
    294
    Bots Posted
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Bro it finally works now just Decap the tutorial needs to be fixed. Cant wait till I learn it so I can release quality stuff.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •