SRL Archive - RS3 Script Requests

Simba Script Shell


shelbyp67

2012-05-14 01:53:39

Here's a shell I use when writing scripts. Instead of having to retype alot, I just save this to a file and save as a different name. This has Antiban, Login, Player setup.

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

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

Players[0].Name :=''; // Account Name
Players[0].Pass :=''; // Account Password
Players[0].Nick :=''; // Account Nickname - example Imanoobbot -> 'mano'
Players[0].Active:=True;

end;

procedure AntiBan;
begin
if(not(LoggedIn))then
Exit;
case Random(100) of
0:
begin
HoverSkill('', false); // EDIT: put a skill name in the single quotes.
wait(2453+Random(432));
end;
1: PickUpMouse;
2:
begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');
end;
end;
end;
begin
DeclarePlayers;
LoginPlayer;
repeat



Antiban;
until(not(loggedin));

end.

Dgby714

2012-05-14 02:15:00

Use simba tags…
[noparse]
[/noparse]

Also shell isn't the word I'd use, I'd say template…

Abu

2012-05-14 02:20:40

Skeleton would be an even better word to use…

Also, cleaned it up a bit:

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

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

Players[0].Name :=''; // Account Name
Players[0].Pass :=''; // Account Password
Players[0].Nick :=''; // Account Nickname - example Imanoobbot -> 'mano'
Players[0].Active:=True;
end;

procedure AntiBan;
begin
if (not LoggedIn)then Exit;
case Random(100) of

0: begin
HoverSkill('', false); // EDIT: put a skill name in the single quotes.
wait(2453+Random(432));
end;

1: PickUpMouse;

2: begin
MakeCompass('N');
wait(100+random(133));
MakeCompass('S');
wait(50+random(133));
MakeCompass('N');
end;

end;
end;


begin
ClearDebug;
SetUpSRl;
DeclarePlayers;
if not(LoggedIn) then
LoginPlayer;
end.

Brandon

2012-05-14 02:34:30

From: Dgby714
Use simba tags…
[noparse]
[/noparse]

Also shell isn't the word I'd use, I'd say template…


A feature Simba definitely needs.

abundances

2012-05-14 16:09:14

doesnt it have this tho? it has save as default. so when you open a new scrip it already has all it typed in. i think all you do is put all that in then save as default

radplane

2012-05-14 18:02:00

From: abundances
doesnt it have this tho? it has save as default. so when you open a new scrip it already has all it typed in. i think all you do is put all that in then save as default


Im guessing hes referning to a different theme/look like
 for boards, Or more likely it would add it to the Library (...or extention/engine? lol). You could make your own extension/include file and would only need to include it with its name like you do SRL and others (EX: '{$i srl/srl.simba} //Enables SRL for script) but would the user would have to add it.     

I made a copy cat almost of scar learning c++. Had a findColorSpiral(return success as (no, yes). It seemed like (way) too much towards the beginning to wrap my head around easily at all, But the learning curve dropped fast In my Experience, Very quick to get use too it like normal basic scripting. Much more efficent than I would of imagined.

SRL is pretty much the same thing, building blocks that can get very high.

Abu

2012-05-14 18:16:40

From: abundances
doesnt it have this tho? it has save as default. so when you open a new scrip it already has all it typed in. i think all you do is put all that in then save as default


That's what he meant - 'save this as your default script'