How can I randomly select a members only world?
there's the
SCAR Code:selectworld(48)
command but you have to specify an exact world
cant use
SCAR Code:random(150)
cuz I only want members only worlds
Help Plz?>
How can I randomly select a members only world?
there's the
SCAR Code:selectworld(48)
command but you have to specify an exact world
cant use
SCAR Code:random(150)
cuz I only want members only worlds
Help Plz?>
The only way I can think of is this, too bad its incredibly inefficient.
Understand what im getting at? That's the only way I can think of solving it. But my brain's not working too well, its 1 in the morning and im tired. Maybe ill think of something while im asleep.. *shrugs* you never know.Code:Case Random(65) Of 0: SelectWorld(2); 1: SelectWorld(6);
lol yeh i see
i cant think of nothin either(obviously) lol
but might as well give it a shot
ive tried everything else
(that doesnt require an incredibly long procedure.....)
Lol, yeah, sorry about that, ill try and think some more before going to bed. This is gonna bug me now.. GRR.
lol thx for the effort =]
its bugging me 2
HELL YEA BABY!!!!!!!!
It is heavily based off of the current SelectWorld function, but IDC.
+rep pleaseCode:program New; {.include SRL\SRL.scar} {.include SRL\SRL\Misc\WorldSwitcher.scar} function SelectWorld1(Which: String; RandomWorld:Boolean): Boolean; var i: Integer; begin SetupWorldSwitcher; if not WelcomeToRuneScape then begin Result := False; Exit end; ClickWorldSwitchButton; OrderBy('location', 'down'); OrderBy('players', 'down'); OrderBy('type', 'up'); Wait(1000); GetWorldRecord; // ReadOutRecord; if Which = 'members' then for i := 1 to 65 -1 do begin Case RandomWorld Of True : Begin Mouse(Worlds[i+Random(65)].X, Worlds[i+Random(65)].Y, 0, 0, True); Result := True; Exit; End; False : Begin Mouse(Worlds[i].X, Worlds[i].Y, 0, 0, True); Result := True; Exit; End; End; end; FreeNumbers; end; begin SetupSRL; SelectWorld1('members',True); end.![]()
dont ask for rep...
ok. sorry.
I'm *really* new at this so may be completely way off base here...
But when I first read this the first thing that popped into my head was setup an array of integers with the members world numbers (ahead of time). Then use Random to select a value out of the array?
Edit: But then your script would need to be updated everytime they switched the worlds around (as they are prone to do).
On second thought I like the previous answer better. Less error prone, and that's the whole point.
Edit: We appreciate your desire to contribute to the community, but this post is very, very old, and gravedigging is not allowed on this forum. SRL advances so quickly that anything posted a year ago is almost sure to be completely outdated, and posting to very old messages like this one can only lead to confusion. Please check the most recent post date before responding next time. - Tarajunky
There are currently 1 users browsing this thread. (0 members and 1 guests)