SRL Archive - Outdated Tutorials

How to set up players for autoing with Simba


Shuttleu

2010-12-05 05:23:07

In this tutorial you will learn how to set up your players in a script so that it is ready for autoing.

Setting up players

First of all you want to try and find a procedure like this one.
procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;

Now as you can see, this is only for 2 people, player[0] and player[1]

Filling in the players is straight forward, see below.
  • Username in Name
  • Password in Pass.
  • Nickname in Nick (i will come back to this one)
  • Active is whether you want the script to use this account. This can be useful if you want to use more than one account on this script, but you dont want it to use one of the accounts for some reason. This can only be True or False.
  • Other things such as Strings, Integers and Booleans should have a comment beside them to let you know what to type.
  • Nick names are 3-4 lowercase characters of your username. So if my username was zezima, i could use zima, ezi or zim, but i could not use zez or zezi.

Adding a player

If you have more players to add than there are places. You'll have to add another player. You just copy the last section of players.

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

Then paste it below to make 2 the same

procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;

Nearly there, now we increase the number in Players[1] by one.

procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[2] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;

And we increase the variable HowManyPlayers by one.

procedure DeclarePlayers;
begin
HowManyPlayers := 3;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[2] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;

Then you can fill in the details and your done.

For a simple rule of how to fill in HowManyPlayers, look at the last number in the square brackets (in this case 2 (Players[2])) then increase it by one (which gives 3) and use that number.

Deleting a player

If you want to delete a player simply select a section and delete it, so I will will delete the last player.

procedure DeclarePlayers;
begin
HowManyPlayers := 3;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;

and by following the rule, the highests number in the square brackets now is 1, increase that by 1 is 2 and that is what I put for NumberOfPlayers.

procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;

with Players[1] do
begin
Name := 'user';
Pass := 'pass';
Nick := 'nick';
Strings[0] := 've'; // Player location (letters must be lowercase)
Integers[0]:= 15; // Break after how many mins
Active := True;
end;
end;

I hope I have given you enough information how how to set up your players so when you launch a script, you will know exactly what to do.

~shut

BraK

2010-12-05 05:26:36

Nicely Done very well organized and thanks for doing this one on request :p

~BraK

Gu3st...

2010-12-05 06:13:12

You could add ("Players[1]") to "Nearly there, now we increase the number in the square brackets by one." so people who don't know what square brackets are don't get lost

Other than that; Great job! :)

Iraqi Unit

2011-01-10 20:29:47

I got a script, but where do I save it and what do I do with it? Please help me, I'm not good @ these things. Where do I compile where do I paste the script after saving it with notebook how do I start the bot? I need all that information, +reputation for you if you help me.

PLEASE!!!!

NCDS

2011-01-10 20:32:45

From: Iraqi Unit
I got a script, but where do I save it and what do I do with it? Please help me, I'm not good @ these things. Where do I compile where do I paste the script after saving it with notebook how do I start the bot? I need all that information, +reputation for you if you help me.

PLEASE!!!!


Check these links:
http://villavu.com/forum/showthread.php?t=60614
http://villavu.com/forum/showthread.php?t=61374

Shuttleu

2011-01-11 02:58:00

From: Iraqi Unit
I got a script, but where do I save it and what do I do with it? Please help me, I'm not good @ these things. Where do I compile where do I paste the script after saving it with notebook how do I start the bot? I need all that information, +reputation for you if you help me.

PLEASE!!!!


the scripts can be saved anywhere (special scripts will tell you where to put them)
when you save them you should save them as a ".simba" this way they will let you open them in simba when you click on them

if you dont have simba then check my sig for a tutorial

after you can open the script by double clicking, it will open in simba and you can fill inyour details and click play

~shut

Orbital

2011-01-15 05:21:17

From: Iraqi Unit
I got a script, but where do I save it and what do I do with it? Please help me, I'm not good @ these things. Where do I compile where do I paste the script after saving it with notebook how do I start the bot? I need all that information, +reputation for you if you help me.

PLEASE!!!!


You don't use the same method as RSbot to use scripts with Simba

slacker

2012-01-21 07:19:40

thanks there that was usefull !

usb1y

2012-01-23 00:19:46

I get file 'C:\Simba\Includes\SRL/SRL/core/misc/smart.scar' when i try to run custom scripts can anyone help i don't think i have a scar file of anykind…

Shuttleu

2012-01-23 03:59:51

remove the line that says
{$i srl/srl/misc/smart.scar}
on the other lines, change it from scar to simba

on the line above
{$i srl/srl.simba}
put
{$DEFINE SMART}

~shut

exilednoob

2012-02-05 22:54:10

Bitmat [16] Does not exist

