Hello im a noob , so say i get a woodcutting scirpt and copy the scirpt into the scar window, Do i have to set up the "Setting Up SRL." and the "Setting up your Players." and the "MainLoop" bits my self ot his this include in the script?
Hello im a noob , so say i get a woodcutting scirpt and copy the scirpt into the scar window, Do i have to set up the "Setting Up SRL." and the "Setting up your Players." and the "MainLoop" bits my self ot his this include in the script?
Nice guide, nice detail and color in writing.
help me please!
Hey thanks fawaki for that.
my scar write this: Found compass-where i can find tutorial for this?
A cool Tut..
Learned more about DeclarePlayers from here..
Thanks a lot.
Right Here, All Underneath.
Awesome tut, thank youh):
Thanks for the guide, should get my scripts better with it.
its good...very nice!
thanks. helped alot.
Wait, where do you put "declare players"?
DeclarePlayers;
but it on the begin of you script.
like:
SCAR Code://<the script>
{main loop}
begin
SetupSRl;
DeclarePlayers;
//<other stuff>
end.
Thank you so much. This will surely help me send in a decent SRL script. Gotta love the player array.![]()
this was a really good read. It was really helpful for me, but I have a questiong regarding the mini-miner+banker.
I'm just curious as to why your banking in "Dalafor" (as a opposed to Falador) and mining in "Tummingron" (as a opposed to Rummington)?PHP Code:repeat
if Players[CurrentPlayer].loc='Dalafor' then
begin
WalkToMine;
end;
if Players[CurrentPlayer].Loc='Timmingron' then
begin
repeat
Mine;
if (not(Loggedin)) then break;
until(InventoryFull)
WalkToDalafor;
Bank;
ProgressReport;
end;
if ((LoggedIn) and (Players[CurrentPlayer].Banked mod Loads = 0)) then
begin
SetChat('off', 1);
repeat
Wait(1000);
FindRandoms;
until(not(LoggedIn));
NextPlayer(true);
end;
if (not(Loggedin)) then NextPlayer(false);
until(false);
An explanation would be helpful, thanks.
well, 1 thing is not clear to me. you said it is important to set the numbers of players..
SCAR Code:NumberOfPlayers(4);
u can see you set a 4 between the hooks. (4).
but then you post an example like this:
SCAR Code:Procedure DeclarePlayers;
begin
NumberOfPlayers(HowManyPlayers); // Sets the Players Array Length;
CurrentPlayer:=3;
you havent set the numbers of players between the hoops. like this
NumberOfPlayers(HowManyPlayers); // Sets the Players Array Length;
NumberOfPlayers(4); // Sets the Players Array Length;
what is the good one?
Edit: after some looking i saw someone say that i need to leave it unchanged.. is that so?
ahh thanks I think I get what SRL is for now
thank you for this, it was easy to follow![]()
how do i set up a script
thanks for the information
i understood it better thanks for the tut , very nicely done..
That helped me with alot, Thank you
Great job lots of information
Very good tutorial. Helpful in understanding it. I'll have to come back and check it out when I have more time.
After looking through it, I became very confused. Since this is the tutorial island section, I think it's appropriate for me to ask how the arrays work and how I set the values for:
Rand: String; // * Stuck inside Random
Skill:'Mining' String; // * User Action to Perform
Level:'31' array[0..21] of word; // * Levels of all skills. SetIn GetPlayerLevels.
Worked: Integer; // * Time User has worked
Banked: Integer; // * Number of Banks User has done
Booleans: Array of Boolean; // * For reports, etc.
Integers: Array of Integer; // * For reports, etc.
Strings : Array of String; // * For reports, etc.
Extendeds : Array of Extended; // * For reports, etc.
After I set these values, I have my player record set right? Could you provide me with a complete example? I think I could learn it better if I compared what I'm making to an official player record. Thanks.
*Is it allowable for me to request an example?
There are currently 1 users browsing this thread. (0 members and 1 guests)