PDA

View Full Version : Quick Question Please help



Kozs
03-04-2013, 11:32 PM
Is it possible to make it so when I walk near the object, it detects and clicks it... For my Script I just want it to smith Rune2h's I spent like 3 days on it so far its very frustrating


Program SmithingRune2h;
{$i srl/srl.simba}
Procedure ClickBank;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 5264475, 718, 193, 718, 193, 5000) then
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
wait(3150);
Mouse(475,133,0,0,Mouse_Right); //selects rune bar
wait(3150);
Mouse(486,244,0,0,Mouse_Left); //withdraw all
wait(3150);
end;
end;
Begin
MouseSpeed := 15;
ClickBank;
SetupSRL;
end.

Le Jingle
03-04-2013, 11:41 PM
Have you seen Ashaman88's Varrock West Bank Smither (http://villavu.com/forum/showthread.php?t=89449)? If you're on normal RS, this would probably be ideal for the short description you asked. Aside from me suggesting tutorials, if you would like to give some more information to your snippet, I could try to help you out from there.

Cheers,
Lj

Sjoe
03-04-2013, 11:43 PM
Try using AutoColorAid for color picking and use FindObject since it will check for the correct uptext too.
Guide on AutoColorAid http://villavu.com/forum/showthread.php?t=71074

Also put SetupSRL; at the beginning of your main loop.

Begin
SetupSRL;
MouseSpeed := 15;
ClickBank;
end.

Kozs
03-04-2013, 11:53 PM
Le Jingle;

I'm playin on a RSPS I ONLY need the Rune 2h's