GREEN GIANT
2013-08-23 10:28:35
Hi guys,
Due to the fact that the built-in world switching isn't working I decided to make my own (very crude) world switcher.
Now i'm pretty sure you aren't monitored whilst logged out so i made it with no randomness to clicking, it basically generates random co-ordinates that correspond to the different servers and selects a world at random.
It works very well, but some worlds such as 308 and 316 are free worlds so i wanted to exempt them from the selection using the following;
So it should (in theory) repeat generating random servers and if it generates one of the blacklisted ones it should get a new one, but this isn't the case, as its tried to log into world 308 a few times now :(
Can anyone see why?
Due to the fact that the built-in world switching isn't working I decided to make my own (very crude) world switcher.
Now i'm pretty sure you aren't monitored whilst logged out so i made it with no randomness to clicking, it basically generates random co-ordinates that correspond to the different servers and selects a world at random.
It works very well, but some worlds such as 308 and 316 are free worlds so i wanted to exempt them from the selection using the following;
begin
repeat
y := (81 + (RandomRange(0, 15) * 24)) // 81 is the midpoint Y of world 301, 0-15 are the rows, 24 is the distance between servers
x := (236 + (Random(3) * 93)) // 236 is the midpoint X of world 301, 0-3 columns, 93 is the distance between servers
Z := (X + Y)
until not
(z = 317) or // these are the added together coordinates x,y and correspond to worlds i do not wish to use
(z = 461) or
(z = 629)
end;
begin
Mouse(x, y, 0, 0, true);
end;
LogInPlayer;
end;So it should (in theory) repeat generating random servers and if it generates one of the blacklisted ones it should get a new one, but this isn't the case, as its tried to log into world 308 a few times now :(
Can anyone see why?