Results 1 to 18 of 18

Thread: Arrays

  1. #1
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Arrays

    NOTE: this is runescape, a friend asked me to make him a script for this one website where you have to click a button.

    Ok so i'm trying to figure out arrays. And on this game you have to scroll down and click a button, but like most games theres things to stop autoers.

    You have to:
    -Scroll Down [checkmark]
    -Click the proceed button [checkmark]

    BUT the button moves and its the same text color as other things on the screen, this is really hard to explain. So I made this:
    SCAR Code:
    procedure ClickEveryWhere;
    var
     CEW : array of integer;
    begin
     CEW([331, 341, 351, 361, 371, 381, 391, 401, 411]);
     if timeFromMark(FailSafeTM > 10000) then
       begin
       for CEW:=1 to 9 do
        Mouse(770, CEW, 0, 0, true);
        wait(10);
       end;
    end;

    Thats all i got I think i'm doing something wrong.

    SIDENOTE: The Integer
    SCAR Code:
    FailSafeTM
    Is from another procedure.

    Any help would be apprecaited

  2. #2
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    wait so what are you actually asking?
    you want someone to right a procedure for you or you want someone to tell you how to use arrays?

    :s

    T~M

  3. #3
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well I don't want anyone to make one for me, because I wanted to learn. Yes i've looked at some tutorials but I was wondering if I was any where close to getting it right

  4. #4
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just make it hold the mouse at the scrollbar, move it to the button, release it.
    Then search for a bitmap of the button and press it.

  5. #5
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'll try it but the name on the Button changes so i'd have to make a couple

  6. #6
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does it have a certain color?
    A link would be appreciated

  7. #7
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes I know its pokemon

    but this is it


    And the button is the same color as the black text and it changes names

    I.E.

    the colors are the same the name changes, you get the picture

  8. #8
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    btw if ur using that function in ur actual script i would use randomness on ur mouse then used arrays

  9. #9
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Now I don't get it. Are you just supposed to press the continue button?

  10. #10
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yes sir and then scroll down again

  11. #11
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure ScrollTillStop(x, y: Integer);
    var
      C, z, v: Integer;
    begin
      z := 0; // x-coordinate to scrolldownbutton
      v := 0; // y-coordinate to scrolldownbutton
      C := GetColor(x, y);
      HoldMouse(z, v, True); // Coordinates to scrolldown button
      repeat
        Wait(20);
      until not(C = GetColor(x, y);
      ReleaseMouse(z, v, True);
    end;

    As the x, y you input where to scroll to.
    the buttons are equally big aren't they?
    Make a DTM of them and search for it. Then click it when you've found it.

  12. #12
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    uhh I wasn't having trouble with scrolling down but i figured it out thanks

  13. #13
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    SCAR Code:
    procedure ClickEveryWhere;
    var
     CEW : array of integer;
      i : Integer;
    begin
     CEW := ([331, 341, 351, 361, 371, 381, 391, 401, 411]);
     if timeFromMark(FailSafeTM > 10000) then
       begin
       for i :=0 to 9 do//Arrays always start at 0, and your already using the Var CEW, to use i.
        Mouse(770, CEW[i], 0, 0, true);//the CEW[i] : i is telling it which number in the array to use
        wait(10);
       end;
    end;

    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  14. #14
    Join Date
    Dec 2008
    Location
    In a galaxy far, far away...
    Posts
    584
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by All that is man View Post
    but like most games theres things to stop autoers.
    Quote Originally Posted by pur3b100d View Post
    btw if ur using that function in ur actual script i would use randomness on ur mouse then used arrays
    lol... Just so you know this is a online text-based game, programmed in PHP, there really is no way to check if you are autoing... Its not possible for the websites server to catch your x, y positions on the screen, therefore you do not have to make it simulate a real human. Just use some easy functions from the SCAR manual no need for random waits and etc...

  15. #15
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MoveMouse, ClickMouse etc. .

    Also, there may be a way to catch the coordinates but probably illegal XD. Also might need some plugin or something. Not really possible though.

  16. #16
    Join Date
    Mar 2009
    Location
    Illinois
    Posts
    292
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks noidea I get them now...
    ...I think

    And Nadeem I know that but the way they do it is by using the same color and changing the position of the button

  17. #17
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Why not make a bitmap of the ^ button and say clickmouse and hold!!! Can't remember function though../

  18. #18
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    HoldMouse(x, y);
    ReleaseMouse(x, y);
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

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
  •