Line 432: [Hint] (10376:1): Variable 'OLDMS' never used in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar
Line 432: [Hint] (10376:1): Variable 'OLDMS' never used in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Core/AntiRandoms/AntiRandoms.scar
it means pretty much nothing, your script will still run fine without it, but in the antirandoms in srl rev 11, there is a variable (oldms) that is never used in the script. it shouldn't effect it at all, but if you want to change it, change antirandoms.scar by doing this:
-open up antirandoms.scar
-find line 432 or search for OLDMS
-delete the variable OLDMS
-should look like this:
SCAR Code:{*******************************************************************************
function SolvePinball: Boolean;
by: Wizzup?
Description: Attempts to solve the Pinball random.
*******************************************************************************}
Function SolvePinball: Boolean;
Var
PilDTM, cts, Time, dx, dy, Time2: Integer;
Angle: Extended;
Begin
LogOut;
Exit;
While ClickContinue(True, True) Do
Begin
Wait(100);
End;
Time := GetSystemTime;
While (p_GetScore = -1) Do
Begin
Wait(500);
If GetSystemTime - Time > 10000 Then
Begin
LogOut;
Exit;
End;
End;
Wait(5000);
cts := GetColorToleranceSpeed;
PilDTM := DTMFromString('78DA63E460646070604001BE27E3188481342' +
'394CF08526385AA26EA6426A61A1F543589E78B50D50800596AA8' +
'6AC236A7C0D5FC07020022820B78');
Time := GetSystemTime;
Time2 := GetSystemTime;
WriteLn('Starting the actual solving');
repeat
If GetSystemTime - Time2 > 60000 Then
Begin
Time2 := GetSystemTime;
Mouse(MSCX, MSCY, 5, 5, True);
Wait(1000);
End;
If TrollsInGoodPos Then
Begin
ColorToleranceSpeed(0);
If finddtmrotated(PilDTM, dx, dy, MSX1, MSY1, MSX2, MSY2,
-Radians(90), Radians(90), 0.05, Angle) Then
Begin
mouse(dx, dy, 0, 0, True);
WriteLn('Found a Pillar.');
Wait(5000);
End;
End;
wait(50);
If Not LoggedIn Then
Break;
until (p_GetScore = 10) Or (GetSystemTime - Time > 240000);
WriteLn('Done with pinball');
Result := GetOutOfHere;
FreeDTM(PilDTM);
ColorToleranceSpeed(cts);
If Result = False Then
Begin
LogOut;
Players[CurrentPlayer].Rand := 'No Pinball';
Players[CurrentPlayer].Active := False;
Exit;
End;
Pinball := Pinball + 1;
WriteLn('Done with pinball.');
End;
It means that we forgot to take away an unused variable, so nothing important.
Closed.
There are currently 1 users browsing this thread. (0 members and 1 guests)