SRL Archive - General

Using smart


Zeta Matt

2012-12-12 16:44:12

Hey guys, I've been doing some scripts without using smart, like detecting when a clanmate is near, if someone talks, using abilities automatically etc… But I want to learn how to use the SMART system, so I can use it's functions, mainly the ones that click things, so I could do, for example, a script that does loom at citadel for me… cuz it has been a pain in the ass.
I just need to know the basics of smart, the rest I can learn alone. What does my script has to have to use SMART; only thing I know is that "{$Define SMART}". Is declareplayers necessery? Whatever… teach me, please =D thanks!

Le Jingle

2012-12-12 17:30:49

When using smart, it's important to define it.
You should also use the fix speed to help it start up.
Using smart should not affect your script too much other than being able to use it as a client that won't affect your mouse.. What I'm really trying to say is that don't think you have to fix your script unless it's doing out of client methods.

a basic script that would open smart:

program new;
{$DEFINE SMART}
{$i srl/srl.simba}

procedure DeclarePlayers;
begin
// info here
end;

begin
{$IFDEF SMART}
Smart_FixSpeed := True;
{$ENDIF}
SetupSRL;
DeclarePlayers; // loads player information
LoginPlayer;
if LoggedIn then
writeln('we are logged into RS')
else
writeln('we are not logged into RS');
end.

Zeta Matt

2012-12-16 20:06:52

Thank you very much! Well, clicking is just what I wanted =D