SRL Archive - S.M.A.R.T. Questions and Answers.

Need Help Please!


effinpanda

2008-06-01 22:26:08

Okay, so I'm terrible with computers in general but I'm alright with scar. The only thing i don't get is SMART. I have looked at every single tut i could find and none help. So please some one tell me how from using scar get to SMART. Every detail please, or just link me to what i need to know in steps. THANKs!

Dracody

2008-06-02 00:59:51

OK man…this is the simplest way, so..:

1) Go to the Scar folder
2) open it
3) open the SRL folder
4) open the includes folder
5) look for smart.scar

heres the direction : \SCAR\includes\SRL\SRL\misc\smart.scar

6) paste this on the first line of it : {$DEFINE SMART}

It should look something like this:

{$DEFINE SMART}
{
smart.scar overwrites the SCAR procedures.
You should always include this before any other include, even SRL.scar
}

procedure MoveMouse(x, y: Integer);
begin
SmartMoveMouse(x, y);
end;

Ok then go back to SRL folder, and look up for the Scar file srl.scar

Open it up, and then you should see this procedure after all the green comments:

procedure SetupSRL;
begin
MouseSpeed := 15;
CheckHPFirst := True;
Reincarnate := False;
TalkAfterRandoms := False;
RoadColor := 0;
WaterColor := 0;
BankColor := 0;
LampSkill := 'mining';
SetUpSRLReport;
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;

So well , under the begin paste add this, copy and paste if you want..
procedure SetupSRL;
begin

{$IFDEF SMART}
//(world, high/low detail? , signed?) Set this up!
SmartSetupEx(11, 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;
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;

On smartSetupEx, enter the parameters you want…if it doesnt work then go to smart.scar again , and look for a procedure called SmartSetupEx or just SmartSetup, so if you dont find SmartSetupEx and instead you see just SmartSetup, then at the (Ex) to make it SmartSetupEx.

Well I hope that works, if it doesnt then something is wrong with your includes folder.:D

effinpanda

2008-06-02 12:12:13

Okay thanks, it that the directions to get the SMART Runescape window up too?

Shuttleu

2008-06-02 12:29:19

if you do what he said above then all you need to do is write this

program new;
{.include srl/srl.scar}
begin
setupsrl;
end.
and smart will load

~shut

effinpanda

2008-06-03 01:13:21

Awesome, i love you guys!

Dracody

2008-06-03 01:52:32

Im glad it worked :D

AnonyMouse

2008-06-03 06:55:25

oh so u can change the actual SRL file so you don't need to add the SMART include to inidividual scripts? Because I just add smart with the include before the srl include and then the smart setup in the main loop.

Dracody

2008-06-03 09:29:09

From: AnonyMouse
oh so u can change the actual SRL file so you don't need to add the SMART include to inidividual scripts? Because I just add smart with the include before the srl include and then the smart setup in the main loop.


You still need to add:
{.include SRL/SRL/Misc/Smart.scar}

But with the SmartSetupEx its most likely the same thing , the difference is that if you add it at Srl.scar you just have to add setupSrl to the mainLoop and it will load automatically, if not , you'll have to add the SmartSetupEx to the mainLoop of every Script you want to use smart with…

So if you add it to Srl.scar you just have to add SmartSetupEx once, and in the scripts you just need to include it as it appears above :spongebob:

homeslice930

2008-06-03 20:32:27

wait i downloaded scar 3.15 and i cant find SMART at all… i have searched every single folder and i can find anything

Dracody

2008-06-04 01:14:10

From: homeslice930
wait i downloaded scar 3.15 and i cant find SMART at all… i have searched every single folder and i can find anything


Did you make sure you had the latest Srl revision?? and Subversion? , maybe that is the problem , because smart comes after Rev 13 :spongebob: