SCAR Code:
function EmptiestWorld(members: Boolean): string;
var
i: Integer;
website: string;
worlds: array of string;
begin
case members of
False: website := GetPage('http://www.runescape.com/slj.ws?lores.x=1&plugin=0&order=MPLAW');
True: website := GetPage('http://www.runescape.com/slj.ws?lores.x=1&plugin=0&order=mPLAW');
end;
Delete(website, 1, Pos('function e(w,m,s,a,dt,h,p,l) ', website) + 50);
while GetArrayLength(worlds) < 10 do
begin
SetArrayLength(worlds, GetArrayLength(worlds) + 1);
Delete(website, 1, Pos('",', website) + 3);
worlds[GetArrayLength(worlds) - 1] := Between(',"', '",', website);
Delete(website, 1, Pos('",', website) + 3);
end;
Result := worlds[Random(10)];
end;
That should work Drizzt, though I thought I might as well take out the world number part as it's much more reliable to use the world prefix anyway and it takes too much effort to code the same thing twice