Log in

View Full Version : My Default Script Help



KingVlad
05-06-2012, 03:46 PM
I have a few questions about the default script I just built.

This is what I currently have:

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

Procedure DeclarePlayer;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := '';
Players[0].Pass := '';
Players[0].Pin := '';
Players[0].Nick := '';
Players[0].BoxRewards := ['oins'];
Players[0].Active := True;
end;

procedure Starting;
begin
ClickNorth;
end;

begin
ClearDebug;

Smart_Server := 0;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;

SetupSRL;
ActivateClient;
DeclarePlayer;

if not LoggedIn then
begin
LoginPlayer;
end;

Starting;
end.


1. Do you need to have a Players[0].Nick := ''; or can I just erase that line?
2. For Players[0].BoxRewards := [] if I erase everything except oins from the brackets will it pick coins every time?
3. Smart_Server := 0; picks a random server right?
4. What do the following do?
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
5. Do I need to add Player[0].Member :=True; in order for it to know that I am a member or is that what Smart_Members := True; does?
6. Is there anything else I should add to my default starting script?

P.S. Sorry for posting in the wrong section. I just noticed that there's a Scripting Help section.

Abu
05-06-2012, 06:33 PM
Apart from taking away the begin..end around your LogInPlayer function, not much to add really :p

Not a bad default script all all :)

KingVlad
05-06-2012, 06:50 PM
Thanks.

Should I also add my AntiBan in my default script? I believe accidentally right clicking, waiting, hovering, checking skills, etc... wont vary too much between scripts.

Abu
05-07-2012, 04:00 PM
Yeh AntiBan is a good thing to add to your default script as you should be using it in every script you make.

Just note you should change a few things accordingly, which skills to check etc...