SRL Archive - First Scripts

need help with my non-autotyper first scritp


corl455

2007-09-14 09:10:44

im kinda new to scar, and i want to make a powerminer, i was lookin thorugh
other peoples powerminers(to see how THEY do it.) and i need to know what
the numbers mean. so i kno what to put:
if (FindColor(x,y,color1,168,114,414, 316)) AND

Mouse(x,y,5,5,true);

ShowerThoughts

2007-09-14 09:55:51

i will edit this post and explain you :p

if findcolorSpiralTolerance(x,y,color,coords,coords,coords,coords,tolerance) then
//the x,y are the variables were the place of the color is safed at like 0,0 coords ;)
//..the color is where to search for the coords is were to search on the screen
//like only the the mainscreen or inventory //the tol will search in a bigger range to find the //color
the if and the then stament are always used almost always used with findcolor findcolorspiral
findcolorspiraltolerance and more findcolor stuff

if you use if then like above then :

if findcolorspiraltolerance(stuff) then
begin
Mmouse(x,y,0,0);//see it will click the x and the y//were the place were the color is found safed at
mouse(x,y,1,5,true);//mouse will click it true is left and false is right click the mmouse //moves the mouse to the position//more human like
//the 0,0 after the x and y adds some randomness to the positon to click

so

procedure findcolor1;
var
x,y:integer;//you need to save the the coords in this were its found and we need to declare it as an var variable an integer (whole numbers)
begin
if findcolorspiraltolerance(x,y,142543,MSX1,MSY1,MSX2,MSY2,10) then
begin
MMouse(x,y,5,5);//moves
Mouse(x,y,5,5,true);clicks left click
end;
end;

cant write tuts lol i am very bad at it:)