I'll try and whip up a quick guide for you. ;)
First thing you have to do is add {$i SRL/SRL.simba} to your script, you will need to activate srl.sex in the extension's menu.
program new;
{$i SRL/SRL.simba}
begin
end.
Now we need to find the color of your monster, to do this click the water dropper button and click somewhere on the monster. Now you will get something like this: "6175272"
Start a new procedure; name it anything.
program new;
{$i SRL/SRL.simba}
procedure ClickMonster;
begin
end;
begin
end.
In this procedure we need to declare a variable for the location of the color to be stored in. These variables will be "x, y". So we need to add:
var x, y: Integer;
This is what we have so far:
program new;
{$i SRL/SRL.simba}
procedure ClickMonster;
var x, y: Integer;
begin
end;
begin
end.
Now between the first "begin" and "end;" we will add our code, this is the most important part so don't skip this. Type:
if
FindColor(x, y, colorcode, msx1, msy1, msx2, msy2) then
This finds the color, and set's the value of X and Y the location where the specific color is located. So later we can use them.
Now after that we need to type this:
MoveMouse(x, y);
Wait(500);
Mouse(x, y, 0, 0, true);
This move's the mouse to the location, wait's half a second, and click's where the color is.
This is what we have so far:
program new;
{$i SRL/SRL.simba}
procedure ClickMonster;
var x, y: Integer;
begin
if
FindColor(x, y, colorcode, msx1, msy1, msx2, msy2) then
MoveMouse(x, y);
Wait(500);
Mouse(x, y, 0, 0, true);
end;
begin
end.
Now add the procedure name and "setupsrl;" in the main loop.
begin
setupsrl;
ClickMonster;
end.
To make it repeat; add this: But don't repeat setupsrl; add that above the repeat.
begin
setupsrl;
repeat
ClickMoster;
until false
end.
To make something right click do this:
Mouse(x, y, 0, 0, false);
I'm not going to code this for you, so you should be able to figure the rest out on your own. :D