for private server.
all I need it to click a dtm (in inventory section), then click on a color in the main screen.
help please
for private server.
all I need it to click a dtm (in inventory section), then click on a color in the main screen.
help please
Oh Hai Dar
er cant you just doSCAR Code:if finddtm({Insert DTM}, x, y, mix1, miy1, mix2, miy2) then
and
SCAR Code:FindColorsSpiralTolerance(MSCX, MSCY, TPA, {InsertColor}, MSCX, MSCY, MSCX, MSCY, 25);
you might want to think about changing the tolerance for the findcolorsspiraltolerance depending on how common/uncommon the color may be.
if you need more help putting a script together I can help more.
“Ignorance, the root and the stem of every evil.”
can any one make a simple script?
I'll add the dtm and colors my self
Oh Hai Dar
SCAR Code:program Thing;
{.include SRL/SRL.scar}
const
YourColor = ?;
Tolerance = ?;
var
DTM : integer;
DTMLoaded : boolean;
procedure ClickDTM;
var
x, y : integer;
begin
if DTMLoaded then
begin
if FindDTM(x, y, DTM, MIX1, MIY1, MIX2, MIY2) then
begin
Mouse(x, y, 3, 3, true);
wait(100 + random(200));
end else
begin
Writeln('Could not find the DTM, terminating.');
TerminateScript;
end;
end;
end;
procedure ClickColor;
var
x, y : integer;
begin
If FindColorSpiralTolerance(x, y, YourColor, MSX1, MSY1, MSX2, MSY2, Tolerance) then
begin
Mouse(x, y, 3, 3, true);
Wait(100 + random(200));
end else
begin
Writeln('Could not find the color, terminating.');
end;
end;
procedure LoadDTM;
begin
if not DTMLoaded then
begin
DTM := DTMFromString('DTM HERE');
DTMLoaded := true;
end;
end;
begin
LoadDTMs;
repeat
ClickDTM;
ClickColor;
until(IsFKeyDown(12));
end.
Pretty simple.
I don't know if it's what you want but I typed it in quick reply box. I compiled it in SCAR to make sure and it compiles. Not sure if it works though. Just set the consts and the DTM in the LoadDTM procedure.
ty![]()
Oh Hai Dar
main_ftw, you should be able to do something that simple...
Yeah tbh... This is all soo basic stuff.
Ce ne sont que des gueux
Sorry(:
Don't got time to learn scar atm(:
Oh Hai Dar
You have been here longer than me and you should know SCAR already...regardless this stuff you want done is like the basics. I could have used TPAs but really I don't think it's needed for you.
..
No really time for scar sorry
but I'll contribute as much as I can to the srl community.
Whats the tolorance in the script?
Oh Hai Dar
Change the const
SCAR Code:Tolerance = ?;
Try 10 first and just keep trying until it works.
Tolerance is what makes it not look for the exact colour you fill in, but that colour with a random amount added to it (or something), because RS's colours change all the time, this is needed.
Ce ne sont que des gueux
ty
Oh Hai Dar
When what you are going to post in only 2 characters long don't bother posting okay? And tolerance is required as colors in RuneScape change all the time. It searches for a color with the tolerance subtracted or added to the HSL values. Something similar to that I think.
You can use FindColorsSpiralTolerance but it's not needed as it is not really needed for this. No need for TPA. You can use 1 point instead
.
There are currently 1 users browsing this thread. (0 members and 1 guests)