• Log in or sign up for an account here: https://www.sythe.org/login

Converting Code?

FatalScar

Newcomer
Joined
Oct 30, 2009
Sythe Gold
0
Messages
1
Anyone here any good with SCAR?
Here's how it should be:
Code:
function mainloop() {
if(FindColor(255, 255, 255) == true) { //FindColor(Red Value, Green Value, Blue Value)
   clickMouse(141, 284); //x & y coords;
   wait(1000);
   clickMouse(100, 300); // x & y coords
} else {
   clickColor(FindColor(25, 50, 75)); //clicks a color
}
}

And that code keeps looping...

Can someone convert it to SCAR for me please?
 
Use the SRL Include

procedure MainLoop;

var
x, y:integer;

begin
if (FindColor(x, y, thecolor, MSX1, MSY1, MSX2, MSY2, ColorTol) then
begin
Mouse(141, 284, 0, 0, true)
wait(1000+random(400))
Mouse(100, 300, 0, 0)
end;
if Not(FindColor(x, y, thecolor, MSX1, MSY1, MSX2, MSY2, ColorTol) then
begin
FindColor(x, y, thecolor, MSX1, MSY1, MSX2, MSY2, ColorTol)
Mouse(x, y, 0, 0, true)
end;
end;



This should work, get the SRL include and replace thecolor with the color you want to find and thetol with the color tolerance.

Sorry if it doesn't, havn't coded in a while.
 
Runescape Gamblingrunescape gambling
Back
Top