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
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

define where the color is
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.
Are you sure you defined the client with the crosshair?
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

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
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

bad standards but ok...
There are currently 1 users browsing this thread. (0 members and 1 guests)