This is going to be my first Runescape scar script (so be nice if it looks like crap), but I having a problem with it. It's making my game lag. So just a couple of questions.
!. Is the lag from the script repeating itself too fast?
2. How do I fix this without compromising speed and reaction?
3. Ive tried adding random wait times are these even neccesary?
4. What other things need to be added to prevent it from being detectable?(keep in my I won't need to run any more than a couple of minutes)
SCAR Code:
program JadKilla;
{.include SRL\SRL.Scar}
var
x,y: Integer;
procedure Range;
begin
if IsFunctionKeyDown(4)then
begin
if not (FindColor(x,y,7183276,670, 339, 670, 339)) then
begin
wait(20+random(200))
Gametab(6);
wait(100+random(300));
Mouse(640, 340, 10, 10, true);
Writeln('Range Protect Mofo!');
end;
end;
end;
procedure Mage;
begin
if IsFunctionKeyDown(5)then
begin
if not (FindColor(x,y,7185335,636, 331, 636, 331)) then
begin
wait(20+random(200))
Gametab(6);
wait(100+random(300));
Mouse(680, 340, 10, 10, true);
wait(100+random(400));
writeln('Mage Protect Mofo!');
end;
end;
end;
begin
SetupSRL;
repeat
Range;
Mage;
until(false)
end.