Results 1 to 24 of 24

Thread: I have some Q's and need some A's

  1. #1
    Join Date
    Nov 2008
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default I have some Q's and need some A's

    First off, i have basicly no knowlage of Scripting, I did do my curser but it is absolute rubbish.... i have sufficiant computer knolage but i dont get this.....

    I need to know

    -where i can find a good tut which is EASY to understand?

    -Whats up with these different languages for scrippting and which is the easyest?

    - how do i tell if a script is updated?

    -How would i make the mouse find and click on a color?

    thats it lol
    need some help,

    goodpeople

    This is how I can script...


    \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/

  2. #2
    Join Date
    Sep 2007
    Posts
    638
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Looking for a good tut now...you really could search and find one easy
    http://www.srl-forums.com/forum/tuto...ners-f176.html
    http://www.villavu.com/forum/showthread.php?t=3293

    By different scripting languages I assume you mean regular and reflection. Regular SRL scripting isn't too tough to learn. I don't know about reflection but it would be a good idea to learn regular first.

    You can tell if a script is updated by when it was posted. If it was posted more than a month or two ago, isn't updated.

    As to the script...

    SCAR Code:
    {.include SRL/SRL.Scar}

    Procedure MapThing;
    Begin

    MakeCompass('W');

    end;

    Procedure Clikin;

    Begin
    mouse(667, 252, 3, 3, true);
    Wait(500)
    mouse(272, 120, 3, 3, true);
    end;

    begin
    Setupsrl

    repeat

    Clikin

    until(false);

    end.

    try this...

    SCAR Code:
    program Cursor;
    {.include SRL/SRL.Scar}

    Procedure MapThing; //you don't need so many spaces
    Begin
      MakeCompass('W'); //you didn't actually use this in your main loop
    end;

    Procedure Clikin;
    Begin
      mouse(667, 252, 3, 3, true); // I don't know what this clicks but
      Wait(500);                   //try not to do direct coordinate clicks
      mouse(272, 120, 3, 3, true); // make sure that you follow your lines
    end;                           //with semicolons

    begin
      SetupSRL; //missed another semi colon
      MakeCompass('w');  //one line things don't need their own procedure
      repeat
      Clikin; //missed another
      until(false);  //never have an endless loop
      end.

  3. #3
    Join Date
    Nov 2008
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, very helpful

  4. #4
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program Cursor;
    {.include SRL/SRL.Scar}
    {.include SRL/SRL/Skill/Magic.scar}

    var
      i : integer;

    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;
      Players[0].Integers[0] := 100; //how many casts
    end;

    Procedure MapThing;
    Begin
      MakeCompass('W');
    end;

    Procedure Clikin;
    Begin
      Cast('curse');
      Wait(500)
      mouse(272, 120, 3, 3, true);
    end;

    begin
      Setupsrl;
      DeclarePlayers;
      ClearDebug;
      ActivateClient;
      LoginPLayer;
      MapThing;
      repeat
        Clikin;
        Inc(i);
        FindNormalRandoms;
      until(i >= Players[CurrentPlayer].Integers[0]);
    end.

    It's a start, nothing too complex in there
    Project: Welcome To Rainbow

  5. #5
    Join Date
    Nov 2008
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    How Do I Find Color And Click in sted of coardanants?

  6. #6
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Program Lolwut;
    {.include srl/srl.scar}

    var
      x, y : Integer;

    begin
      SetupSrl;
      If FindColorTolerance(x, y, 0, MSX1, MSY1, MSX2, MSY2, 5) Then
        MMouse(x, y, 3, 3);
    end.

    .

    ~Sandstorm

  7. #7
    Join Date
    Nov 2008
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol great help wer do i put in color number?

  8. #8
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The 0 is your color. The 5 is your tolerance.

    ~Sandstorm

  9. #9
    Join Date
    Jan 2009
    Location
    Louisiana, USA
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I am so confused right now, because I cant get any scripts to work. The only ones I got to work were the realy simple ones like making messages and moving the mouse. Everything I put into it there is always an error, is it because of the version of scar im using. 3.15

    please help

  10. #10
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    no, i use version 3.15
    Project: Welcome To Rainbow

  11. #11
    Join Date
    Nov 2008
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks! ill try to put those togeter and post it up!!!

  12. #12
    Join Date
    Nov 2008
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Procedure Clikin;
    Begin
    Cast('curse');
    Wait(500)
    mouse(272, 120, 3, 3, true);
    end;

    how could i add the color finder in here insted of, mouse(272, 120, 3, 3, true); ????

  13. #13
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure Clikin;
    var
      x, y : integer;
    Begin
      Cast('curse');
      Wait(500)
      If FindColorTolerance(x, y, color here, MSX1, MSY1, MSX2, MSY2, 5) Then
        mouse(x, y, 3, 3, true);
    end;

    . Feel free to post here/pm me if you have further questions.

    ~Sandstorm

  14. #14
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sandstorm View Post
    SCAR Code:
    Procedure Clikin;
    var
      x, y : integer;
    Begin
      Cast('curse');
      Wait(500)
      If FindColorTolerance(x, y, color here, MSX1, MSY1, MSX2, MSY2, 5) Then
        mouse(x, y, 3, 3, true);
    end;

    . Feel free to post here/pm me if you have further questions.

    ~Sandstorm
    change to CastOn(...)
    Project: Welcome To Rainbow

  15. #15
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    change to CastOn(...)
    Not familiar with the command, which is why I didn't put it in ^.^.

    ~Sandstorm

    P.S. - Your signature is now wrong (about 80%~ of the time). There's a Prison solver out now ^.^.

  16. #16
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    @ Sandstorm - I just re-checked Includes

    SRL Includes cannot solve it yet.
    I KNOW nauman and manfromczech have made one, i also tested it

    So technically, you're wrong - so stop talking
    Project: Welcome To Rainbow

  17. #17
    Join Date
    Sep 2007
    Posts
    638
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    add SCAR tags around SCAR code. You do this by clicking 'Go Advanced' at the bottom of the page then clicking the orange bulldozer and putting the code between the [SCAR] and the [/SCAR (with an ']' at the end).

  18. #18
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Aser View Post
    add SCAR tags around SCAR code. You do this by clicking 'Go Advanced' at the bottom of the page then clicking the orange bulldozer and putting the code between the [SCAR] and the [/SCAR (with an ']' at the end).
    Yes, that is a good idea
    Project: Welcome To Rainbow

  19. #19
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    @ Sandstorm - I just re-checked Includes

    SRL Includes cannot solve it yet.
    I KNOW nauman and manfromczech have made one, i also tested it

    So technically, you're wrong - so stop talking
    No need to get hostile. In MY opinion, SRL CAN solve it, because it was made using the SRL include, some of it's functions/procedures, etc.

    ~Sandstorm

  20. #20
    Join Date
    Nov 2008
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks
    goodpeople

    SCAR Code:
    lol

  21. #21
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sandstorm View Post
    No need to get hostile. In MY opinion, SRL CAN solve it, because it was made using the SRL include, some of it's functions/procedures, etc.

    ~Sandstorm
    so if i went...

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    begin
      ActivateClient;
      FindNormalRandoms;
    end;

    ..it would solve Prison Pete? That's what i consider to be solvable by SRL includes
    Project: Welcome To Rainbow

  22. #22
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    so if i went...

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    begin
      ActivateClient;
      FindNormalRandoms;
    end;

    ..it would solve Prison Pete? That's what i consider to be solvable by SRL includes
    No, it wouldn't. It uses the SRL includes (the functions/procedures) to solve it. That's what I consider solved by SRL to be.

    ~Sandstorm

  23. #23
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Sandstorm View Post
    No, it wouldn't. It uses the SRL includes (the functions/procedures) to solve it. That's what I consider solved by SRL to be.

    ~Sandstorm
    So SRL could potentially FINISH Rs completely, *IF* it uses SRL includes
    (but it is not an include, at least not yet)

    Should I change my sig to "SRL will finish RS"

    Because there is a script for almost every skill, so SRL == 99 all skills

    People need not write anymore scripts, RS is SOLVEd!

    EDIT: Damn, i just realised how much we hijacked this thread... call it even and both delete all posts..?
    Project: Welcome To Rainbow

  24. #24
    Join Date
    Jul 2008
    Location
    England
    Posts
    763
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's fun once you learn
    lol

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
  •