Hello again,
Thanks to the people who helped me out on my other question.
I've done what people said and added FindNormalRandoms; and procedure DeclarePlayers; into the script.
This is what it looks like now:
SCAR Code:
program New;
{.include SRL/SRL.scar}
{.include SRL/SRL/Skill/Mining.scar}
procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name := 'Username';
Players[0].Pass := 'Password';
Players[0].Nick := 'Nick';
Players[0].Active := True;
end;
Var
x, y: integer;
begin
Repeat
Mousespeed := 15
DropAll;
Repeat
LoadRockRecords;
FindObjRock(x, y, Varrock_Iron);
ClickMouse(x, y, True);
FindNormalRandoms;
Wait(3000+random(2000));
Until (InvFull= True);
Until false
end.
However when I try and run the script, the following message comes up in the debug box: [Runtime Error] : Out Of Range in line 1087 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar
Then it opens up a new tab - AntiRandoms.scar and shows me line 1087 which reads:
SCAR Code:
if FindTPAinTPA(Players[CurrentPlayer].NickTPA,TPA,Matches) then //Length check inside the function ;)
What do I need to do to get the anti-random to work?
And is there anything that needs to be done to my script?