SRL Archive - General Botting Help

Just a plain WCing script [Need help][RSPS]


Volture

2014-01-21 21:30:27

So whenever I click play it goes to the top left of my screen and right clicks up there.
I was following this guide;
http://villavu.com/forum/showthread.php?t=94909

But put in a OS at the top.. Sometimes it just sits there after I click play and it shows it's playing (from the play button being selected)
but will just sit there…
Here's my code

Program ChopTree;
{$I SRL-OSR/SRL.simba}
Procedure ClickTree;
var
X,Y:Integer;
begin
FindColorTolerance(X, Y, 10336, 262, 91, 289, 116, 5)
begin
mmouse(x, y,1,1);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
MouseSpeed := 15;
SetupSRL;
ClickTree;
end.

I'm really new to this so any help is very much appreciated sorry I sound so dumb lol.

N1234

2014-01-22 15:23:35

is it for a private server and your testing it on osrs? i cant help with the code because i will damage it beyond any repair even trying to script (no joke) but make sure your SMART is enabled (if your using it) that may be why the script will load, but becomes unresponsive. hope this helps =]

koryperson

2014-01-22 21:47:12

This will help a little bit, I took out the mmouse and clickmouse, and replaced with Mouse. It does all of it, but in one function.

Keep in mind that you're only calling the procedure once in your script at the bottom, so it will run the Procedure ChopTree only one time through then end, meaning if it doesn't find it, it will just end.

Program ChopTree;
{$I SRL-OSR/SRL.simba}

Procedure ClickTree;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 10336, 262, 91, 289, 116, 5) then //Changed to an if...then statement because it's better
begin
`Mouse(x, y, 0, 0);
End;
End;

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