From: goldrush655
i got something Ricks srl Varrock East Miner loads smart scar and everything i look back at scar it says on the Login Tab it makes
[Runtime Error] : Exception: Access violation at address 0071FDA0 in module 'scar.exe'. Read of address FFFFFFFC in line 227 in script C:\Program Files\SCAR 3.14\includes\SRL/SRL/Core/Login.scar
line 227 looks like this
WriteFileString(TheFile, Chr(13) + 'Current player: '+ UpperCase(Players[CurrentPlayer].Name) + Chr(13)); //* Save NAME to file
It should be because you're StartPlayer is bigger than HowManyPlayers
About SMART,
Replace SetupSRL in SRL.scar with this
procedure SetupSRL;
begin
{$IfDef SMART}
SmartSetup('ams3', False, False);
Wait(10000 + random(5000));
SetTargetDC(SmartGetDC);
repeat
wait(100);
until(SmartGetColor(253, 233)<>1118604);
{$EndIf}
MouseSpeed := 15;
CheckHPFirst := True;
Reincarnate := False;
TalkAfterRandoms := False;
RoadColor := 0;
WaterColor := 0;
BankColor := 0;
LampSkill := 'mining';
SetUpSRLReport;
SetMouseMode(false);
LoadCosineArrays;
SymbolAccuracy:= 0.8;
LoadNPCArray;
LoadSRLBitMaps;
SolveChatRandoms := True;
SetupSRLAutoResponder
UseSandWichSolver := True;
UseBoxSolver := True;
UseCerterSolver := True;
UseFindmod := True;
UseFindtrade := True;
Screenshots := False;
TheFile := RewriteFile(ScriptPath + 'ChatLog.txt', False);
Writeln ('SRL Compiled in '+ IntToStr(GetTimeRunning) + ' msec');
end;
To include smart into script do this
{.include srl/srl/misc/smart.scar}
before {.include srl/srl.scar}
Note: this must be in Smart.scar
{$DEFINE SMART}
Edit: Read Markus's tutorial:p