Here is my current procedure:
procedure worldSwitch();
var
WorldSwitchTime: integer;
p: TPoint;
begin
if (not isLoggedIn()) then exit;
WorldSwitchTime:= Round(players[currentPlayer].integers[2] * (60 * (1000)));
if players[currentPlayer].booleans[5] then
begin
if (WorldTimer.getTime >= WorldSwitchTime) or (worldPlayerCount()) then
begin
progressReport('Swapping Worlds.');
if not (players[currentPlayer].booleans[3]) then
writeLn('STATUS: Swapping Worlds.');
players[currentPlayer].exitToLobby();
if lobbyWorlds.selectRandomWorld(players[currentPlayer].booleans[6]) then
if (not isLoggedIn) then
begin
players[currentPlayer].login();
end;
end;
end else
exit;
end;
booleans6 is:
if not players[currentPlayer].booleans[6] then
isMember := false else
isMember := true;
Basically want to implement the following into what i already have:
if members is true
select a random member world from this:
3 7 8 11 17 19 20 29 34 38 41 43 61 80 81 108
if members is false
select a random world from this:
1 2 4 5 6 9 10 12 14 15 16 21 22 23 25 26 27 28 31 32 35 36 37 39 40 42 44 45 46 49 50 51 53 56 58 59 60 62 63 64 65 67 68 69 70 71 72 73 74 76 78 79 82 83 84 85 87 88 89 91 92 96 98 99 100 103 104 105 106 116 119 123 124 134 138 139