SRL Archive - Test corner

procedure RandomNextPlayer(Active : Boolean);


Dankness

2006-04-02 14:36:33

Well i was thinking if you keep loggin in the same list of players over and over all night long it would get obvious eventually, not sure if jagex logs this or not but i would think if your IP is used for heavy autoing they might so test this out and see how you like it


{*******************************************************************************
procedure RandomNextPlayer(Active : Boolean);
By: Dankness based on WT-Fawki's NextPlayer
Description: Picks Random Player that is Active and Logs in
*******************************************************************************}
procedure RandomNextPlayer(Active : Boolean);
var LastPlayer : Integer;
begin
Writeln('NextPlayer');
LastPlayer := CurrentPlayer;
if not Active then
Players[CurrentPlayer].Active := False;
LogOut;
PlayerCurTime := (GetSystemTime div 1000);
Players[CurrentPlayer].Worked := Players[CurrentPlayer].Worked + ((PlayerCurTime - PlayerStartTime) / 60);
repeat
CurrentPlayer := Random ( HowManyPlayers );
Wait ( 100 );
until ( Players[CurrentPlayer].Active ) and (CurrentPlayer <> LastPlayer );
if Players[CurrentPlayer].Active = True then
begin
Logs := Logs + 1;
end;
LoginPlayer;
end;

Starblaster100

2006-04-02 14:38:17

a very nice idea.

nice procedure, well done

Dankness

2006-04-02 15:02:48

thanks star, i was hoping to get some feedback on it before adding it to SRL. i might add it before Beta 3 is released i donnu

BenLand100

2006-04-02 15:11:58

I'ed say add a way to make shure each player works equaly… maybe check the work time and find the one that has worked the least otherwise pick a random? I just think with this system that over a long period of time 1 player may work a lot more than another.

Dankness

2006-04-02 15:30:21

From: BenLand100
I'ed say add a way to make shure each player works equaly… maybe check the work time and find the one that has worked the least otherwise pick a random? I just think with this system that over a long period of time 1 player may work a lot more than another.


Hmm didnt think of that one..

Wizzup?

2006-04-03 03:12:08

From: BenLand100
I'ed say add a way to make shure each player works equaly… maybe check the work time and find the one that has worked the least otherwise pick a random? I just think with this system that over a long period of time 1 player may work a lot more than another.


Well, that doesn't really matter does it? :p

Great procedure, should have been in SRL from the beginning.

XxKanexX

2006-04-03 04:27:50

Excellent job. :) Very useful.

BenLand100

2006-04-03 15:50:39

From: Wizzup?
Well, that doesn't really matter does it? :p

Great procedure, should have been in SRL from the beginning.

Lets say you have 20 players doing an auto fighter. In the end 5 of the players ended up being on 75 % of the time and 5 were hardly on at all. The other 10 were about average. Ot that case it would be a good idea to make shure each player is on for a roughly equal ammount of time ;) Also the less a player is autoed the slower it gets baned, so over autoing some while under autoing others, in my opinion, is not a good idea :D

Cheesehunk

2006-04-03 16:08:17

From: BenLand100
Lets say you have 20 players doing an auto fighter. In the end 5 of the players ended up being on 75 % of the time and 5 were hardly on at all. The other 10 were about average. Ot that case it would be a good idea to make shure each player is on for a roughly equal ammount of time ;) Also the less a player is autoed the slower it gets baned, so over autoing some while under autoing others, in my opinion, is not a good idea :D

All good points, but at the start of the Autofighter we could have a Boolean for using RandomNextPlayer; or NextPlayer; which would be set for the users choice, depending on whcih way the user thinks would be less detectable.