Results 1 to 14 of 14

Thread: need SUPER BASIC autocurser help

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default need SUPER BASIC autocurser help

    for private server.
    all I need it to click a dtm (in inventory section), then click on a color in the main screen.

    help please
    Oh Hai Dar

  2. #2
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    er cant you just do
    SCAR Code:
    if finddtm({Insert DTM}, x, y, mix1, miy1, mix2, miy2) then

    and

    SCAR Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, {InsertColor}, MSCX, MSCY, MSCX, MSCY, 25);

    you might want to think about changing the tolerance for the findcolorsspiraltolerance depending on how common/uncommon the color may be.

    if you need more help putting a script together I can help more.
    “Ignorance, the root and the stem of every evil.”

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    can any one make a simple script?

    I'll add the dtm and colors my self
    Oh Hai Dar

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

    Default

    SCAR Code:
    program Thing;
    {.include SRL/SRL.scar}

    const
      YourColor = ?;
      Tolerance = ?;

    var
      DTM : integer;
      DTMLoaded : boolean;
     
    procedure ClickDTM;
    var
      x, y : integer;
    begin
      if DTMLoaded then
      begin
        if FindDTM(x, y, DTM, MIX1, MIY1, MIX2, MIY2) then
        begin
          Mouse(x, y, 3, 3, true);
          wait(100 + random(200));
        end else
        begin
          Writeln('Could not find the DTM, terminating.');
          TerminateScript;
        end;
      end;
    end;

    procedure ClickColor;
    var
      x, y : integer;
    begin
      If FindColorSpiralTolerance(x, y, YourColor, MSX1, MSY1, MSX2, MSY2, Tolerance) then
      begin
        Mouse(x, y, 3, 3, true);
        Wait(100 + random(200));
      end else
      begin
        Writeln('Could not find the color, terminating.');
      end;
    end;

    procedure LoadDTM;
    begin
      if not DTMLoaded then
      begin
        DTM := DTMFromString('DTM HERE');
        DTMLoaded := true;
      end;
    end;

    begin
      LoadDTMs;
      repeat
        ClickDTM;
        ClickColor;
      until(IsFKeyDown(12));
    end.

    Pretty simple.
    I don't know if it's what you want but I typed it in quick reply box. I compiled it in SCAR to make sure and it compiles. Not sure if it works though. Just set the consts and the DTM in the LoadDTM procedure.

  5. #5
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    ty
    Oh Hai Dar

  6. #6
    Join Date
    Oct 2008
    Posts
    500
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    main_ftw, you should be able to do something that simple...

  7. #7
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Yeah tbh... This is all soo basic stuff.
    Ce ne sont que des gueux


  8. #8
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Sorry(:

    Don't got time to learn scar atm(:
    Oh Hai Dar

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

    Default

    You have been here longer than me and you should know SCAR already...regardless this stuff you want done is like the basics. I could have used TPAs but really I don't think it's needed for you .

  10. #10
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    ..
    No really time for scar sorry

    but I'll contribute as much as I can to the srl community.

    Whats the tolorance in the script?
    Oh Hai Dar

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

    Default

    Change the const

    SCAR Code:
    Tolerance = ?;

    Try 10 first and just keep trying until it works.

  12. #12
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Tolerance is what makes it not look for the exact colour you fill in, but that colour with a random amount added to it (or something), because RS's colours change all the time, this is needed.
    Ce ne sont que des gueux


  13. #13
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    ty
    Oh Hai Dar

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

    Default

    When what you are going to post in only 2 characters long don't bother posting okay? And tolerance is required as colors in RuneScape change all the time. It searches for a color with the tolerance subtracted or added to the HSL values. Something similar to that I think .

    Quote Originally Posted by Blumblebee View Post
    er cant you just do
    SCAR Code:
    if finddtm({Insert DTM}, x, y, mix1, miy1, mix2, miy2) then

    and

    SCAR Code:
    FindColorsSpiralTolerance(MSCX, MSCY, TPA, {InsertColor}, MSCX, MSCY, MSCX, MSCY, 25);

    you might want to think about changing the tolerance for the findcolorsspiraltolerance depending on how common/uncommon the color may be.

    if you need more help putting a script together I can help more.
    You can use FindColorsSpiralTolerance but it's not needed as it is not really needed for this. No need for TPA . You can use 1 point instead .

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Test AutoCurser
    By zertunami in forum First Scripts
    Replies: 7
    Last Post: 09-24-2008, 11:49 AM
  2. Replies: 13
    Last Post: 07-26-2008, 05:00 AM
  3. Help with a javascript chat room, SUPER basic
    By Wade007 in forum Web Development
    Replies: 0
    Last Post: 05-09-2008, 06:13 PM
  4. Simple Autocurser (for the zammy monk in Varrock)
    By Klaust in forum First Scripts
    Replies: 39
    Last Post: 12-06-2007, 06:16 AM
  5. so im making an autocurser :) but,....
    By ShowerThoughts in forum News and General
    Replies: 4
    Last Post: 10-27-2007, 06:47 PM

Posting Permissions

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