SRL Archive - Help

Adding scripts


Toadd

2012-05-03 14:25:29

I've looked everywhere and can't find how to add custom scripts, can somebody help me asap please.

bg5

2012-05-03 14:39:01

From: Toadd
I've looked everywhere and can't find how to add custom scripts, can somebody help me asap please.


http://puu.sh/sKf1

Toadd

2012-05-03 15:11:35

How do I put my details in, and when the loading page comes up it does nothing, help

Abu

2012-05-03 15:13:49

Try searching Tutorial Island next time:

http://villavu.com/forum/showthread.php?t=60501

johnbrown8976

2012-05-03 15:16:32

From: Toadd
How do I put my details in, and when the loading page comes up it does nothing, help


You need to have a procedure called DeclarePlayers (where u put username and password) and LoginPlayer(which logs you in). Please read the beginners tutorial section which explains everything very clearly.
http://villavu.com/forum/forumdisplay.php?f=191

Here is my sample code:

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

Procedure DeclarePlayers;
begin
HowManyPlayers := 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;
Players[0].Name :='your username';
Players[0].Pass :='your password';
Players[0].Nick :='';
Players[0].Active:=True;
Players[0].Pin := '';
end;

procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
FindNormalRandoms;

case Random(45) of
0: begin
HoverSkill('Prayer', false);
wait(1987+Random(432));
end;
1: PickUpMouse;
2: begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');
FindNormalRandoms;
end;
3: RandomMovement;
4: BoredHuman;
5: ExamineInv;
6: RandomRClick;
end;
end;

begin
Smart_Server := 25;
Smart_Members := False;
Smart_Signed := True;
Smart_SuperDetail := False;

ClearDebug;
SetupSRL;
DeclarePlayers; // Calls the procedure, you can't forget this!
LoginPlayer; // You want your player to login, right?
end.

Toadd

2012-05-03 15:19:26

Nothing happens when I log in through the client.

Ashaman88

2012-05-03 15:28:16

From: Toadd
Nothing happens when I log in through the client.


Did you follow abu's link?