Footy
2012-06-23 09:13:33
So I am almost finished my first script, a camelot teleporter, but when it moves the mouse, it moves very slow, pixel by pixel in the direction of the target. is there something wrong with my code? Thanks
program CamTele;
{$i srl/srl.simba}
//Made for RS downloadable
var
Tele, x, y: integer;
Procedure Start;
begin
mouse(748, 188, 15, 26, 1)
end;
Procedure Teleport;
begin
tele := DTMFromString('mWAAAAHicY2FgYGAGYlYGCGCC0ixQNkjc3SKMYe3eh3CMDhjRMAgAAFk6B9Q=');
SetupSRL
repeat
if FindDTM(tele, x, y, MIX1, MIY1, MIX2, MIY2) then
begin
if isuptext('camelot') then
begin
MMouse(x, y, 15, 15);
Mouse(x, y, 0, 0, 1);
wait(randomrange(2000, 2500));
end;
end;
until(false);
end;
Procedure Randoms;
begin
if findnormalrandoms or findnoninventoryrandoms then
begin
logout;
terminatescript;
end;
end;
begin
Start
Repeat
Teleport;
Randoms;
until(false);
end.