SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Echo_'s is just one function, and you call it within you're script's loop. I hope that answers your question.
Current projects:
[ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]
"I won't fall in your gravity. Open your eyes,
you're the Earth and I'm the sky..."
This is perfect, going to use this in my scripts
Working on a Watchmen pickpocket-er, hope to get 80kxp / hour.
Hey Echo instead of howmanyplayers what do you think about players active?
"Logic never changes, just the syntax" - Kyle Undefined?
Remember, The Edit Button Is There For A Reason!!!
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
So, just found this thread. If no one disagrees I think I'll add this (along with the Global variables) to SRL's antiban.simba.
Sound okay?
E: I'd still like to see "Time left in break: " added.
Last edited by Coh3n; 12-13-2011 at 05:51 AM.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Simba Code:if (HowManyPlayers > 1) then
begin
if (GetTimeRunning < ((w) + (y) + BreakRounds)) then Exit
else
if (GetTimeRunning > ((w) + (y) + BreakRounds)) then
begin
Writeln('Taking a break for about ' + IntToStr(BreakFor) + ' minutes.');
Logout;
IncEx(BreakRounds, (w) + (x));
IncEx(TotalBreaks, 1);
Writeln('Logging in to ' + Capitalize(Players[CurrentPlayer + 1].Nick) + '.');
NextPlayer(True);
Exit; // notice this?
while (LoggedIn) do Wait((x) + (z));
Writeln('Switching back to ' + Capitalize(Players[CurrentPlayer - 1].Nick) + '.');
SwitchToPlayer(CurrentPlayer - 1, True);
end;
end;
Actually this never switches back to the original player... all this function really does is put a timer on your NextPlayer call / break if theres only one player left. You'd need yet another if statement at the top if you actually wanted to switch back to the player who was on break..
As for Dbgy's system it doesn't currently have the whole login logout stuff so...
-RM
I actually think I'm going to make an "SRL Snippets" section for code just like this. This stuff I think should be done in scripts, not the include (I know, I changed my mind). We want the include to aid the scripter, not do everything for them, if that makes sense.
E: Moved to SRL Snippets.
Last edited by Coh3n; 12-13-2011 at 07:02 PM.
SRL's F.A.Q. (Error fixes) | How to Convert SRL-5 Scripts to SRL-6 | Draynor Chop N' Bank (RS3)| AIO Superheater (RS3)
T - E - A - MTogether Everyone Achieves More
Haha, why isn't there a function in SRL for this? Everyone used it in their script somehow (usually)...or some variation of it to do something.
There is a break system in SRL, see https://srl.github.io/SRL/antiban.html
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols
Duplicate of this post https://villavu.com/forum/showthread...429#post777429
Probably just a bot. Or somebody really not trying very hard for junior.
Everyone knows how to make this, I'm not saying your work is unneeded, I mean that probably thats the reason it has not been added to SRL yet. I mean this should be added, and I would use this.
Great work!
There are currently 1 users browsing this thread. (0 members and 1 guests)