Log in

View Full Version : How do i..



Rs-Gp-4U
12-28-2007, 10:36 AM
Hey guys i was wondering how i set a color in const and then make it so if it see's the color it clicks on it, i need it do click then color then.. click another etc
Can someone post how to do that please

* ~ WooT 100Th Post ~ *

Niki
12-28-2007, 10:42 AM
I would really like to help you if i could but i haven´t been on at srl-forums at a year so i don´t remember how to script any more :P


Ill trie to figure it out.

Rs-Gp-4U
12-28-2007, 10:46 AM
I need answers...

mickaliscious
12-29-2007, 12:08 AM
Okay you know how to set up a constant right?

program New;
{.include SRL/SRL.scar}
const
TreeColor = 1156843; //just made this up
begin
SetupSRL;
ActivateClient;
if FindColorTolerance(x, y, TreeColor, MSX1, MSY1, MSX2, MSY2, 5) then
Mouse(x, y, 5, 5, True);
end.


This searches the mainscreen of runescape for a color you declared as a constant with a tolerance of 5 and if it finds it it clicks it. The 5, 5 of the Mouse is the random amount of distance added and the True means it will left-click.

Rs-Gp-4U
12-29-2007, 12:04 PM
I know about consts i just want to know how to make it so you can set a color in const and then it clicks i am confused because i do not know how to store multiple colors and then click then click etc

And its not on rs btw its on desktop =)

John Ayy
12-30-2007, 11:36 PM
Yeah, just do that and youll be fine.

footballjds
12-31-2007, 05:48 PM
change the MSX1 ect to the real coords your looking for the color at. its not hard, read a tut b4 asking easy tut answered questions!