Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 55

Thread: Script Help

  1. #26
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    He is using Scar Frement.
    But I'm saying no to that, he must download Simba, I dislike SCAR, and I refuse to teach someone how to use SCAR, instead, I instruct to use Simba
    There used to be something meaningful here.

  2. #27
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have simba but Where do I put it? In the scar folder? and how woul this look typed out if i used that as a color ignore my previous line with those coordinates.

    ok i got it to move the mouse there but it wont click. Also How would i make this loop unless i hit "F8"
    Last edited by omgbeans; 01-09-2011 at 09:52 PM.

  3. #28
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by omgbeans View Post
    I have simba but Where do I put it? In the scar folder? and how woul this look typed out if i used that as a color ignore my previous line with those coordinates.
    I already gave you exact example:
    Simba Code:
    program Color;
    {$I SRL/SRL.scar}

    var x, y: Integer;

    begin
    SetupSRL;
      if FindColor(x, y, 2041538, 0, 0, 1200, 300) then begin
        Writeln('Found color!');
        Mouse(x, y, 1, 1);
      end else begin
        Writeln('Warning, color not found!');
      end;
    FreeSRL;
    end.
    There used to be something meaningful here.

  4. #29
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    But I'm saying no to that, he must download Simba, I dislike SCAR, and I refuse to teach someone how to use SCAR, instead, I instruct to use Simba
    Thats what I said.

    omgbeans, look at the how to install simba then come back

  5. #30
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok well thanks for the help so far then

  6. #31
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Why can't you just use some coords to click the button?

  7. #32
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Why can't you just use some coords to click the button?
    Now thats not good practice is it?
    There used to be something meaningful here.

  8. #33
    Join Date
    Mar 2007
    Posts
    3,681
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    You simply have to download simba, install it, and enable/update the extensions Frement instructed you to. After that, run his script. If this does not work tell us clearly why it doesn't or where it got stuck.

  9. #34
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have simba but theres no instructions where to install it. I looked at view and opened extensions and its blank.

    This works in scar and keeps running until i hit F8 but it wont keep clicking the color.

    program Colour;

    var
    x, y : integer;
    begin
    If FindColor(x, y, 1781462, 604, 63, 1276, 776) Then
    begin
    writeln('Found colour');
    movemouse(x, y);
    wait (1000);
    clickmouse(x, y, true);
    repeat;
    until isFKeyDown (8);
    end;
    end.

  10. #35
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    program Colour;
    
    
    var
    
    x, y : integer;
    
    begin
    
    If FindColor(x, y, 1781462, 604, 63, 1276, 776) Then
    Repeat
    begin
    
    writeln('Found colour');
    
    movemouse(x, y);
    
    wait (1000);
    
    clickmouse(x, y, true);
    
    until isFKeyDown (8);
    
    end;
    
    end.

  11. #36
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    Code:
    program Colour;
    
    
    var
    
    x, y : integer;
    
    begin
    
    If FindColor(x, y, 1781462, 604, 63, 1276, 776) Then
    Repeat
    begin
    
    writeln('Found colour');
    
    movemouse(x, y);
    
    wait (1000);
    
    clickmouse(x, y, true);
    
    until isFKeyDown (8);
    
    end;
    
    end.
    that doesnt work in SCAR.

    I downloaded and installed Simba and I get this error now

    [Error] (11:22): Invalid number of parameters at line 10
    when using this code

    program Color;
    {$I SRL/SRL.scar}

    var x, y: Integer;

    begin
    SetupSRL;
    if FindColor(x, y, 1781462, 604, 63, 1276, 776) then begin
    Writeln('Found color!');
    Mouse(x, y, 1, 1);
    end else begin
    Writeln('Warning, color not found!');
    end;
    FreeSRL;
    end.

  12. #37
    Join Date
    Dec 2010
    Posts
    808
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Do begin repeat if findcolor begin
    IN SIMBA!

  13. #38
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program Colour;


    var

    x, y : integer;

    begin

    If FindColor(x, y, 1781462, 604, 63, 1276, 776) Then
    Repeat
    begin

    writeln('Found colour');

    movemouse(x, y);

    wait (1000);

    clickmouse(x, y, true);

    until isFKeyDown (8);

    end;

    end.
    this doesnt work in simba either

    [Error] (21:23): Type mismatch at line 20
    it says this line is wrong

    clickmouse(x, y, true);
    Last edited by omgbeans; 01-09-2011 at 10:57 PM.

  14. #39
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    For simba
    Simba Code:
    program Colour;
    var
      x, y : integer;

    begin
    If FindColor(x, y, 1781462, 604, 63, 1276, 776) Then
      Repeat
        begin
          writeln('Found colour');
          movemouse(x, y);
          wait (1000);
          clickmouse(x, y, 0);
        end;
      until IsKeyDown(119);//isFkeyDown(8) in simba
    end.

  15. #40
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    For simba
    Simba Code:
    program Colour;
    var
      x, y : integer;

    begin
    If FindColor(x, y, 1781462, 604, 63, 1276, 776) Then
      Repeat
        begin
          writeln('Found colour');
          movemouse(x, y);
          wait (1000);
          clickmouse(x, y, 0);
        end;
      until IsKeyDown(119);//isFkeyDown(8) in simba
    end.
    thanks that works. The only problem I have now is it wont click the button hard enough to get it to do the action that happens after the button is clicked.

  16. #41
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    SCAR Code:
    IsKeyDown(119);
    while not IsKeyDown(199) do
    begin
      if FindColor(x, y, 1781462, 604, 63, 1276, 776) then
      begin
        WriteLn('Found color!');
        MoveMouse(X, Y);
        Wait(100);
        HoldMouse(X, Y, True);
        Wait(100);
        ReleaseMouse(X, Y, True);
      end;
    end;

  17. #42
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    SCAR Code:
    IsKeyDown(119);
    while not IsKeyDown(199) do
    begin
      if FindColor(x, y, 1781462, 604, 63, 1276, 776) then
      begin
        WriteLn('Found color!');
        MoveMouse(X, Y);
        Wait(100);
        HoldMouse(X, Y, True);
        Wait(100);
        ReleaseMouse(X, Y, True);
      end;
    end;
    thanks

    it gives me an error on this line

    [Error] (14:26): Type mismatch at line 13
    and is this how its suppose to look?

    program Colour;
    var
    x, y : integer;
    begin
    IsKeyDown(119);
    while not IsKeyDown(199) do
    begin
    if FindColor(x, y, 1781462, 604, 63, 1276, 776) then
    begin
    WriteLn('Found color!');
    MoveMouse(X, Y);
    Wait(100);
    HoldMouse(X, Y, True);
    Wait(100);
    ReleaseMouse(X, Y, True);
    end;
    end;
    end.

  18. #43
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    You're using simba now? Then replace "True" in HoldMouse() and ReleaseMouse() with "mouse_Left"

  19. #44
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Simba Code:
    program Colour;

    var
      x, y: integer;

    begin
      repeat
        if (FindColor(x, y, 1781462, 604, 63, 1276, 776)) Then
        begin
          WriteLn('Found Colour!');
          MoveMouse(x, y);
          Wait(1000);
          HoldMouse(x, y, mouse_Left);
          Wait(100);
          ReleaseMouse(x, y, mouse_Left);
        end;
      until (IsKeyDown(VK_F8));
    end.
    Last edited by Dgby714; 01-10-2011 at 12:33 AM.

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  20. #45
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    now it wont find the color anymore after running the script over and over

  21. #46
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    You could try FindColorTolerance?
    There used to be something meaningful here.

  22. #47
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Simba Code:
    program Colour;

    var
      I, x, y: integer;

    begin
      repeat
        for I := 0 to 10 do
          if (FindColorTolerance(x, y, 1781462, 604, 63, 1276, 776, I)) Then
          begin
            WriteLn('Found Colour!');
            MoveMouse(x, y);
            Wait(1000);
            ClickMouse(x, y, mouse_Left);
          end;
      until (IsKeyDown(VK_F8));
    end.

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  23. #48
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Not everything needs spoon feeding Dgby
    There used to be something meaningful here.

  24. #49
    Join Date
    Dec 2010
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok that seems to fix the issue of pressing the button as well as finding the color. What does the 1 through 10 mean just the tolerance level? Like 10 is more intensive?
    Last edited by omgbeans; 01-10-2011 at 01:33 AM.

  25. #50
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Quote Originally Posted by omgbeans View Post
    Thanks for all the help. It still wont press down on the button though.
    Then the game has an anti-cheat engine. Have fun.

Page 2 of 3 FirstFirst 123 LastLast

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
  •