SRL Archive - General Botting Help

How to make a script that clicks


firevenge007

2014-08-07 02:18:52

So, I'm trying to make a script on a RuneScape Private Server. All I wanted for it to do was to click where I was standing as a way to learn how to familiarize myself with Simba. But all my program does is move the mouse to wherever the starting position of my mouse is when I run the program.

Here is the following code:
Program clicker;
{$i srl-osr/srl.simba}

var
clicks: Integer;

procedure startClicking;
begin
repeat
Mouse(266, 187, 2, 2, true);
Inc(clicks);
WriteLn(IntToStr(clicks));
until (clicks >= 10);
end;

begin
ClearDebug;
startClicking;
end.

Any insight on what I am doing wrong? Thanks.

Flight

2014-08-07 02:29:55

It might be because you didn't setup SRL. Try this instead:

Program clicker;
{$i srl-osr/srl.simba}

procedure startClicking;
var
clicks: Integer;
begin
while (clicks < 10) do
begin
MMouse(x66, 187, 2, 2);
clickMouse2(true);
Inc(clicks);
WriteLn(IntToStr(clicks));
end;
end;

begin
SetupSRL;
ClearDebug;
startClicking;
end.