Results 1 to 8 of 8

Thread: Help !

  1. #1
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help !

    Hey,

    I need help with the FindColor Function.........
    I select my Client ( Not RS ) and then Inside that client I define a smaller area where to find the color in.....
    And this program starts clicking on here:



    Help !

    Fort Ash
    I was born to cheat on Hero

  2. #2
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    define where the color is

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Wait, so you define your client but it clicks off of it? How are you defining that smaller area? Some more info would be helpful.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Are you sure you defined the client with the crosshair?

  5. #5
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    Yes I'm sure I selected the Client....

    Here's another test I did.... Same result.

    SCAR Code:
    Program Test;

    Var
     x, y : Integer;
     Spear : Array [ 1..4 ] of Integer;
     
    Procedure LoadStuff;
     Begin
      Spear[1] := 5550278;
      Spear[2] := 4686488;
      Spear[3] := 842640;
      Spear[4] := 4820925;
     End;
     
    Procedure FindIt;
     Begin
      if ( ( FindColor ( Spear[1], x, y, 342, 226, 695, 587 ) ) or ( FindColor ( Spear[2], x, y, 342, 226, 695, 587 ) ) or ( FindColor ( Spear[3], x, y, 342, 226, 695, 587 ) ) or ( FindColor ( Spear[4], x, y, 342, 226, 695, 587 ) ) ) then
      begin
       MoveMouseSmooth ( x, y );
       Wait ( 50 + random ( 50 ) );
       Writeln ( 'Found at ' + ( IntToStr ( x ) ) + ', ' + ( IntToStr ( y ) ) + ' Coordinates' );
       Wait ( 2000 + random ( 50 ) );
      end else
      begin
       Wait ( 2000 + random ( 50 ) );
      end;
     End;
     
    Begin
     ActivateClient;
     LoadStuff;
     Repeat
      FindIt;
     Until ( False )
    End.

    The Result :

    SCAR Code:
    Found at 259, 0 Coordinates
    Found at 259, 0 Coordinates
    Found at 251, 0 Coordinates
    Found at 248, 0 Coordinates
    Found at 240, 0 Coordinates
    Found at 259, 0 Coordinates
    Found at 262, 0 Coordinates

    Help !

    Fort Ash
    I was born to cheat on Hero

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Program Test;

    Var
      x, y : Integer;

    const
      Spear1 = 5550278;
      Spear2 = 4686488;
      Spear3 = 842640;
      Spear4 = 4820925;

    Procedure FindIt;
    Begin
      if((FindColor(x, y, Spear1, 342, 226, 695, 587))or(FindColor(x, y, Spear2, 342, 226, 695, 587)or(FindColor(x, y, Spear3, 342, 226, 695, 587))or(FindColor(x, y, Spear4, 342, 226, 695, 587))))then
      begin
        MoveMouseSmooth(x, y);
        Wait(50+random(50));
        Writeln('Found at '+(IntToStr(x))+', '+(IntToStr(y))+' Coordinates');
        Wait(2000+random(50));
      end else
      begin
        Wait(2000+random(50));
      end;
    End;

    Begin
      ActivateClient;
      Repeat
        FindIt;
      Until(False);
    End.

    it was a problem with the arrays I think.. and your spacing was messing it up a lot too.. this works now

  7. #7
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    Thanks for your help.....
    No it wasn't the problem with the arrays. This was:

    My Script:

    SCAR Code:
    if ( FindColor ( Spear[1], x, y, ........

    Yours:

    SCAR Code:
    if ( FindColor ( x, y, Spear[1], ........

    And my spacing is just fine..... Its how I script.

    Thanks again.

    Fort Ash
    I was born to cheat on Hero

  8. #8
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    bad standards but ok...

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
  •