i've spent 8 hours on making this script work, it is supposed to click on cast curse then move onto dummy and cast the curse on it. Start the script in the magical dummies in lumbridge, here is the script:
SCAR Code:
program New;
{.include srl/srl.scar}
{.include srl/srl/skill/magic.scar}
var
x,y,i: integer; //declaring i,x,y as integers
procedure declareplayers; //declaringplayers
begin
howmanyplayers:=1;
numberofplayers(howmanyplayers);
players[0].name:='user name'; //username
players[0].pass:='pass'; //pass
players[0].nick:='nick'; //3 letters of your username
players[0].active:=true;
end;
procedure randoms; //randoms
begin
findnormalrandoms;
if findfight=true then
begin
runaway('N',true,1,5000+random(1000));
end;
end;
procedure curse;
begin
if loggedin=false then
begin
exit;
end;
Gametab(7);
wait(10+random(10));
Cast('curse');
end;
procedure dummy;
begin
if FindObjTPA(x, y, 9467490, 11, -1, 20, 20, 15, ['Magic dummy']) then
mouse(x ,y ,5 ,5 ,true);
end;
begin
cleardebug; //clears the debug box
SetupSRL; //sets up SRl
Activateclient; //activats client
declareplayers;
currentplayer:=0;
logout;
loginplayer;
makecompass('n');
setangle(true);
repeat
wait(100+random(10));
curse;
dummy;
randoms;
i:=i+1
until(i = 2) //write the number of times you want the script to run
logout;
end.
hope it works.enjoy(h)