Press OK to continue as rish data corruption.


What does that mean? I get it after pressing run script

Shuttleu

2012-02-06 05:11:48

that is a error with the script, you need to post this on the scripts thread

~shut

Firec4pe

2012-02-28 23:46:26

How to Add bank Pin?

Specter

2012-03-06 10:17:23

Do those 2 players work at the same time or one after each other?
i want to run 2 scripts at the same time is that possible?

Specter

Shuttleu

2012-03-12 10:21:30

From: Specter
Do those 2 players work at the same time or one after each other?
i want to run 2 scripts at the same time is that possible?

Specter


they will run one after the other

you can have multiple simbas open at one time though

~shut

razorsedge

2012-06-06 23:01:44

Hey,

I have followed the tutorials on how to install and set up Simba for RS boting.

Unfortunately, I am having issues. When I run MSI with the 'Seer Village Yew Tree' script my account is successfully logged on my after a series I've checks it logs me out and in the report it say failed to setup player.

Can anyone please help me?

Cheers

Retract

2012-07-04 12:16:36

Great tutorial. Helped me when I couldn't find the right place to add my username. Cheers!

The Killer

2012-07-04 12:42:32

thanks i was wondering about adding more than whats there a few weeks back, wish i hadd stumbled across this before :duh:

Cranzia

2013-02-27 17:51:47

I'm having trouble getting multiple accounts to run. The thing just doesn't open, except once but then the second one wouldnt type in user and pass. Here is my code -
program AutoTyperSmart;
{$DEFINE SMART}
{$i SRL\SRL.simba}

procedure DeclarePlayers;
begin
HowManyPlayers := 2;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

with Players[0] do
begin
Name := '';
Pass := '';
Nick := '';
Active := True;
end;

with Players[1] do
begin
Name := '';
Pass := '';
Nick := '';
Active := True;
end;
end;




Begin
SetupSRL
Declareplayers
LoginPlayertoLob();
SelectWorld(3);
LoginPlayer;
Activateclient


Repeat
Wait(1000+Random(500));

DoEmote(RandomRange(14,16));
TypeSendEx('Text Here',True);
DoEmote(RandomRange(14,16));


until(false)
if not (LoggedIn) then
LoginPlayer;
end.
begin
end.
I took out my details on the accounts, but what can I do to fix this? If you have can help, try PMing me.

skautas

2013-03-26 04:09:22

I don't understand this :

Nick names are 3-4 lowercase characters of your username. So if my username was zezima, i could use zima, ezi or zim, but i could not use zez or zezi.

Im New Sry

2013-03-26 05:37:40

From: skautas
I don't understand this :

Nick names are 3-4 lowercase characters of your username. So if my username was zezima, i could use zima, ezi or zim, but i could not use zez or zezi.


It's used to detect whether somebody calls you by your nick, so you could log out or hop, I think.

If my name was swag yolo, I would type in nickname integer 'swag', so if people call me swag, bot could log out.

krc ivesk savo nicko kelias raides kad atsijungtu acc tavo kai tave vardu pasaukia.

skautas

2013-03-26 19:14:59

From: Im New Sry
It's used to detect whether somebody calls you by your nick, so you could log out or hop, I think.

If my name was swag yolo, I would type in nickname integer 'swag', so if people call me swag, bot could log out.

krc ivesk savo nicko kelias raides kad atsijungtu acc tavo kai tave vardu pasaukia.


MHMM.. Aisq, nereik man ten nieko vest, mano accountui nesveika atsijungus but.

Phasmatys

2013-04-14 02:51:06

Wait so I have filled out this form but what do i do with it afterwards and Im still not sure how to run the script haha sorry bout this.
Thanks for the guide btw

Ride Smith20bosser

2013-06-08 17:46:48

How do u make ur script go on forever???

tealc

2013-06-08 17:53:23

From: Ride Smith20bosser
How do u make ur script go on forever???

before setupsrl is called add
SRL_SixHourFix:= true;

put this in you main loop (make sure you break out of all you other loops)
if not LoggedIn then LoginPlayer;

Lavitz

2013-07-15 21:39:58

I'm sorry if this has been answered, but I googled and couldn't find this specific question answered. Say my username I log in with was "Zezima" but I recently changed my in game name to "Yohojo". Which nick would I use? "Zezi" or "Yoho"? If I use "Yoho" the script says that my nick is not found in my username, so will that render the random solvers useless, or will it still work? Thank you.

Coh3n

2013-11-30 02:27:24

This is now outdated. @Shuttlu; let me know when/if you update the OP and I will move this out of the outdated section.

shawnguy

2015-02-15 21:15:18

Error: Unknown declaration "HowManyPlayers" at line 121
Compiling failed.

pleas help :(