1. Originally Posted by Dgby714
No, mine is completely different.
I feel like having it in one procedure would be simpler, no?

2. Originally Posted by Coh3n
I feel like having it in one procedure would be simpler, no?
I just seen what Sir R. M8gic1an posted and made something along those lines I havn't even looked at Echo_s.

3. Echo_'s is just one function, and you call it within you're script's loop. I hope that answers your question.

4. Registered User
Join Date
Apr 2011
Posts
22
Mentioned
0 Post(s)
Quoted
0 Post(s)
This is perfect, going to use this in my scripts

5. SRL Member
Join Date
Dec 2009
Location
R_GetPlayerLoc;
Posts
2,236
Mentioned
0 Post(s)
Quoted
14 Post(s)
Hey Echo instead of howmanyplayers what do you think about players active?

6. Originally Posted by Yago
Hey Echo instead of howmanyplayers what do you think about players active?
I think that would work too, but I believe in the "if it's not broken, don't fix it" policy

7. Originally Posted by Echo_
I think that would work too, but I believe in the "if it's not broken, don't fix it" policy
Yes, but in this situation PlayersActive makes more sense.

8. SRL Member
Join Date
Dec 2009
Location
R_GetPlayerLoc;
Posts
2,236
Mentioned
0 Post(s)
Quoted
14 Post(s)
Originally Posted by Echo_
I think that would work too, but I believe in the "if it's not broken, don't fix it" policy
Then it would be broken because if there aren't any active players the thing might fail.

9. 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.

10. 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

11. Originally Posted by Sir R. M8gic1an

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
Mine lets people do what they wand in the procedure they pass to SetupBreaks. Mine doesn't actually handle the breaks.

12. 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.

13. Registered User
Join Date
Nov 2018
Location
Charlotte; North Carolina
Posts
2
Mentioned
0 Post(s)
Quoted
1 Post(s)
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.

14. Originally Posted by Jeames27
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

15. SRL Member
Join Date
Dec 2010
Posts
483
Mentioned
30 Post(s)
Quoted
328 Post(s)
Originally Posted by KeepBotting
There is a break system in SRL, see https://srl.github.io/SRL/antiban.html
Duplicate of this post https://villavu.com/forum/showthread...429#post777429

Probably just a bot. Or somebody really not trying very hard for junior.