Results 1 to 13 of 13

Thread: making a new kind of bot (Not for Runescape)

  1. #1
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default making a new kind of bot (Not for Runescape)

    Ok, I want to make a bot... For Swagbucks. If you know what that is.

    I know how I can get it to do everything I need it to... But I want it to pull a word out of a text file.
    I want to make it in SCAR though

    How could I do that.

    Like have it pull out a random word or string of text for a .txt file and then type it onto the search bar.

    If you don't know what swagbucks is go here

    Swagbucks.com

    If you want to sign up please sign up under this link:
    Swagbucks.com/refer/pikleking23

  2. #2
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't earn a lot of points for searching over and over again if you think its gonna work.

    Its completely random and there is a limit to what you can get your chance up to.

    I can make something like this quickly right now, but im telling you its not gonna work the way you think .
    Woot woot.

  3. #3
    Join Date
    Nov 2007
    Location
    Nowhereville
    Posts
    1,155
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    ultra is right.

    you will not get the effect you want. swagbucks offers the bucks at time intervals of you searching. its not how much you search, just spamming their search doesn't work.
    Formerly known as Cut em2 it

  4. #4
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Ultra View Post
    You don't earn a lot of points for searching over and over again if you think its gonna work.

    Its completely random and there is a limit to what you can get your chance up to.

    I can make something like this quickly right now, but im telling you its not gonna work the way you think .
    I have used a bot called Swaghelper before and It didnt really work. I usually do searches like this:

    in the morning I search till I get one

    In the afternoon I do it

    And at night

    But Right now I have like 10 active referals.

    I have already bought a shirt and in 3 days I am back up to 26.

    0-26 in 5 days =o

    So how would I make this bot though? I just need to know how to get it to pull text from a text file or to generate a random word. something like that.

  5. #5
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You don't need it to pull words out of a text file, you can just do something like..
    SCAR Code:
    {-------------------------------------------------------------------------------
    Procedure/Function: function GenerateRandomWord : String;
    Purpose: Generates a random word using a case, outputs a string.
    How to use: Ex. WriteLn(GenerateRandomWord);
    By: Ultra.
    -------------------------------------------------------------------------------}

    function GenerateRandomWord : String;
    begin
     case RandomRange(1, 10) of
     1: Result := 'youtube';
     2: Result := 'villavu srl';
     3: Result := 'facebook';
     4: Result := 'how big is the earth?';
     5: Result := 'google maps';
     6: Result := 'new planet found';
     7: Result := 'over population';
     8: Result := 'global warming';
     9: Result := 'homework help';
     10: Result := 'how to code html?';
     end;
    end;
    Just add on more results to that, although that can be very annoying :P.

    And to check colors/click places use:
    SCAR Code:
    Mouse(X, Y, RandomX, RandomY, True);//Moves the mouse like a human and presses a mouse button.
    GetColor(X, Y);//Finds the color at the given position and returns it as an integer.
    Woot woot.

  6. #6
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Ultra View Post
    You don't need it to pull words out of a text file, you can just do something like..
    SCAR Code:
    {-------------------------------------------------------------------------------
    Procedure/Function: function GenerateRandomWord : String;
    Purpose: Generates a random word using a case, outputs a string.
    How to use: Ex. WriteLn(GenerateRandomWord);
    By: Ultra.
    -------------------------------------------------------------------------------}

    function GenerateRandomWord : String;
    begin
     case RandomRange(1, 10) of
     1: Result := 'youtube';
     2: Result := 'villavu srl';
     3: Result := 'facebook';
     4: Result := 'how big is the earth?';
     5: Result := 'google maps';
     6: Result := 'new planet found';
     7: Result := 'over population';
     8: Result := 'global warming';
     9: Result := 'homework help';
     10: Result := 'how to code html?';
     end;
    end;
    Just add on more results to that, although that can be very annoying :P.

    And to check colors/click places use:
    SCAR Code:
    Mouse(X, Y, RandomX, RandomY, True);//Moves the mouse like a human and presses a mouse button.
    GetColor(X, Y);//Finds the color at the given position and returns it as an integer.
    Nice, Thanks

  7. #7
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Ultra View Post
    You don't need it to pull words out of a text file, you can just do something like..
    SCAR Code:
    {-------------------------------------------------------------------------------
    Procedure/Function: function GenerateRandomWord : String;
    Purpose: Generates a random word using a case, outputs a string.
    How to use: Ex. WriteLn(GenerateRandomWord);
    By: Ultra.
    -------------------------------------------------------------------------------}

    function GenerateRandomWord : String;
    begin
     case RandomRange(1, 10) of
     1: Result := 'youtube';
     2: Result := 'villavu srl';
     3: Result := 'facebook';
     4: Result := 'how big is the earth?';
     5: Result := 'google maps';
     6: Result := 'new planet found';
     7: Result := 'over population';
     8: Result := 'global warming';
     9: Result := 'homework help';
     10: Result := 'how to code html?';
     end;
    end;
    Just add on more results to that, although that can be very annoying :P.

    And to check colors/click places use:
    SCAR Code:
    Mouse(X, Y, RandomX, RandomY, True);//Moves the mouse like a human and presses a mouse button.
    GetColor(X, Y);//Finds the color at the given position and returns it as an integer.
    imo, i would add all the words to an array, and have

    result := randomword[random(high(randomword))];

    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  8. #8
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by ownedlikenoob View Post
    Nice, Thanks
    Ok, I got it to run... But it doesn't type the words... It just moves the mouse to the searchbar waits and then clicks search. That's it.../

    Here is it:

    Code:
    program Swaggin;
    {.include srl/srl.scar}
    function GenerateRandomWord : String;
    begin
     case RandomRange(1, 10) of
     1: Result := 'youtube';
     2: Result := 'villavu srl';
     3: Result := 'facebook';
     4: Result := 'how big is the earth?';
     5: Result := 'google maps';
     6: Result := 'new planet found';
     7: Result := 'over population';
     8: Result := 'global warming';
     9: Result := 'homework help';
     10: Result := 'how to code html?';
     end;
    end;
    
    begin
    SetupSRL
    Mouse(201, 103, 1, 1,true) //change to coordinates of search bar
    Wait(2000)
    GenerateRandomWord;
    Wait(2000)
    Mouse(397, 267,1,1,true) //Change to coordinates of Search Button
    end.

  9. #9
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    SCAR Code:
    program Swaggin;
    {.include srl/srl.scar}
    function GenerateRandomWord : String;
    begin
      case RandomRange(1, 10) of
        1: Result := 'youtube';
        2: Result := 'villavu srl';
        3: Result := 'facebook';
        4: Result := 'how big is the earth?';
        5: Result := 'google maps';
        6: Result := 'new planet found';
        7: Result := 'over population';
        8: Result := 'global warming';
        9: Result := 'homework help';
        10: Result := 'how to code html?';
      end;
    end;

    begin
      SetupSRL
      Mouse(201, 103, 1, 1,true) //change to coordinates of search bar
      Wait(2000);
      typesend(GenerateRandomWord); //you forgot typesend, the part that actually types the word :)
      Wait(2000);
      Mouse(397, 267,1,1,true) //Change to coordinates of Search Button
    end.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  10. #10
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    SCAR Code:
    program Swaggin;
    {.include srl/srl.scar}
    function GenerateRandomWord : String;
    begin
      case RandomRange(1, 10) of
        1: Result := 'youtube';
        2: Result := 'villavu srl';
        3: Result := 'facebook';
        4: Result := 'how big is the earth?';
        5: Result := 'google maps';
        6: Result := 'new planet found';
        7: Result := 'over population';
        8: Result := 'global warming';
        9: Result := 'homework help';
        10: Result := 'how to code html?';
      end;
    end;

    begin
      SetupSRL
      Mouse(201, 103, 1, 1,true) //change to coordinates of search bar
      Wait(2000);
      typesend(GenerateRandomWord); //you forgot typesend, the part that actually types the word :)
      Wait(2000);
      Mouse(397, 267,1,1,true) //Change to coordinates of Search Button
    end.
    ahhhh thank you very much

  11. #11
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    also, here is what i think is better

    SCAR Code:
    function GenerateRandomWord : String;
    var s : TStringArray;
    begin
      s := ['youtube', 'villavu srl', 'facebook', 'how big is the earth?',
            'google maps', 'new planet found', 'over population', 'global warming',
            'homework help', 'how to code html?'];
      result := s[random(high(s))];
    end;

    that way, if you ever want to add in more searches, all you need to do is add in the string, and your good
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  12. #12
    Join Date
    Jul 2009
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    also, here is what i think is better

    SCAR Code:
    function GenerateRandomWord : String;
    var s : TStringArray;
    begin
      s := ['youtube', 'villavu srl', 'facebook', 'how big is the earth?',
            'google maps', 'new planet found', 'over population', 'global warming',
            'homework help', 'how to code html?'];
      result := s[random(high(s))];
    end;

    that way, if you ever want to add in more searches, all you need to do is add in the string, and your good
    Wish I understood that code haha I'm sorta new to SCAR. Only been doing the basics. Haven't really read much about arrays and stuff...

  13. #13
    Join Date
    Oct 2007
    Posts
    742
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    YEAH! Silly Akwardsaw...
    Woot woot.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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